]> git.lizzy.rs Git - micro.git/blobdiff - syntax_files/ruby.micro
Proper window resize handling
[micro.git] / syntax_files / ruby.micro
index 78e6051120de42c334cd26cd88eb8817893203e9..d95c718a34886c3e07e1aee67284e52984d00336 100644 (file)
@@ -4,29 +4,30 @@ syntax "Ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile"
 header "^#!.*/(env +)?ruby( |$)"
 
 ## Asciibetical list of reserved words
-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 statement "\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"
 ## Constants
-color brightblue "(\$|@|@@)?\b[A-Z]+[0-9A-Z_a-z]*"
+color constant "(\$|@|@@)?\b[A-Z]+[0-9A-Z_a-z]*"
 ## Ruby "symbols"
-icolor magenta "([     ]|^):[0-9A-Z_]+\b"
+color constant (i) "([         ]|^):[0-9A-Z_]+\b"
 ## Some unique things we want to stand out
-color brightyellow "\b(__FILE__|__LINE__)\b"
+color constant "\b(__FILE__|__LINE__)\b"
 ## Regular expressions
-color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
+color constant "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
 ## Shell command expansion is in `backticks` or like %x{this}.  These are
 ## "double-quotish" (to use a perlism).
-color brightblue "`[^`]*`" "%x\{[^}]*\}"
+color constant "`[^`]*`" "%x\{[^}]*\}"
 ## Strings, double-quoted
-color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
+color constant ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
 ## Expression substitution.  These go inside double-quoted strings,
 ## "like #{this}".
-color brightgreen "#\{[^}]*\}"
+color special "#\{[^}]*\}"
 ## Strings, single-quoted
-color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
+color constant "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
 ## Comments
-color cyan "#[^{].*$" "#$"
-color brightcyan "##[^{].*$" "##$"
+color comment "#[^{].*$" "#$"
+color comment "##[^{].*$" "##$"
 ## "Here" docs
-color green "(?s)<<-?'?EOT'?.*?^EOT"
+color constant (s) "<<-?'?EOT'?.*?^EOT"
 ## Some common markers
-color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
+color todo "(XXX|TODO|FIXME|\?\?\?)"
+