mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-03 01:13:12 +08:00
* fix: Restrict continue comment to whitespace separated slashes * fix: bug introduced in #321230 --------- Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
88 lines
999 B
JSON
88 lines
999 B
JSON
{
|
|
"comments": {
|
|
"lineComment": "//",
|
|
"blockComment": [
|
|
"/*",
|
|
"*/"
|
|
]
|
|
},
|
|
"brackets": [
|
|
[
|
|
"{",
|
|
"}"
|
|
],
|
|
[
|
|
"[",
|
|
"]"
|
|
],
|
|
[
|
|
"(",
|
|
")"
|
|
]
|
|
],
|
|
"autoClosingPairs": [
|
|
[
|
|
"{",
|
|
"}"
|
|
],
|
|
[
|
|
"[",
|
|
"]"
|
|
],
|
|
[
|
|
"(",
|
|
")"
|
|
],
|
|
{
|
|
"open": "\"",
|
|
"close": "\"",
|
|
"notIn": [
|
|
"string"
|
|
]
|
|
}
|
|
],
|
|
"surroundingPairs": [
|
|
[
|
|
"{",
|
|
"}"
|
|
],
|
|
[
|
|
"[",
|
|
"]"
|
|
],
|
|
[
|
|
"(",
|
|
")"
|
|
],
|
|
[
|
|
"\"",
|
|
"\""
|
|
],
|
|
[
|
|
"<",
|
|
">"
|
|
]
|
|
],
|
|
"indentationRules": {
|
|
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
|
|
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
|
|
},
|
|
"folding": {
|
|
"markers": {
|
|
"start": "^\\s*//\\s*#?region\\b",
|
|
"end": "^\\s*//\\s*#?endregion\\b"
|
|
}
|
|
},
|
|
"onEnterRules": [
|
|
// Add // when pressing enter from inside line comment
|
|
{
|
|
"beforeText": "^\\s*//\\s*\\S|\\s//\\s+\\S",
|
|
"afterText": "^(?!\\s*$)",
|
|
"action": {
|
|
"indent": "none",
|
|
"appendText": "// "
|
|
}
|
|
},
|
|
]
|
|
}
|