mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Call js.js(php) instead of js.js(html) when using html(php)
Mostly copied from css(php),
This commit is contained in:
parent
f17483d34f
commit
909d325468
2
html.jsf
2
html.jsf
@ -172,7 +172,7 @@ done
|
|||||||
|
|
||||||
:stag_end TagEdge
|
:stag_end TagEdge
|
||||||
.ifdef php
|
.ifdef php
|
||||||
* tag_begin call=php.php(script)
|
* tag_begin call=js.js(php)
|
||||||
.else
|
.else
|
||||||
* tag_begin call=js.js(html)
|
* tag_begin call=js.js(html)
|
||||||
.endif
|
.endif
|
||||||
|
19
js.jsf
19
js.jsf
@ -21,6 +21,9 @@
|
|||||||
=Methods
|
=Methods
|
||||||
=Number cyan #fg_520 # orange
|
=Number cyan #fg_520 # orange
|
||||||
|
|
||||||
|
# from html.jsf to support <?php?>
|
||||||
|
=TagEdge green
|
||||||
|
|
||||||
:begin Idle
|
:begin Idle
|
||||||
* begin noeat call=.js()
|
* begin noeat call=.js()
|
||||||
|
|
||||||
@ -39,10 +42,15 @@
|
|||||||
"{}" brace recolor=-1
|
"{}" brace recolor=-1
|
||||||
.ifdef html
|
.ifdef html
|
||||||
",:;=()>[]*&|!?~+\-%^" control recolor=-1
|
",:;=()>[]*&|!?~+\-%^" control recolor=-1
|
||||||
"<" maybe_done
|
"<" maybe_done recolor=-1
|
||||||
|
.else
|
||||||
|
.ifdef php
|
||||||
|
",:;=()>[]*&|!?~+\-%^" control recolor=-1
|
||||||
|
"<" maybe_done recolor=-1
|
||||||
.else
|
.else
|
||||||
",:;=()><[]*&|!?~+\-%^" control recolor=-1
|
",:;=()><[]*&|!?~+\-%^" control recolor=-1
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
# / / regex not allowed after terms
|
# / / regex not allowed after terms
|
||||||
# class Control to handle ')' right
|
# class Control to handle ')' right
|
||||||
@ -52,9 +60,16 @@
|
|||||||
"%" control recolor=-1
|
"%" control recolor=-1
|
||||||
"/" after_term_slash
|
"/" after_term_slash
|
||||||
|
|
||||||
:maybe_done Control
|
:maybe_done TagEdge
|
||||||
* idle noeat
|
* idle noeat
|
||||||
"/" idle noeat return recolor=-2
|
"/" idle noeat return recolor=-2
|
||||||
|
.ifdef php
|
||||||
|
"?%" rtn_php call=php.php()
|
||||||
|
.endif
|
||||||
|
|
||||||
|
# this state allows php and perl to recolor the ?> %> or &> properly.
|
||||||
|
:rtn_php TagEdge
|
||||||
|
* idle noeat
|
||||||
|
|
||||||
:brace Brace
|
:brace Brace
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
Loading…
Reference in New Issue
Block a user