]> git.lizzy.rs Git - micro.git/blob - syntax_files/erb.micro
Proper window resize handling
[micro.git] / syntax_files / erb.micro
1 ## A HTML+Ruby set for Syntax Highlighting .erb files (Embedded RubyRails Views etc) ERB
2 ## (c) 2009, Georgios V. Michalakidis - g.michalakidis@computer.org
3 ## Licensed under the CC (Creative Commons) License.
4 ##
5 ## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano
6
7 syntax "ERB" "\.erb$" "\.rhtml$"
8 color blue (s) "<.*?>"
9 color white (s) "<%.*?%>"
10 color red "&[^;[[:space:]]]*;"
11 color yellow "\b(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\b"
12 color brightblue "(\$|@|@@)?\b[A-Z]+[0-9A-Z_a-z]*"
13 color magenta (i) "([  ]|^):[0-9A-Z_]+\b"
14 color brightyellow "\b(__FILE__|__LINE__)\b"
15 color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
16 color brightblue "`[^`]*`" "%x\{[^}]*\}"
17 color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
18 color brightgreen "#\{[^}]*\}"
19 color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
20 color cyan "#[^{].*$" "#$"
21 color brightcyan "##[^{].*$" "##$"
22 color green (s) "<<-?'?EOT'?.*?^EOT"
23 color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
24
25