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