Skip to content

Commit

Permalink
Fixed svg end tag token
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk authored May 20, 2021
1 parent 29c6157 commit f776080
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions extensions/html/syntaxes/html.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1078,40 +1078,52 @@
"name": "punctuation.definition.tag.end.html"
}
},
"end": "(?i)(</)(\\2)\\s*(>)",
"end": "\\s*(>)",
"endCaptures": {
"0": {
"name": "meta.tag.structure.$2.end.html"
"name": "meta.tag.structure.svg.end.html"
},
"1": {
"name": "punctuation.definition.tag.begin.html"
},
"2": {
"name": "entity.name.tag.html"
},
"3": {
"name": "punctuation.definition.tag.end.html"
}
},
"name": "meta.element.structure.$2.html",
"patterns": [
{
"begin": "(?<!>)\\G",
"end": ">",
"begin": "\\G",
"end": "(?i)(</)(svg)\\b",
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.end.html"
"name": "meta.tag.structure.svg.end.html"
},
"1": {
"name": "punctuation.definition.tag.begin.html"
},
"2": {
"name": "entity.name.tag.html"
}
},
"name": "meta.tag.structure.start.html",
"name": "meta.element.structure.svg.html",
"patterns": [
{
"include": "#attribute"
"begin": "(?<!>)\\G",
"end": ">",
"endCaptures": {
"0": {
"name": "punctuation.definition.tag.end.html"
}
},
"name": "meta.tag.structure.start.html",
"patterns": [
{
"include": "#attribute"
}
]
},
{
"include": "#tags"
}
]
},
{
"include": "#tags"
}
]
}
Expand Down Expand Up @@ -2640,4 +2652,4 @@
]
}
}
}
}

0 comments on commit f776080

Please sign in to comment.