2
0
Fork 0
nano-syntax-archived/coffeescript.nanorc

17 lines
721 B
Plaintext

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