mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 06:12:35 +09:00
Add syntax highlighting files
This commit is contained in:
24
syntax_files/erb.micro
Normal file
24
syntax_files/erb.micro
Normal file
@@ -0,0 +1,24 @@
|
||||
## A HTML+Ruby set for Syntax Highlighting .erb files (Embedded RubyRails Views etc) ERB
|
||||
## (c) 2009, Georgios V. Michalakidis - g.michalakidis@computer.org
|
||||
## Licensed under the CC (Creative Commons) License.
|
||||
##
|
||||
## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano
|
||||
|
||||
syntax "ERB" "\.erb$" "\.rhtml$"
|
||||
color blue "(?s)<.*?>"
|
||||
color white "(?s)<%.*?%>"
|
||||
color red "&[^;[[:space:]]]*;"
|
||||
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"
|
||||
color brightblue "(\$|@|@@)?\b[A-Z]+[0-9A-Z_a-z]*"
|
||||
icolor magenta "([ ]|^):[0-9A-Z_]+\b"
|
||||
color brightyellow "\b(__FILE__|__LINE__)\b"
|
||||
color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
|
||||
color brightblue "`[^`]*`" "%x\{[^}]*\}"
|
||||
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
|
||||
color brightgreen "#\{[^}]*\}"
|
||||
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
|
||||
color cyan "#[^{].*$" "#$"
|
||||
color brightcyan "##[^{].*$" "##$"
|
||||
color green "(?s)<<-?'?EOT'?.*?^EOT"
|
||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||
|
||||
Reference in New Issue
Block a user