make doctype less bright

This commit is contained in:
nightwing 2013-07-19 03:02:59 +04:00
commit ee74fe5a52
4 changed files with 14 additions and 8 deletions

View file

@ -44,8 +44,9 @@
],[ ],[
"start", "start",
["punctuation.doctype.begin","<!"], ["punctuation.doctype.begin","<!"],
["keyword.doctype","DOCTYPE"], ["meta.tag.doctype","DOCTYPE"],
["text"," html"], ["text"," "],
["xml-pe","html"],
["punctuation.doctype.end",">"] ["punctuation.doctype.end",">"]
],[ ],[
"start", "start",

View file

@ -2,8 +2,12 @@
"doctype", "doctype",
["text",""], ["text",""],
["punctuation.doctype.begin","<!"], ["punctuation.doctype.begin","<!"],
["keyword.doctype","DOCTYPE"], ["meta.tag.doctype","DOCTYPE"],
["text"," html PUBLIC "], ["text"," "],
["xml-pe","html"],
["text"," "],
["xml-pe","PUBLIC"],
["text"," "],
["string","\"-//W3C//DTD XHTML 1.0 Strict//EN\""] ["string","\"-//W3C//DTD XHTML 1.0 Strict//EN\""]
],[ ],[
"start", "start",

View file

@ -1,8 +1,9 @@
[[ [[
"start", "start",
["punctuation.doctype.begin","<!"], ["punctuation.doctype.begin","<!"],
["keyword.doctype","DOCTYPE"], ["meta.tag.doctype","DOCTYPE"],
["text"," html"], ["text"," "],
["xml-pe","html"],
["punctuation.doctype.end",">"] ["punctuation.doctype.end",">"]
],[ ],[
"start", "start",

View file

@ -49,7 +49,7 @@ var XmlHighlightRules = function(normalize) {
}, },
{token : "comment", regex : "<\\!--", next : "comment"}, {token : "comment", regex : "<\\!--", next : "comment"},
{ {
token : ["punctuation.doctype.begin", "keyword.doctype"], token : ["punctuation.doctype.begin", "meta.tag.doctype"],
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype" regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype"
}, },
{include : "tag"}, {include : "tag"},
@ -69,7 +69,7 @@ var XmlHighlightRules = function(normalize) {
{include : "space"}, {include : "space"},
{include : "string"}, {include : "string"},
{token : "punctuation.doctype.end", regex : ">", next : "start"}, {token : "punctuation.doctype.end", regex : ">", next : "start"},
{token : "text", regex : "[-_a-zA-Z0-9:]+"}, {token : "xml-pe", regex : "[-_a-zA-Z0-9:]+"},
{token : "punctuation.begin", regex : "\\[", push : "declarations"} {token : "punctuation.begin", regex : "\\[", push : "declarations"}
], ],