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",
["punctuation.doctype.begin","<!"],
["keyword.doctype","DOCTYPE"],
["text"," html"],
["meta.tag.doctype","DOCTYPE"],
["text"," "],
["xml-pe","html"],
["punctuation.doctype.end",">"]
],[
"start",

View file

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

View file

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

View file

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