This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / erb.nanorc
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 start="<" end=">"
9 color white start="<%" end="%>"
10 color red "&[^;[[:space:]]]*;"
11 color yellow "\<(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)\>"
12 color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
13 icolor magenta "([  ]|^):[0-9A-Z_]+\>"
14 color brightyellow "\<(__FILE__|__LINE__)\>"
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 start="<<-?'?EOT'?" end="^EOT"
23 color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
24
25 ## Trailing spaces
26 color ,green "[[:space:]]+$"