-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage-configuration.json
More file actions
51 lines (51 loc) · 1.44 KB
/
language-configuration.json
File metadata and controls
51 lines (51 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"comments": {
"lineComment": "!"
},
"brackets": [
["(", ")"],
["[", "]"],
["IF", "ENDIF"],
["FOR", "NEXT"],
["WHILE", "WEND"],
["REPEAT", "UNTIL"],
["DO", "LOOP"],
["SELECT", "ENDSELECT"],
["PROCEDURE", "RETURN"],
["FUNCTION", "ENDFUNC"]
],
"autoClosingPairs": [
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" }
],
"surroundingPairs": [
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" }
],
"indentationRules": {
"increaseIndentPattern": "(?i)^\\s*(IF|FOR|WHILE|REPEAT|SELECT|DO|PROCEDURE|FUNCTION|CASE|ELSE|ELSEIF)\\b.*$",
"decreaseIndentPattern": "(?i)^\\s*(ENDIF|NEXT|WEND|UNTIL|ENDSELECT|LOOP|ENDPROCEDURE|ENDFUNCTION|CASE|DEFAULT|ELSE|ELSEIF)\\b.*$"
},
"folding": {
"markers": {
"start": "(?i)^\\s*(FOR|IF|SELECT|WHILE|REPEAT|DO|PROCEDURE|FUNCTION|CASE)\\b",
"end": "(?i)^\\s*(NEXT|ENDIF|ENDSELECT|UNTIL|WEND|LOOP|RETURN|ENDFUNC|ENDPROC|ENDCASE)\\b"
}
},
"wordPattern": "[A-Za-z_][A-Za-z0-9_]*[\\$%&\\|!]?",
"onEnterRules": [
{
"beforeText": "(?i)^\\s*(IF|FOR|WHILE|REPEAT|DO|SELECT|PROCEDURE|FUNCTION|ELSE|ELSEIF|CASE|DEFAULT)\\b.*$",
"action": { "indent": "indent" }
},
{
"beforeText": "(?i)^\\s*(ENDIF|NEXT|WEND|UNTIL|LOOP|ENDSELECT|RETURN|ENDFUNC)\\b.*$",
"action": { "indent": "outdent" }
},
{
"beforeText": "(?i)^\\s*(ELSE|ELSEIF|CASE|DEFAULT)\\b.*$",
"afterText": "^(?!\\s*(ENDIF|ENDSELECT)).*$",
"action": { "indent": "outdentNextLine" }
}
]
}