mirror of
https://github.com/WhatsApp/erlang-language-platform.git
synced 2025-12-23 12:26:48 +00:00
65 lines
1.3 KiB
JSON
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"
|
|
}
|
|
}
|
|
]
|
|
}
|