make doctype less bright
This commit is contained in:
parent
2270bd8c4b
commit
ee74fe5a52
4 changed files with 14 additions and 8 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue