1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2025-07-04 09:11:18 +02:00

Move <script> Javascript highlighting from java.java(script) to js.js(html)

This commit is contained in:
cn
2012-05-13 01:05:48 +02:00
parent 370e61b5b2
commit f17483d34f
3 changed files with 18 additions and 7 deletions

18
js.jsf
View File

@ -21,6 +21,11 @@
=Methods
=Number cyan #fg_520 # orange
:begin Idle
* begin noeat call=.js()
.subr js
:idle Idle
* idle
"\n" idle
@ -32,7 +37,12 @@
"'" char recolor=-1
"a-zA-Z_" ident mark buffer
"{}" brace recolor=-1
",:;=()><[]*&|!?~+\-%^" control recolor=-1
.ifdef html
",:;=()>[]*&|!?~+\-%^" control recolor=-1
"<" maybe_done
.else
",:;=()><[]*&|!?~+\-%^" control recolor=-1
.endif
# / / regex not allowed after terms
# class Control to handle ')' right
@ -42,6 +52,10 @@
"%" control recolor=-1
"/" after_term_slash
:maybe_done Control
* idle noeat
"/" idle noeat return recolor=-2
:brace Brace
* idle noeat
@ -259,6 +273,8 @@ done
:method_end Methods
* idle noeat
.end
.subr comment_todo
# initial state
:comment_todo_init Comment