mirror of
https://github.com/cmur2/joe-syntax.git
synced 2025-07-12 07:11:19 +02:00
New highlighter for Ruby's ERB and HTML embedded ERB
Ruby code inside ERB tags (whether in plain or HTML environment) is highlighted via the ruby.jsf colorer.
This commit is contained in:
7
html.jsf
7
html.jsf
@ -81,11 +81,18 @@
|
||||
.else
|
||||
"?" xml_pi recolor=-2
|
||||
.endif
|
||||
.ifdef erb
|
||||
"%" maybe_erb_eq
|
||||
.endif
|
||||
|
||||
# this state allows php and perl to recolor the ?> %> or &> properly.
|
||||
:rtn_php TagEdge
|
||||
* idle noeat
|
||||
|
||||
:maybe_erb_eq TagEdge
|
||||
* rtn_php noeat call=ruby.ruby(erb)
|
||||
"=" rtn_php call=ruby.ruby(erb)
|
||||
|
||||
:tag_name_first Mystery
|
||||
* tag_idle noeat
|
||||
"-A-Za-z0-9._:" tag_name recolor=-1
|
||||
|
Reference in New Issue
Block a user