Skip to content

Commit

Permalink
fix: directives syntax highlight incorrect if = sign missing
Browse files Browse the repository at this point in the history
close #1423
  • Loading branch information
johnsoncodehk committed Jun 12, 2022
1 parent c29bdb2 commit ed4a940
Showing 1 changed file with 35 additions and 1 deletion.
Expand Up @@ -745,6 +745,9 @@
},
{
"include": "#vue-directives-original"
},
{
"include": "#vue-directives-original-2"
}
]
},
Expand Down Expand Up @@ -775,7 +778,7 @@
"8": {
"name": "entity.other.attribute-name.html.vue"
},
"9`": {
"9": {
"name": "punctuation.separator.key-value.html.vue"
}
},
Expand Down Expand Up @@ -804,6 +807,37 @@
}
]
},
"vue-directives-original-2": {
"begin": "(?:\\b(v-)|(:|@|#))(\\[?)([a-zA-Z0-9\\-_]*)(\\]?)(\\:([a-zA-Z0-9\\-_]+))?(?:\\.([a-zA-Z0-9\\-_]+))*\\s*",
"captures": {
"1": {
"name": "entity.other.attribute-name.html.vue"
},
"2": {
"name": "punctuation.separator.key-value.html.vue"
},
"3": {
"name": "punctuation.separator.key-value.html.vue"
},
"4": {
"name": "entity.other.attribute-name.html.vue"
},
"5": {
"name": "punctuation.separator.key-value.html.vue"
},
"6": {
"name": "entity.other.attribute-name.html.vue"
},
"7": {
"name": "entity.other.attribute-name.html.vue"
},
"8": {
"name": "entity.other.attribute-name.html.vue"
}
},
"end": "\\G",
"name": "meta.directive-2.vue"
},
"vue-directives-control": {
"begin": "(v-for)|(v-if|v-else-if|v-else)(?![\\w:-])",
"captures": {
Expand Down

0 comments on commit ed4a940

Please sign in to comment.