Skip to content

Commit

Permalink
feat: support lang="vue"
Browse files Browse the repository at this point in the history
  • Loading branch information
hunyan-io committed May 1, 2023
1 parent 3ab052f commit 03d0206
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/vscode-vue/syntaxes/vue.tmLanguage.json
Expand Up @@ -631,6 +631,38 @@
}
]
},
{
"begin": "([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['\"]?)vue\\b\\2)",
"beginCaptures": {
"1": {
"name": "entity.name.tag.$1.html.vue"
}
},
"end": "(</)(\\1)\\s*(?=>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html.vue"
},
"2": {
"name": "entity.name.tag.$2.html.vue"
}
},
"patterns": [
{
"include": "#tag-stuff"
},
{
"begin": "(?<=>)",
"end": "(?=<\\/)",
"name": "source.vue",
"patterns": [
{
"include": "source.vue"
}
]
}
]
},
{
"begin": "(template)\\b",
"beginCaptures": {
Expand Down

0 comments on commit 03d0206

Please sign in to comment.