fix tokenizing js comments
This commit is contained in:
parent
c9badb0a64
commit
983771a2be
2 changed files with 11 additions and 0 deletions
|
|
@ -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: "\\/(?:(?:\\[(?:\\\\]|[^\\]])+\\])"
|
||||
+ "|(?:\\\\/|[^\\]/]))*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue