From fd2e2845de6e7896499befe8b921e7c492d3b617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Smyku=C5=82a?= Date: Fri, 31 May 2013 22:32:45 +0200 Subject: [PATCH] Nano Syntax Highlighting for Fish Shelll --- fish.nanorc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 fish.nanorc diff --git a/fish.nanorc b/fish.nanorc new file mode 100644 index 0000000..d4cb305 --- /dev/null +++ b/fish.nanorc @@ -0,0 +1,15 @@ +## Here is an example for Fish shell scripts. +## +syntax "fish" "\.fish$" +magic "(Fish.*) shell script text" +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:]]+$"