Skip to content

Commit 5327bc6

Browse files
committed
fix(js): inline comments cannot be highlighted
this fix #36
1 parent 835daca commit 5327bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js.nanorc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
5757
color yellow "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"`\?\\]"
5858

5959
## Comments
60-
color brightblue start="^\s*/\*" end="\*/"
61-
color brightblue "^\s*//.*$"
60+
color brightblue start="/\*" end="\*/"
61+
color brightblue "(^|\s)//.*$"
6262

6363
## Trailing spaces and mixed whitespaces
6464
color ,green "[[:space:]]+$"

0 commit comments

Comments
 (0)