mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 23:22:41 +09:00
Use Go regex word boundaries
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
syntax "coffeescript" "\.coffee$"
|
||||
header "^#!.*/(env +)?coffee"
|
||||
|
||||
color symbol.operator "[!&|=/*+-<>]|\<(and|or|is|isnt|not)\>"
|
||||
color symbol.operator "[!&|=/*+-<>]|\b(and|or|is|isnt|not)\b"
|
||||
color identifier.class "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->"
|
||||
color symbol.brackets "[()]"
|
||||
color statement "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>"
|
||||
color statement "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>"
|
||||
color statement "\<(debugger|switch|while|do|class|extends|super)\>"
|
||||
color statement "\<(undefined|then|unless|until|loop|of|by|when)\>"
|
||||
color constant.bool "\<(true|false|yes|no|on|off)\>"
|
||||
color statement "\b(for|of|continue|break|isnt|null|unless|this|else|if|return)\b"
|
||||
color statement "\b(try|catch|finally|throw|new|delete|typeof|in|instanceof)\b"
|
||||
color statement "\b(debugger|switch|while|do|class|extends|super)\b"
|
||||
color statement "\b(undefined|then|unless|until|loop|of|by|when)\b"
|
||||
color constant.bool "\b(true|false|yes|no|on|off)\b"
|
||||
color identifier "@[A-Za-z0-9_]*"
|
||||
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color comment "(^|[[:space:]])#([^{].*)?$"
|
||||
|
||||
Reference in New Issue
Block a user