erlang-language-platform/editors/code/language-configuration.json
facebook-github-bot 68677d4d15 Initial commit
fbshipit-source-id: c86303b25936d586b185a0b4f4e6dc8d307cf4aa
2023-08-02 07:54:59 -07:00

65 lines
1.3 KiB
JSON

{
"comments": {
"lineComment": "%"
},
"brackets": [
["(", ")"],
["[", "]"],
["{", "}"]
],
"autoClosingPairs": [
["(", ")"],
["[", "]"],
["{", "}"],
{"open": "'", "close": "'", "notIn": ["string", "comment"]},
{"open": "\"", "close": "\"", "notIn": ["string"]},
{"open": "<<\"", "close": "\">>", "notIn": ["string"]}
],
"surroundingPairs": [
["(", ")"],
["[", "]"],
["{", "}"],
["'", "'"],
["\"", "\""]
],
"indentationRules": {
"increaseIndentPattern": "^((?!%).)*([{([]|->|after|begin|case|catch|else|fun|if|maybe|of|receive|try|when|(\\|\\|.*))\\s*$",
"decreaseIndentPattern": "^\\s*([)}\\]]|else|end|->\\s*$)",
"indentNextLinePattern": "^((?!%).)*(::|=>|:=|<-)\\s*$"
},
"onEnterRules": [
{
"beforeText": "^((?!%).)*[;.]",
"action": {
"indent": "outdent"
}
},
{
"beforeText": "^\\s*%%%",
"action": {
"indent": "none",
"appendText": "%%% "
}
},
{
"beforeText": "^\\s*%%",
"action": {
"indent": "none",
"appendText": "%% "
}
},
{
"beforeText": "^\\s*%",
"action": {
"indent": "none",
"appendText": "% "
}
},
{
"beforeText": "^$",
"action": {
"indent": "outdent"
}
}
]
}