Syntax Highlight Overhaul (#568)

* Adds new syntax groups and docs
* Large refactor of syntax highlighting files

* Changed keybindings for changing tabs.

* Improved the documentation.

* Added F3 for find to default bindings.

* Massive overhaul of the syntax files

* Phase 1 color-scheme updates.

* The new colorschemes.

* Colorscheme and syntax updates.

* Tiny fix to the cmc theme.

* Another phase of colorschemes and testing gitconfig.

* Fixed haskell error

* Fortran fix

* Delete test.txt

Heh, sorry about forgetting to do this again.
This commit is contained in:
CaptainMcClellan
2017-03-01 08:30:35 -06:00
committed by Zachary Yedidia
parent 924809b19b
commit c29e58e3d4
129 changed files with 1717 additions and 879 deletions

View File

@@ -2,11 +2,11 @@ syntax "fish" "\.fish$"
header "^#!.*/(env +)?fish( |$)"
# Numbers
color constant "\b[0-9]+\b"
color constant.number "\b[0-9]+\b"
# Conditionals and control flow
color statement "\b(and|begin|break|case|continue|else|end|for|function|if|in|not|or|return|select|shift|switch|while)\b"
color special "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|^|!|=|&|\|)"
color symbol "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|^|!|=|&|\|)"
# Fish commands
color type "\b(bg|bind|block|breakpoint|builtin|cd|count|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|math|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set|set_color|source|status|string|trap|type|ulimit|umask|vared)\b"
@@ -24,11 +24,11 @@ color statement "\ -[a-z]+"
# Strings
color constant.string ""(\\.|[^"])*""
color constant.string "'(\\.|[^'])*'"
color special """
color special "'"
color constant.specialChar """
color constant.specialChar "'"
# Variables
color identifier (i) "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color identifier "\$\{?[0-9A-Za-z_!@#$*?-]+\}?"
# Comments & TODOs
color comment "(^|[[:space:]])#.*$"