Skip to content

Commit

Permalink
feat: support lang="vue"
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 3, 2023
1 parent be80e5d commit b348c85
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 b348c85

Please sign in to comment.