fix tokenizing js comments

This commit is contained in:
Fabian Jakobs 2011-09-06 15:55:27 +02:00
commit 983771a2be
2 changed files with 11 additions and 0 deletions

View file

@ -154,6 +154,9 @@ var JavaScriptHighlightRules = function() {
// makes sure we don't mix up regexps with the divison operator
"regex_allowed": [
{
token : "comment",
regex : "\\/\\/.*$"
}, {
token: "string.regexp",
regex: "\\/(?:(?:\\[(?:\\\\]|[^\\]])+\\])"
+ "|(?:\\\\/|[^\\]/]))*"