mirror of
https://github.com/Reuh/vscode-candran.git
synced 2025-10-27 10:09:31 +00:00
34 lines
No EOL
1.3 KiB
JSON
34 lines
No EOL
1.3 KiB
JSON
{
|
|
"comments": {
|
|
// symbol used for single line comment. Remove this entry if your language does not support line comments
|
|
"lineComment": "--",
|
|
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
|
|
"blockComment": [ "--[[", "]]--" ]
|
|
},
|
|
// symbols used as brackets
|
|
"brackets": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"]
|
|
],
|
|
// symbols that are auto closed when typing
|
|
"autoClosingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
{ "open": "'", "close": "'", "notIn": ["string"] }
|
|
],
|
|
// symbols that can be used to surround a selection
|
|
"surroundingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["\"", "\""],
|
|
["'", "'"]
|
|
],
|
|
"indentationRules": {
|
|
"increaseIndentPattern": "((^\\s*\\b(((local|let)?[\\s\\w=]+)?function|repeat|else|elseif|if|while)\\b|^.*\\b(do|then)\\b|^.*([\\(\\,\\=\\[\\{\\+\\-\\*\\/\\^\\%\\&\\|\\:]|and|or|\\/\\/|\\.\\.|\\>\\>|\\<\\<)\\s*(\\(\\)|\\([A-Za-z_][A-Za-z0-9_]*[=,\\)]))((?!\\bend\\b).)*$|^.*\\{((?!\\}).)*$)",
|
|
"decreaseIndentPattern": "(^\\s*\\b(elsei|elseif|else|end|until)\\b.*$|^((?!\\{).)*\\}\\;?.*$)"
|
|
}
|
|
} |