mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 20:35:53 +01:00
e2769e7661
* cython.nanorc: Remove non-greedy repetition operator, as it is not supported on OSX * fish.nanorc: Remove incompatible "magic" hint * pkgbuild.nanorc: Remove empty sub-expressions
15 lines
917 B
Plaintext
15 lines
917 B
Plaintext
## Here is an example for Fish shell scripts.
|
|
##
|
|
syntax "fish" "\.fish$"
|
|
icolor brightgreen "^[0-9A-Z_]+\(\)"
|
|
color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>"
|
|
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
color green "\<(and|isatty|not|or|in)\>"
|
|
color yellow "--[a-z-]+"
|
|
color brightmagenta "\ -[a-z]+"
|
|
color brightblue "\<(bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|dirh|dirs|echo|emit|eval|exec|exit|fg|fish|fish_config|fish_ident|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|jobs|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set_color|status|trap|type|ulimit|umask|vared)\>"
|
|
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
|
color cyan "(^|[[:space:]])#.*$"
|
|
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
|
color ,green "[[:space:]]+$"
|