54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
// see singleton in Tokenizer.idr
|
|
"wordPattern": "[^()\\{}\\[\\],.@\\s]+",
|
|
"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": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["\"", "\""],
|
|
// ["'", "'"], causes problems with foo''
|
|
["/-", "-/"]
|
|
],
|
|
// 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"
|
|
}
|
|
}
|
|
]
|
|
}
|