do not add fold widget for doctype

This commit is contained in:
nightwing 2013-09-02 03:14:17 +04:00
commit 528e760dcd
2 changed files with 3 additions and 4 deletions

View file

@ -49,7 +49,7 @@ var XmlHighlightRules = function(normalize) {
},
{token : "comment", regex : "<\\!--", next : "comment"},
{
token : ["punctuation.doctype.begin", "meta.tag.doctype"],
token : ["punctuation.doctype.begin", "meta.doctype.tag"],
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype"
},
{include : "tag"},

View file

@ -60,13 +60,12 @@ exports.tag = function(states, name, nextState, tagMap) {
regex : "\\s+"
}, {
//token : "meta.tag",
token : !tagMap ? "meta.tag.tag-name" : function(value) {
token : tagMap ? function(value) {
if (tagMap[value])
return "meta.tag.tag-name." + tagMap[value];
else
return "meta.tag.tag-name";
},
} : "meta.tag.tag-name",
regex : "[-_a-zA-Z0-9:]+",
next : name + "_embed_attribute_list"
}, {