Fix highlighting of processing instructions.
This commit is contained in:
parent
e0c36db7a5
commit
477de72595
1 changed files with 13 additions and 2 deletions
|
|
@ -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: "\\]\\]>",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue