Skip to content

Commit

Permalink
added TSX style color to svelte component tags. (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackFenix2 committed Jul 18, 2020
1 parent d3a81d9 commit ffafc2d
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion packages/svelte-vscode/syntaxes/svelte.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"scopeName": "source.svelte",
"fileTypes": ["svelte"],
"uuid": "7582b62f-51d9-4a84-8c8d-fc189530faf6",

"patterns": [
{
"begin": "(<)(style)\\b(?=[^>]*(?:type=('text/sass'|\"text/sass\")|lang=(sass|'sass'|\"sass\")))(?![^/>]*/>\\s*$)",
Expand Down Expand Up @@ -540,7 +541,7 @@
]
},
{
"begin": "(</?)([a-zA-Z][a-zA-Z0-9:-]*)",
"begin": "(</?)([a-z][a-zA-Z0-9:-]*)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html"
Expand All @@ -562,6 +563,32 @@
}
]
},
{
"begin": "(</?)([A-Z][a-zA-Z0-9:-]*)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html"
},
"2": {
"name": "support.class.component.tsx"
}
},
"end": "(/?>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.end.html"
},
"2": {
"name": "support.class.component.tsx"
}
},
"name": "meta.tag.svelte",
"patterns": [
{
"include": "#tag-stuff"
}
]
},
{
"begin": "<!--",
"end": "-->",
Expand Down

0 comments on commit ffafc2d

Please sign in to comment.