]> git.lizzy.rs Git - micro.git/blob - syntax_files/fish.micro
Proper window resize handling
[micro.git] / syntax_files / fish.micro
1 ## Here is an example for Fish shell scripts.
2 ##
3 syntax "Fish" "\.fish$"
4 color brightgreen (i) "^[0-9A-Z_]+\(\)"
5 color green "\b(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\b"
6 color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
7 color green "\b(and|isatty|not|or|in)\b"
8 color yellow "--[a-z-]+"
9 color brightmagenta "\ -[a-z]+"
10 color brightblue "\b(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)\b"
11 color brightred (i) "\$\{?[0-9A-Z_!@#$*?-]+\}?"
12 color cyan "(^|[[:space:]])#.*$"
13 color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
14 color ,green "[[:space:]]+$"