Skip to content

Commit

Permalink
fix: slot shorthand highlighting incorrect if have not =
Browse files Browse the repository at this point in the history
close #1423
  • Loading branch information
johnsoncodehk committed Jul 10, 2022
1 parent 0bb4c41 commit abbd29f
Showing 1 changed file with 24 additions and 16 deletions.
Expand Up @@ -749,7 +749,7 @@
]
},
"vue-directives-original": {
"begin": "(?:\\b(v-)|(:|@|#))(\\[?)([a-zA-Z0-9\\-_]*)(\\]?)(\\:([a-zA-Z0-9\\-_]+))?(?:\\.([a-zA-Z0-9\\-_]+))*\\s*(=)",
"begin": "(?:\\b(v-)|(:|@|#))(\\[?)([a-zA-Z0-9\\-_]*)(\\]?)(\\:([a-zA-Z0-9\\-_]+))?(?:\\.([a-zA-Z0-9\\-_]+))*",
"captures": {
"1": {
"name": "entity.other.attribute-name.html.vue"
Expand All @@ -774,31 +774,39 @@
},
"8": {
"name": "entity.other.attribute-name.html.vue"
},
"9`": {
"name": "punctuation.separator.key-value.html.vue"
}
},
"end": "(?<='|\")",
"end": "(?=\\s*+[^=\\s])",
"name": "meta.directive.vue",
"patterns": [
{
"begin": "('|\")",
"begin": "=",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.html.vue"
}
},
"end": "(\\1)",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.html.vue"
"0": {
"name": "punctuation.separator.key-value.html.vue"
}
},
"name": "source.ts.embedded.html.vue",
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
"patterns": [
{
"include": "source.ts"
"begin": "('|\")",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.html.vue"
}
},
"end": "(\\1)",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.html.vue"
}
},
"name": "source.ts.embedded.html.vue",
"patterns": [
{
"include": "source.ts"
}
]
}
]
}
Expand Down

0 comments on commit abbd29f

Please sign in to comment.