micro/runtime/syntax/coffeescript.micro

17 lines
719 B
Text
Raw Normal View History

syntax "coffeescript" "\.coffee$"
2016-03-21 19:16:02 +03:00
header "^#!.*/(env +)?coffee"
2016-03-25 23:41:36 +03:00
color red "[!&|=/*+-<>]|\<(and|or|is|isnt|not)\>"
2016-03-21 19:16:02 +03:00
color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->"
color brightblue "[()]"
2016-03-25 23:41:36 +03:00
color cyan "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>"
color cyan "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>"
color cyan "\<(debugger|switch|while|do|class|extends|super)\>"
color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>"
color brightcyan "\<(true|false|yes|no|on|off)\>"
2016-03-21 19:16:02 +03:00
color brightyellow "@[A-Za-z0-9_]*"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " + +| + +"