Legacy syntax overhaul 2 (#577)

* Added title setting (Requires tcell pull!) and optimized tab display.

* Added Clojure highlighting.

* Changed tcell call to screen.

* Fixed bad reference for getting Buffer name.

* Yet another massive syntax overhaul

* Tweaking and testing web syntax

* More webdev goodies

* Added html5 highlighting and strict html4 highlighting.

* Documentation update
This commit is contained in:
CaptainMcClellan
2017-03-03 10:47:03 -06:00
committed by Zachary Yedidia
parent ab74e56a40
commit d949b58fc0
55 changed files with 311 additions and 133 deletions

View File

@@ -5,9 +5,10 @@ header "^#!.*/(env +)?fish( |$)"
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 symbol "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|^|!|=|&|\|)"
color statement "\b(and|begin|case|else|end|for|function|if|in|not|or|select|shift|switch|while)\b"
color special "\b(break|continue|return)\b"
color symbol "(\;|`|\\|\$|<|>|^|!|=|&|\|)"
color symbol.brackets "\{|\}|\(|\)|\[|\]"
# 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"
@@ -33,3 +34,6 @@ color identifier "\$\{?[0-9A-Za-z_!@#$*?-]+\}?"
# Comments & TODOs
color comment "(^|[[:space:]])#.*$"
color todo "(TODO|XXX|FIXME):?"
# Shebang
color preproc.shebang "^#!.+?( |$)"