Skip to content

Commit f01c221

Browse files
committed
Add support for XAML language-configuration and tmLanguage jsons
1 parent aed4734 commit f01c221

File tree

4 files changed

+478
-0
lines changed

4 files changed

+478
-0
lines changed

.vscodeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@ webpack.config.js
5252
!src/razor/language-configuration.json
5353
!src/razor/syntaxes/*
5454

55+
!src/xaml/language-configuration.json
56+
!src/xaml/syntaxes/*
57+
5558
+RuntimeLicenses/dependencies/*
5659
coreclr-debug/install.log

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5590,6 +5590,16 @@
55905590
"aliases": [
55915591
"ASP.NET Razor"
55925592
]
5593+
},
5594+
{
5595+
"id": "xaml",
5596+
"extensions": [
5597+
".xaml"
5598+
],
5599+
"configuration": "./src/xaml/language-configuration.json",
5600+
"aliases": [
5601+
"XAML"
5602+
]
55935603
}
55945604
],
55955605
"grammars": [
@@ -5600,6 +5610,11 @@
56005610
"unbalancedBracketScopes": [
56015611
"text.aspnetcorerazor"
56025612
]
5613+
},
5614+
{
5615+
"language": "xaml",
5616+
"scopeName": "source.xaml",
5617+
"path": "./src/xaml/syntaxes/xaml.tmLanguage.json"
56035618
}
56045619
],
56055620
"menus": {

src/xaml/language-configuration.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"comments": {
3+
"blockComment": [ "<!--", "-->" ]
4+
},
5+
"brackets": [
6+
[ "<", ">" ],
7+
[ "{", "}" ]
8+
],
9+
"autoClosingPairs": [
10+
{
11+
"open": "{",
12+
"close": "}"
13+
},
14+
{
15+
"open": "'",
16+
"close": "'",
17+
"notIn": [ "string", "comment" ]
18+
},
19+
{
20+
"open": "\"",
21+
"close": "\"",
22+
"notIn": [ "string", "comment" ]
23+
},
24+
{
25+
"open": "<!--",
26+
"close": "-->",
27+
"notIn": [ "string" ]
28+
},
29+
{
30+
"open": "<![CDATA[",
31+
"close": "]]>",
32+
"notIn": [ "string" ]
33+
},
34+
{
35+
"open": "<?",
36+
"close": "?>",
37+
"notIn": [ "string" ]
38+
}
39+
],
40+
"autoCloseBefore": "}/>\"' \r\n\t",
41+
"surroundingPairs": [
42+
[ "{", "}" ],
43+
[ "'", "'" ],
44+
[ "\"", "\"" ]
45+
]
46+
}

0 commit comments

Comments
 (0)