Fix highlighting of processing instructions.

This commit is contained in:
William Candillon 2013-01-02 10:17:09 +01:00 • committed by nightwing
commit 477de72595

View file

@ -48,7 +48,8 @@ var XQueryHighlightRules = function() {
next: "cdata" next: "cdata"
}, { }, {
token: "xml-pe", token: "xml-pe",
regex: "<\\?.*?\\?>" regex: "<\\?",
next: "pi"
}, { }, {
token: "comment", token: "comment",
regex: "<\\!--", regex: "<\\!--",
@ -124,7 +125,17 @@ var XQueryHighlightRules = function() {
token: "string", token: "string",
regex: "'.*?'" regex: "'.*?'"
}], }],
pi: [{
token: "xml-pe",
regex: ".*\\?>",
next: "start"
},
{
token: "xml-pe",
regex: ".*"
}],
cdata: [{ cdata: [{
token: "support.type", token: "support.type",
regex: "\\]\\]>", regex: "\\]\\]>",