File: erb.jsf

package info (click to toggle)
joe 4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,308 kB
  • sloc: ansic: 51,623; sh: 4,358; makefile: 149; csh: 26
file content (31 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# JOE syntax highlight file for plain ERB
# by Christian Nicolai (http://mycrobase.de)

=Idle
=Keyword
=Bad
=Brace
=ERB		+Escape

: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