mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
More syntax files from craigbarnes/nanorc
This commit is contained in:
parent
9975b237ac
commit
e5cc8be863
33 changed files with 593 additions and 0 deletions
16
coffeescript.nanorc
Normal file
16
coffeescript.nanorc
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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 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)\>"
|
||||
color brightyellow "@[A-Za-z0-9_]*"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
||||
Loading…
Add table
Add a link
Reference in a new issue