1
0
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:
cn
2011-10-04 21:26:20 +02:00
parent 4d138ffec2
commit 09bdf55037
5 changed files with 74 additions and 1 deletions

View File

@ -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