do not add fold widget for doctype
This commit is contained in:
parent
10a759feb7
commit
528e760dcd
2 changed files with 3 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ var XmlHighlightRules = function(normalize) {
|
||||||
},
|
},
|
||||||
{token : "comment", regex : "<\\!--", next : "comment"},
|
{token : "comment", regex : "<\\!--", next : "comment"},
|
||||||
{
|
{
|
||||||
token : ["punctuation.doctype.begin", "meta.tag.doctype"],
|
token : ["punctuation.doctype.begin", "meta.doctype.tag"],
|
||||||
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype"
|
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype"
|
||||||
},
|
},
|
||||||
{include : "tag"},
|
{include : "tag"},
|
||||||
|
|
|
||||||
|
|
@ -60,13 +60,12 @@ exports.tag = function(states, name, nextState, tagMap) {
|
||||||
regex : "\\s+"
|
regex : "\\s+"
|
||||||
}, {
|
}, {
|
||||||
//token : "meta.tag",
|
//token : "meta.tag",
|
||||||
|
token : tagMap ? function(value) {
|
||||||
token : !tagMap ? "meta.tag.tag-name" : function(value) {
|
|
||||||
if (tagMap[value])
|
if (tagMap[value])
|
||||||
return "meta.tag.tag-name." + tagMap[value];
|
return "meta.tag.tag-name." + tagMap[value];
|
||||||
else
|
else
|
||||||
return "meta.tag.tag-name";
|
return "meta.tag.tag-name";
|
||||||
},
|
} : "meta.tag.tag-name",
|
||||||
regex : "[-_a-zA-Z0-9:]+",
|
regex : "[-_a-zA-Z0-9:]+",
|
||||||
next : name + "_embed_attribute_list"
|
next : name + "_embed_attribute_list"
|
||||||
}, {
|
}, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue