mirror of
https://github.com/cmur2/joe-syntax.git
synced 2025-04-06 11:34:11 +02:00
Fixed bug in js.jsf
This prevented correct hilite in situations like this: variable /* comment */ This was mislit as regex beginning t the second '/'.
This commit is contained in:
parent
268167c81e
commit
6192219d98
11
js.jsf
11
js.jsf
@ -15,7 +15,7 @@
|
|||||||
=Operator bold
|
=Operator bold
|
||||||
=Bad inverse bold red
|
=Bad inverse bold red
|
||||||
=Brace magenta
|
=Brace magenta
|
||||||
=Control
|
=Control
|
||||||
|
|
||||||
# additional classes not present everywhere but useful
|
# additional classes not present everywhere but useful
|
||||||
=Methods
|
=Methods
|
||||||
@ -39,7 +39,8 @@
|
|||||||
:after_term Control
|
:after_term Control
|
||||||
* idle noeat
|
* idle noeat
|
||||||
" \t)" after_term
|
" \t)" after_term
|
||||||
"%/" control recolor=-1
|
"%" control recolor=-1
|
||||||
|
"/" after_term_slash
|
||||||
|
|
||||||
:brace Brace
|
:brace Brace
|
||||||
* idle noeat
|
* idle noeat
|
||||||
@ -52,6 +53,12 @@
|
|||||||
"*" comment recolor=-2
|
"*" comment recolor=-2
|
||||||
"/" line_comment recolor=-2
|
"/" line_comment recolor=-2
|
||||||
|
|
||||||
|
# allow // and /* after terms
|
||||||
|
:after_term_slash Idle
|
||||||
|
* idle noeat
|
||||||
|
"*" comment recolor=-2
|
||||||
|
"/" line_comment recolor=-2
|
||||||
|
|
||||||
:comment Comment
|
:comment Comment
|
||||||
* comment
|
* comment
|
||||||
# might be TODO label
|
# might be TODO label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user