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 = {
|
||||
"start" : [ {
|
||||
token : ["comment"],
|
||||
regex : /(?:^|\s)(#.*$)/
|
||||
token : ["text", "comment"],
|
||||
regex : /(^|\s)(#.*)$/
|
||||
}, {
|
||||
token : "string", // " string
|
||||
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
||||
|
|
@ -116,9 +116,6 @@ var ShHighlightRules = function() {
|
|||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : "[\\]\\)\\}]"
|
||||
}, {
|
||||
token : "text",
|
||||
regex : "\\s+"
|
||||
} ]
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue