Improve xqdoc highlighting.

This commit is contained in:
William Candillon 2013-01-02 11:35:25 +01:00 committed by nightwing
commit 17247653c0

View file

@ -53,7 +53,7 @@ var XQueryHighlightRules = function() {
}, {
token: "comment",
regex: "<\\!--",
next: "comment"
next: "xmlcomment"
}, {
token: "comment.doc",
regex: "\\(:~",
@ -151,7 +151,7 @@ var XQueryHighlightRules = function() {
"comment.doc": [
{
token: "comment.doc",
regex: ".*:\\)",
regex: ":\\)",
next: "start"
}, {
token: "comment.doc.tag",
@ -167,7 +167,7 @@ var XQueryHighlightRules = function() {
regex : "TODO"
}, {
token : "comment.doc",
regex : "[^@:]+"
regex : "[^@:^\\s]+"
}, {
token : "comment.doc",
regex : "."
@ -176,11 +176,16 @@ var XQueryHighlightRules = function() {
comment: [{
token: "comment",
regex: ".*?-->",
regex: ".*:\\)",
next: "start"
}, {
token: "comment",
regex: ".*:\\)",
regex: ".+"
}],
xmlcomment: [{
token: "comment",
regex: ".*?-->",
next: "start"
}, {
token: "comment",