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 : ["punctuation.doctype.begin", "meta.tag.doctype"],
|
||||
token : ["punctuation.doctype.begin", "meta.doctype.tag"],
|
||||
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype"
|
||||
},
|
||||
{include : "tag"},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue