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