Initial Commit
This commit is contained in:
17
nano/syntax/coffeescript.nanorc
Normal file
17
nano/syntax/coffeescript.nanorc
Normal file
@ -0,0 +1,17 @@
|
||||
syntax "coffeescript" "\.coffee$"
|
||||
header "^#!.*/(env +)?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
|
Reference in New Issue
Block a user