mirror of https://github.com/cmur2/joe-syntax.git
Ruby code inside ERB tags (whether in plain or HTML environment) is highlighted via the ruby.jsf colorer.pull/3/head
parent
4d138ffec2
commit
09bdf55037
@ -0,0 +1,31 @@
|
||||
# JOE syntax highlight file for plain ERB
|
||||
|
||||
=Idle
|
||||
=Keyword bold
|
||||
=Bad bold red
|
||||
=Brace magenta
|
||||
|
||||
=ERB yellow
|
||||
|
||||
:content Idle
|
||||
* content
|
||||
"<" maybe_erb_start
|
||||
|
||||
:maybe_erb_start Idle
|
||||
* content noeat
|
||||
"%" maybe_erb_eq recolor=-2
|
||||
|
||||
:maybe_erb_eq ERB
|
||||
* rtn_ruby noeat call=ruby.ruby(erb)
|
||||
"=" rtn_ruby call=ruby.ruby(erb)
|
||||
|
||||
:rtn_ruby ERB
|
||||
* content noeat
|
||||
|
||||
:erb ERB
|
||||
* erb
|
||||
"%" maybe_erb_end
|
||||
|
||||
:maybe_erb_end ERB
|
||||
* erb
|
||||
">" content
|
@ -0,0 +1,11 @@
|
||||
# JOE syntax highlight file for HTML embedded ERB
|
||||
|
||||
=Idle
|
||||
=Keyword bold
|
||||
=Bad bold red
|
||||
=Brace magenta
|
||||
|
||||
=ERB yellow
|
||||
|
||||
:begin Idle
|
||||
* NULL noeat call=html.html(erb)
|
Loading…
Reference in new issue