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.embedTagRules = function(HighlightRules, prefix, tag){
|
||||||
this.$rules.tag.unshift({
|
this.$rules.tag.unshift({
|
||||||
token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
||||||
regex : "(<)(" + tag + ")",
|
regex : "(<)(" + tag + "(?=\\s|>|$))",
|
||||||
next: [
|
next: [
|
||||||
{include : "attributes"},
|
{include : "attributes"},
|
||||||
{token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
|
{token : "meta.tag.punctuation.tag-close.xml", regex : "/?>", next : prefix + "start"}
|
||||||
|
|
@ -224,7 +224,7 @@ var XmlHighlightRules = function(normalize) {
|
||||||
|
|
||||||
this.embedRules(HighlightRules, prefix, [{
|
this.embedRules(HighlightRules, prefix, [{
|
||||||
token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
||||||
regex : "(</)(" + tag + ")",
|
regex : "(</)(" + tag + "(?=\\s|>|$))",
|
||||||
next: tag + "-end"
|
next: tag + "-end"
|
||||||
}, {
|
}, {
|
||||||
token: "string.cdata.xml",
|
token: "string.cdata.xml",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue