Skip to content

Commit 473bffc

Browse files
committed
Language configuration
Fixes #5
1 parent 607f352 commit 473bffc

File tree

2 files changed

+107
-1
lines changed

2 files changed

+107
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
"icon": {
132132
"light": "media/processing-icon.svg",
133133
"dark": "media/processing-icon.svg"
134-
}
134+
},
135+
"configuration": "syntaxes/processing-lanuage.json"
135136
}
136137
],
137138
"grammars": [

syntaxes/processing-lanuage.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": [
5+
"/*",
6+
"*/"
7+
]
8+
},
9+
"brackets": [
10+
[
11+
"{",
12+
"}"
13+
],
14+
[
15+
"[",
16+
"]"
17+
],
18+
[
19+
"(",
20+
")"
21+
]
22+
],
23+
"autoClosingPairs": [
24+
{
25+
"open": "{",
26+
"close": "}"
27+
},
28+
{
29+
"open": "[",
30+
"close": "]"
31+
},
32+
{
33+
"open": "(",
34+
"close": ")"
35+
},
36+
{
37+
"open": "'",
38+
"close": "'",
39+
"notIn": [
40+
"string",
41+
"comment"
42+
]
43+
},
44+
{
45+
"open": "\"",
46+
"close": "\"",
47+
"notIn": [
48+
"string"
49+
]
50+
},
51+
{
52+
"open": "`",
53+
"close": "`",
54+
"notIn": [
55+
"string",
56+
"comment"
57+
]
58+
},
59+
{
60+
"open": "/**",
61+
"close": " */",
62+
"notIn": [
63+
"string"
64+
]
65+
}
66+
],
67+
"autoCloseBefore": ";:.,=}])>` \n\t",
68+
"surroundingPairs": [
69+
[
70+
"{",
71+
"}"
72+
],
73+
[
74+
"[",
75+
"]"
76+
],
77+
[
78+
"(",
79+
")"
80+
],
81+
[
82+
"'",
83+
"'"
84+
],
85+
[
86+
"\"",
87+
"\""
88+
],
89+
[
90+
"`",
91+
"`"
92+
]
93+
],
94+
"folding": {
95+
"markers": {
96+
"start": "^\\s*//\\s*#?region\\b",
97+
"end": "^\\s*//\\s*#?endregion\\b"
98+
}
99+
},
100+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
101+
"indentationRules": {
102+
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
103+
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
104+
}
105+
}

0 commit comments

Comments
 (0)