]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/erb.micro
Merge pull request #447 from samdmarshall/objective-c-syntax
[micro.git] / runtime / syntax / erb.micro
index b8037c50eb03d03851ff47c29b6a62545a9ce464..d9818912a979c8b2737228bf5f784182e5ac2668 100644 (file)
@@ -4,14 +4,14 @@
 ##
 ## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano
 
-syntax "ERB" "\.erb$" "\.rhtml$"
-color blue (s) "<.*?>"
-color white (s) "<%.*?%>"
+syntax "erb" "\.erb$" "\.rhtml$"
+color blue start="<" end=">"
+color white start="<%" end="%>"
 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]*"
-color magenta (i) "([  ]|^):[0-9A-Z_]+\b"
-color brightyellow "\b(__FILE__|__LINE__)\b"
+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)\>"
+color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
+magenta (i) "([  ]|^):[0-9A-Z_]+\>"
+color brightyellow "\<(__FILE__|__LINE__)\>"
 color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
 color brightblue "`[^`]*`" "%x\{[^}]*\}"
 color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
@@ -19,7 +19,6 @@ color brightgreen "#\{[^}]*\}"
 color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
 color cyan "#[^{].*$" "#$"
 color brightcyan "##[^{].*$" "##$"
-color green (s) "<<-?'?EOT'?.*?^EOT"
+color green start="<<-?'?EOT'?" end="^EOT"
 color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
 
-