Skip to content

Commit c38df7b

Browse files
feat(astro): add Astro grammar and language configuration
1 parent f91c2cb commit c38df7b

File tree

4 files changed

+3657
-0
lines changed

4 files changed

+3657
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"comments": {
3+
"blockComment": ["<!--", "-->"]
4+
},
5+
"brackets": [
6+
["---", "---"],
7+
["<!--", "-->"],
8+
["<", ">"],
9+
["{", "}"],
10+
["(", ")"]
11+
],
12+
"autoClosingPairs": [
13+
{ "open": "{", "close": "}" },
14+
{ "open": "[", "close": "]" },
15+
{ "open": "(", "close": ")" },
16+
{ "open": "'", "close": "'" },
17+
{ "open": "\"", "close": "\"" },
18+
{ "open": "<!--", "close": "-->", "notIn": ["comment", "string"] },
19+
{ "open": "/**", "close": " */", "notIn": ["string"] }
20+
],
21+
"surroundingPairs": [
22+
{ "open": "'", "close": "'" },
23+
{ "open": "\"", "close": "\"" },
24+
{ "open": "{", "close": "}" },
25+
{ "open": "[", "close": "]" },
26+
{ "open": "(", "close": ")" },
27+
{ "open": "<", "close": ">" }
28+
],
29+
"autoCloseBefore": ";:.,=}])>` \n\t",
30+
"folding": {
31+
"markers": {
32+
"start": "^\\s*<!--\\s*#region\\b.*-->",
33+
"end": "^\\s*<!--\\s*#endregion\\b.*-->"
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)