Fix comment highlighter

This commit is contained in:
Garen Torikian 2013-02-06 12:48:31 -08:00
commit d73e64e31f

View file

@ -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+"
} ]
};
};