Skip to content

Commit

Permalink
feat: make directives expression quotes optional
Browse files Browse the repository at this point in the history
close #761
  • Loading branch information
johnsoncodehk committed Jul 16, 2022
1 parent 62d5aa5 commit 0ebf0a5
Showing 1 changed file with 46 additions and 19 deletions.
Expand Up @@ -805,29 +805,56 @@
]
},
"vue-directives-expression": {
"begin": "(=)('|\")",
"beginCaptures": {
"1": {
"name": "punctuation.separator.key-value.html.vue"
},
"2": {
"name": "punctuation.definition.string.begin.html.vue"
}
},
"end": "(\\2)",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.html.vue"
}
},
"patterns": [
{
"begin": "(?<=('|\"))",
"end": "(?=\\1)",
"name": "source.ts.embedded.html.vue",
"begin": "(=)\\s*('|\")",
"beginCaptures": {
"1": {
"name": "punctuation.separator.key-value.html.vue"
},
"2": {
"name": "punctuation.definition.string.begin.html.vue"
}
},
"end": "(\\2)",
"endCaptures": {
"1": {
"name": "punctuation.definition.string.end.html.vue"
}
},
"name": "xxx",
"patterns": [
{
"include": "source.ts"
"begin": "(?<=('|\"))",
"end": "(?=\\1)",
"name": "source.ts.embedded.html.vue",
"patterns": [
{
"include": "source.ts"
}
]
}
]
},
{
"begin": "(=)\\s*(?=[^'\"])",
"beginCaptures": {
"1": {
"name": "punctuation.separator.key-value.html.vue"
}
},
"end": "(?=(\\s|>|\\/>))",
"name": "yyy",
"patterns": [
{
"begin": "[^'\"]",
"end": "(?=(\\s|>|\\/>))",
"name": "source.ts.embedded.html.vue",
"patterns": [
{
"include": "source.ts"
}
]
}
]
}
Expand Down

0 comments on commit 0ebf0a5

Please sign in to comment.