Skip to content

Commit 478cca2

Browse files
committed
feat: Add autotools
1 parent f029e2d commit 478cca2

File tree

7 files changed

+2209
-5
lines changed

7 files changed

+2209
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Snippets for
1212

1313
Syntax highlighting for
1414

15+
- autotools
1516
- AWK
1617
- Desktop Files
1718
- dircolors
@@ -32,6 +33,7 @@ Syntax highlighting for
3233

3334
## Acknowledgements
3435

36+
- [vscode_autotools](https://github.com/maelvls/vscode_autotools) by maelvls (GPL-3.0 license)
3537
- [vscode-awk](https://github.com/luggage66/vscode-awk) by luggage66 (MIT)
3638
- [vscode-dircolors](https://github.com/duniul/vscode-dircolors) by duniul (MIT)
3739
- [vscode-env](https://github.com/IronGeek/vscode-env) by IronGeek (MIT)
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: 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+
}

package.json

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,33 @@
3030
],
3131
"contributes": {
3232
"languages": [
33+
{
34+
"id": "m4",
35+
"aliases": [
36+
"autoconf m4",
37+
"m4",
38+
"m4sh"
39+
],
40+
"extensions": [
41+
"configure.ac",
42+
"configure.in",
43+
".m4"
44+
],
45+
"configuration": "./language-configuration/autoconf.language-configuration.json"
46+
},
47+
{
48+
"id": "automake",
49+
"aliases": [
50+
"Automake",
51+
"automake"
52+
],
53+
"extensions": [
54+
".am",
55+
".am.inc",
56+
"Makefile.in"
57+
],
58+
"configuration": "./language-configuration/automake.tmLanguage.json"
59+
},
3360
{
3461
"id": "awk",
3562
"aliases": [
@@ -240,6 +267,24 @@
240267
}
241268
],
242269
"grammars": [
270+
{
271+
"language": "m4",
272+
"scopeName": "source.m4",
273+
"path": "./language-configuration/autoconf.language-configuration.json",
274+
"embeddedLanguages": {
275+
"source.shell": "shellscript"
276+
}
277+
},
278+
{
279+
"language": "automake",
280+
"scopeName": "source.automake",
281+
"path": "./language-configuration/automake.language-configuration.json"
282+
},
283+
{
284+
"language": "awk",
285+
"scopeName": "source.awk",
286+
"path": "./syntaxes/awk.tmLanguage.json"
287+
},
243288
{
244289
"language": "desktop",
245290
"scopeName": "source.desktop",
@@ -325,11 +370,6 @@
325370
"language": "xdefaults",
326371
"scopeName": "source.xdefaults",
327372
"path": "./syntaxes/xdefaults.tmLanguage.json"
328-
},
329-
{
330-
"language": "awk",
331-
"scopeName": "source.awk",
332-
"path": "./syntaxes/awk.tmLanguage.json"
333373
}
334374
],
335375
"snippets": [

0 commit comments

Comments
 (0)