do not highlight <scripts> tag same as <script>
This commit is contained in:
parent
91e6abf099
commit
65003e259a
1 changed files with 2 additions and 2 deletions
|
|
@ -206,7 +206,7 @@ var XmlHighlightRules = function(normalize) {
|
|||
this.embedTagRules = function(HighlightRules, prefix, tag){
|
||||
this.$rules.tag.unshift({
|
||||
token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
||||
regex : "(<)(" + tag + ")",
|
||||
regex : "(<)(" + tag + "(?=\\s|>|$))",
|
||||
next: [
|
||||
{include : "attributes"},
|
||||
{token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
|
||||
|
|
@ -224,7 +224,7 @@ var XmlHighlightRules = function(normalize) {
|
|||
|
||||
this.embedRules(HighlightRules, prefix, [{
|
||||
token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
||||
regex : "(</)(" + tag + ")",
|
||||
regex : "(</)(" + tag + "(?=\\s|>|$))",
|
||||
next: tag + "-end"
|
||||
}, {
|
||||
token: "string.cdata.xml",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue