mirror of
https://github.com/scopatz/nanorc
synced 2025-06-29 09:40:14 +02:00
The commit mariuszs/nanorc@e5cc8be863 introduced a number of rc files that cause tabs to always show as red (even with trailing spaces). Adjust the behavior according to changes in https://github.com/nanorc/nanorc/blob/master/mixins/lint.nanorc, which seems to be an updated source of the original commit. Make tabs appear green without trailing characters, red with trailing spaces, and uncolored when followed by any other character.
17 lines
717 B
Plaintext
17 lines
717 B
Plaintext
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 " + +| + +"
|