Skip to content

Commit 9d472c9

Browse files
committed
feat: add many new syntaxes
1 parent 53d5d0f commit 9d472c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6582
-9
lines changed

LICENSE-THRIFT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Permission to copy, use, modify, sell and distribute this
2+
software is granted. This software is provided "as is" without
3+
express or implied warranty, and with no claim as to its
4+
suitability for any purpose.

README.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,66 @@ Syntax highlighting for
1414

1515
- autotools
1616
- AWK
17+
- CISCO
1718
- Desktop Files
1819
- dircolors
20+
- dsdl
1921
- EJS
2022
- env
23+
- HAML
2124
- Handlebars
2225
- HLA
2326
- i3
2427
- infokey
2528
- inputrc
2629
- JSON5
30+
- jsonl
31+
- Linker Scripts
32+
- M3U
33+
- Linker Maps
2734
- Ninja
2835
- gettext
36+
- Stylus
2937
- sxhkdrc
3038
- systemd
3139
- terminfo
40+
- Thrift
3241
- Xresources
42+
- Typo3
43+
- Yarn Lockfiles
3344

3445
## Acknowledgements
3546

3647
- [vscode_autotools](https://github.com/maelvls/vscode_autotools) by maelvls (GPL-3.0 license)
3748
- [vscode-awk](https://github.com/luggage66/vscode-awk) by luggage66 (MIT)
49+
- [vscode-cisco-syntax](https://github.com/woodjme/vscode-cisco-syntax) by woodjme (MIT)
50+
- [desktop-file-support](https://github.com/nico-castell/desktop-file-support) by nico-castell (MIT)
3851
- [vscode-dircolors](https://github.com/duniul/vscode-dircolors) by duniul (MIT)
52+
- [vscode-dsdl](https://github.com/OpenCyphal/vscode-dsdl) by vscode-dsdl (OpenCyphal)
53+
- [ejs-grammar](https://github.com/Digitalbrainstem/ejs-grammar) by Digitalbrainstem (MIT)
54+
- [haml-vscode](https://github.com/karuna/haml-vscode) by karuna (MIT)
55+
- [vscode-handlebars](https://github.com/andrejunges/vscode-handlebars) by andrejunges (MIT)
56+
- [vscode-hla](https://github.com/GreenXenith/vscode-hla) by GreenXenith (MIT)
3957
- [vscode-env](https://github.com/IronGeek/vscode-env) by IronGeek (MIT)
58+
- [FlatbuffersSchema](https://github.com/gaborv/FlatbuffersSchema) by gaborv (MIT)
4059
- [terminfo.sublime-syntax](https://github.com/zgracem/terminfo.sublime-syntax) by zgracem (MIT)
4160
- [xresources](https://github.com/antcap96/xresources) by antcap96 (MIT)
4261
- [i3wm-syntax](https://github.com/dcasella/i3wm-syntax) by dcasella (Apache-2.0)
4362
- [vscode-json5](https://github.com/mrmlnc/vscode-json5) by mrmlnc (MIT)
63+
- [jsonl](https://github.com/Alpha4/jsonl) by Alpha4 (MIT)
64+
- [vscode-linkerscript](https://github.com/TheNetAdmin/vscode-linkerscript) by TheNetAdmin (MIT)
65+
- [vscode-m3u](https://github.com/af4jm/vscode-m3u) by af4jm (Apache-2.0)
66+
- [vscode-gnu-map](https://github.com/trond-snekvik/vscode-gnu-map) by trond-snekvik (MIT)
4467
- [vscode-ninja-syntax](https://github.com/melak47/vscode-ninja-syntax) by melak47 (MIT)
45-
- [sxhkdrc-syntax](https://github.com/mosbasik/sxhkdrc-syntax) by mosbasik (MIT)
46-
- [desktop-file-support](https://github.com/nico-castell/desktop-file-support) by nico-castell (MIT)
4768
- [vscode-gettext](https://github.com/MrOrz/vscode-gettext) by MrOrz (MIT)
69+
- [textproto-grammar](https://github.com/thejustinwalsh/textproto-grammar) by thejustinwalsh (MIT)
70+
- [language-stylus](https://github.com/d4rkr00t/language-stylus) by d4rkr00t (MIT)
71+
- [sxhkdrc-syntax](https://github.com/mosbasik/sxhkdrc-syntax) by mosbasik (MIT)
4872
- [vscode-systemd](https://github.com/hangxingliu/vscode-systemd) by hangxingliu (MIT)
49-
- [ejs-grammar](https://github.com/Digitalbrainstem/ejs-grammar) by Digitalbrainstem (MIT)
50-
- [vscode-handlebars](https://github.com/andrejunges/vscode-handlebars) by andrejunges (MIT)
51-
- [vscode-hla](https://github.com/GreenXenith/vscode-hla) by GreenXenith (MIT)
73+
- [t4-support](https://github.com/zbecknell/t4-support) by zbecknell (MIT)
5274
- [vscode-infokey-plugin](https://github.com/UI-Apps/vscode-infokey-plugin) by UI-Apps (MIT)
75+
- [thrift.tmbundle](https://github.com/textmate/thrift.tmbundle) by textmate
76+
- [vscode-typo3-typoscript](https://github.com/benjaminkott/vscode-typo3-typoscript) by benjaminkott (MIT)
77+
- [vscode-yarn-lock-syntax](https://github.com/mariusschulz/vscode-yarn-lock-syntax) by mariusschulz (MIT)
5378

5479
Extension icon by Pierre Bamin on [Unsplash](https://unsplash.com/photos/BFvNJXf2rpg).
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": ["/*", "*/"]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
["{", "}"],
17+
["[", "]"],
18+
["(", ")"],
19+
["\"", "\""],
20+
["'", "'"]
21+
],
22+
// symbols that that can be used to surround a selection
23+
"surroundingPairs": [
24+
["{", "}"],
25+
["[", "]"],
26+
["(", ")"],
27+
["\"", "\""],
28+
["'", "'"]
29+
]
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "!"
5+
},
6+
// symbols that are auto closed when typing
7+
"autoClosingPairs": [
8+
["^C", "^C"],
9+
["{", "}"],
10+
["[", "]"],
11+
["(", ")"],
12+
["\"", "\""],
13+
["'", "'"]
14+
],
15+
// symbols that that can be used to surround a selection
16+
"surroundingPairs": [
17+
["^C", "^C"],
18+
["{", "}"],
19+
["[", "]"],
20+
["(", ")"],
21+
["\"", "\""],
22+
["'", "'"]
23+
],
24+
"folding": {
25+
"markers": {
26+
"start": "(^interface |^ip dhcp pool |^ssid )",
27+
"end": "(^exit|^!)"
28+
}
29+
}
30+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "#"
5+
},
6+
// symbols used as brackets
7+
"brackets": [["[", "]"]],
8+
// symbols that are auto closed when typing
9+
"autoClosingPairs": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"],
13+
["\"", "\""],
14+
["'", "'"]
15+
]
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//"
5+
6+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
7+
// "blockComment": [ "/*", "*/" ]
8+
},
9+
10+
// symbols used as brackets
11+
"brackets": [
12+
["{", "}"],
13+
["[", "]"],
14+
["(", ")"]
15+
]
16+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "#"
5+
},
6+
// symbols used as brackets
7+
"brackets": [
8+
["{", "}"],
9+
["[", "]"],
10+
["(", ")"]
11+
],
12+
// symbols that are auto closed when typing
13+
"autoClosingPairs": [
14+
["{", "}"],
15+
["[", "]"],
16+
["(", ")"],
17+
["\"", "\""],
18+
["'", "'"]
19+
],
20+
// symbols that that can be used to surround a selection
21+
"surroundingPairs": [
22+
["{", "}"],
23+
["[", "]"],
24+
["(", ")"],
25+
["\"", "\""],
26+
["'", "'"]
27+
]
28+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "-#",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": ["/", ""]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
["{", "}"],
17+
["[", "]"],
18+
["(", ")"],
19+
["\"", "\""],
20+
["'", "'"],
21+
["`", "`"]
22+
],
23+
// symbols that that can be used to surround a selection
24+
"surroundingPairs": [
25+
["{", "}"],
26+
["[", "]"],
27+
["(", ")"],
28+
["\"", "\""],
29+
["'", "'"],
30+
["`", "`"]
31+
],
32+
"indentationRules": {
33+
"increaseIndentPattern": "^s*(([-%#\\:\\.\\=])|(.*sdo\b))\b[^{;]*$"
34+
}
35+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"comments": {
3+
"lineComment": "#"
4+
}
5+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"]
9+
],
10+
"autoClosingPairs": [
11+
{ "open": "{", "close": "}", "notIn": ["string"] },
12+
{ "open": "[", "close": "]", "notIn": ["string"] },
13+
{ "open": "(", "close": ")", "notIn": ["string"] },
14+
{ "open": "'", "close": "'", "notIn": ["string"] },
15+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
16+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }
17+
],
18+
"wordPattern": "(\"(?:[^\\\\\\\"]*(?:\\\\.)?)*\"?)|[^\\s{}\\[\\],:]+",
19+
"indentationRules": {
20+
"increaseIndentPattern": "({+(?=([^\"]*\"[^\"]*\")*[^\"}]*$))|(\\[+(?=([^\"]*\"[^\"]*\")*[^\"\\]]*$))",
21+
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
22+
}
23+
}

0 commit comments

Comments
 (0)