Fix comment highlighter
This commit is contained in:
parent
65783be88a
commit
d73e64e31f
1 changed files with 2 additions and 5 deletions
|
|
@ -78,8 +78,8 @@ var ShHighlightRules = function() {
|
||||||
|
|
||||||
this.$rules = {
|
this.$rules = {
|
||||||
"start" : [ {
|
"start" : [ {
|
||||||
token : ["comment"],
|
token : ["text", "comment"],
|
||||||
regex : /(?:^|\s)(#.*$)/
|
regex : /(^|\s)(#.*)$/
|
||||||
}, {
|
}, {
|
||||||
token : "string", // " string
|
token : "string", // " string
|
||||||
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
||||||
|
|
@ -116,9 +116,6 @@ var ShHighlightRules = function() {
|
||||||
}, {
|
}, {
|
||||||
token : "paren.rparen",
|
token : "paren.rparen",
|
||||||
regex : "[\\]\\)\\}]"
|
regex : "[\\]\\)\\}]"
|
||||||
}, {
|
|
||||||
token : "text",
|
|
||||||
regex : "\\s+"
|
|
||||||
} ]
|
} ]
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue