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"
|
next: "cdata"
|
||||||
}, {
|
}, {
|
||||||
token: "xml-pe",
|
token: "xml-pe",
|
||||||
regex: "<\\?.*?\\?>"
|
regex: "<\\?",
|
||||||
|
next: "pi"
|
||||||
}, {
|
}, {
|
||||||
token: "comment",
|
token: "comment",
|
||||||
regex: "<\\!--",
|
regex: "<\\!--",
|
||||||
|
|
@ -125,6 +126,16 @@ var XQueryHighlightRules = function() {
|
||||||
regex: "'.*?'"
|
regex: "'.*?'"
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
pi: [{
|
||||||
|
token: "xml-pe",
|
||||||
|
regex: ".*\\?>",
|
||||||
|
next: "start"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
token: "xml-pe",
|
||||||
|
regex: ".*"
|
||||||
|
}],
|
||||||
|
|
||||||
cdata: [{
|
cdata: [{
|
||||||
token: "support.type",
|
token: "support.type",
|
||||||
regex: "\\]\\]>",
|
regex: "\\]\\]>",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue