mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-08 16:10:29 +09:00
* Added title setting (Requires tcell pull!) and optimized tab display. * Added Clojure highlighting. * Changed tcell call to screen. * Fixed bad reference for getting Buffer name. * Yet another massive syntax overhaul * Tweaking and testing web syntax * More webdev goodies * Added html5 highlighting and strict html4 highlighting. * Documentation update
18 lines
822 B
Plaintext
18 lines
822 B
Plaintext
syntax "coffeescript" "\.coffee$"
|
|
header "^#!.*/(env +)?coffee"
|
|
|
|
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 "\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:]])#([^{].*)?$"
|
|
color indent-char.whitespace "[[:space:]]+$"
|
|
color indent-char " + +| + +"
|
|
color preproc.shebang "#!.+$"
|