mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Use Go regex word boundaries
This commit is contained in:
@@ -8,10 +8,10 @@ syntax "erb" "\.erb$" "\.rhtml$"
|
||||
color symbol.brackets start="<" end=">"
|
||||
color default start="<%" end="%>"
|
||||
color red "&[^;[[:space:]]]*;"
|
||||
color statement "\<(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 identifier.var "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
|
||||
color magenta "(?i)([ ]|^):[0-9A-Z_]+\>"
|
||||
color identifier.macro "\<(__FILE__|__LINE__)\>"
|
||||
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"
|
||||
color identifier.var "(\$|@|@@)?\b[A-Z]+[0-9A-Z_a-z]*"
|
||||
color magenta "(?i)([ ]|^):[0-9A-Z_]+\b"
|
||||
color identifier.macro "\b(__FILE__|__LINE__)\b"
|
||||
color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
|
||||
color brightblue "`[^`]*`" "%x\{[^}]*\}"
|
||||
color constant.string ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
|
||||
@@ -22,3 +22,4 @@ color comment.bright "##[^{].*$" "##$"
|
||||
color identifier.macro start="<<-?'?EOT'?" end="^EOT"
|
||||
color todo "(XXX|TODO|FIXME|\?\?\?)"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user