Skip to content

Commit 1b850db

Browse files
authored
Add start of Rhombus syntax, comments and highlighting (#136)
1 parent 8cf9d9a commit 1b850db

File tree

10 files changed

+1240
-85
lines changed

10 files changed

+1240
-85
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{
13+
"open": "{",
14+
"close": "}"
15+
},
16+
{
17+
"open": "[",
18+
"close": "]"
19+
},
20+
{
21+
"open": "(",
22+
"close": ")"
23+
},
24+
{
25+
"open": "\"",
26+
"close": "\"",
27+
"notIn": ["string"]
28+
},
29+
{
30+
"open": "'",
31+
"close": "'",
32+
"notIn": ["string"]
33+
},
34+
{
35+
"open": "/*",
36+
"close": "*/",
37+
"notIn": ["string"]
38+
}
39+
],
40+
"autoCloseBefore": ")]},'`;| \n\t#",
41+
"surroundingPairs": [
42+
["{", "}"],
43+
["[", "]"],
44+
["(", ")"],
45+
["\"", "\""],
46+
["/*", "*/"],
47+
["'", "'"]
48+
],
49+
"wordPattern": "(?<=(\\p{Z}|^))([\\p{L}_\\p{S}][\\p{L}\\p{N}\\p{Pc}\\p{S}]*)(?=(\\p{Z}|$))",
50+
"folding": { "offSide": true }
51+
}

package-lock.json

Lines changed: 110 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)