Files
newt/newt-vscode/language-configuration.json
2024-11-07 21:37:30 -08:00

52 lines
1.1 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": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["/-", "-/"]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"onEnterRules": [
{
"beforeText": "\\b(where|of)$",
"action": { "indent": "indent" }
},
{
"beforeText": "/-",
"afterText": "-/",
"action": {
"indent": "indentOutdent"
}
},
{
"beforeText": "^\\s+$",
"action": {
"indent": "outdent"
}
}
]
}