Skip to content

Commit

Permalink
We are now only matching templates immediately closing (e.g. <template>)
Browse files Browse the repository at this point in the history
- Everyone can use the word 'template' in custom blocks now
- Fixes #1088
  • Loading branch information
p-kuen committed Feb 14, 2019
1 parent ea3cce5 commit f2326d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions syntaxes/vue-generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
]
},
{
"begin": "(<)(template)(?![^/>]*/>\\s*$)",
"begin": "(<)(template)(?=>\\s*$)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html"
Expand All @@ -214,7 +214,7 @@
"name": "entity.name.tag.template.html"
}
},
"end": "(</)(template)(>)",
"end": "(<\\/)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html"
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/vue.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
]
},
{
"begin": "(<)(template)(?![^/>]*/>\\s*$)",
"begin": "(<)(template)(?=>\\s*$)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html"
Expand All @@ -214,7 +214,7 @@
"name": "entity.name.tag.template.html"
}
},
"end": "(</)(template)(>)",
"end": "(<\\/)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.html"
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/vue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ patterns:
- include: text.pug.slm

# html
- begin: (<)(template)(?![^/>]*/>\s*$)
- begin: (<)(template)(?=>\s*$)
beginCaptures:
'1': { name: punctuation.definition.tag.begin.html }
'2': { name: entity.name.tag.template.html }
end: (</)(template)(>)
end: (<\/)(template)(>)
endCaptures:
'1': { name: punctuation.definition.tag.begin.html }
'2': { name: entity.name.tag.template.html }
Expand Down

0 comments on commit f2326d4

Please sign in to comment.