diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2015-05-11 15:05:13 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-05-11 15:05:13 +0200 | 
| commit | 271b63d71707720ad0d35590b8cb50f8f8f43014 (patch) | |
| tree | 1b71daa457afc68465f66ee2afc9a00c1380f23d | |
| parent | acd7ce59503b22ac7663fc25776efe25e266f1d4 (diff) | |
| download | vim-polyglot-271b63d71707720ad0d35590b8cb50f8f8f43014.tar.gz vim-polyglot-271b63d71707720ad0d35590b8cb50f8f8f43014.zip | |
Updatev1.13.2
Diffstat (limited to '')
33 files changed, 716 insertions, 386 deletions
| diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index 4c9032b2..b8451618 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -170,7 +170,7 @@ syntax keyword cppSTLfunction back  syntax keyword cppSTLfunction back_inserter  syntax keyword cppSTLfunction bad  syntax keyword cppSTLfunction beg -syntax keyword cppSTLfunction begin +"syntax keyword cppSTLfunction begin  syntax keyword cppSTLfunction binary_compose  syntax keyword cppSTLfunction binary_negate  syntax keyword cppSTLfunction binary_search @@ -204,7 +204,7 @@ syntax keyword cppSTLfunction difftime  syntax keyword cppSTLfunction distance  syntax keyword cppSTLfunction div  syntax keyword cppSTLfunction empty -syntax keyword cppSTLfunction end +"syntax keyword cppSTLfunction end  syntax keyword cppSTLfunction eof  syntax keyword cppSTLfunction epsilon  syntax keyword cppSTLfunction equal @@ -417,7 +417,7 @@ syntax keyword cppSTLfunction signal  syntax keyword cppSTLfunction signaling_NaN  syntax keyword cppSTLfunction sin  syntax keyword cppSTLfunction sinh -syntax keyword cppSTLfunction size +"syntax keyword cppSTLfunction size  syntax keyword cppSTLfunction sort  syntax keyword cppSTLfunction sort_heap  syntax keyword cppSTLfunction splice @@ -464,8 +464,8 @@ syntax keyword cppSTLfunction tan  syntax keyword cppSTLfunction tanh  syntax keyword cppSTLfunction tellg  syntax keyword cppSTLfunction tellp -syntax keyword cppSTLfunction test -syntax keyword cppSTLfunction time +"syntax keyword cppSTLfunction test +"syntax keyword cppSTLfunction time  syntax keyword cppSTLfunction tmpfile  syntax keyword cppSTLfunction tmpnam  syntax keyword cppSTLfunction tolower diff --git a/autoload/clojurecomplete.vim b/autoload/clojurecomplete.vim index d465a6d0..1bc70473 100644 --- a/autoload/clojurecomplete.vim +++ b/autoload/clojurecomplete.vim @@ -7,8 +7,8 @@  " -*- COMPLETION WORDS -*-  " Generated from https://github.com/guns/vim-clojure-static/blob/%%RELEASE_TAG%%/clj/src/vim_clojure_static/generate.clj -" Clojure version 1.6.0 -let s:words = ["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-readably*","*read-eval*","*source-path*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods",".","..","/","<","<=","=","==",">",">=","EMPTY-NODE","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc!","assoc","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","booleans","bound-fn","bound-fn*","bound?","butlast","byte","byte-array","bytes","case","cast","catch","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","concat","cond","cond->","cond->>","condp","conj!","conj","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","def","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj!","disj","dissoc!","dissoc","distinct","distinct?","do","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","doubles","drop","drop-last","drop-while","empty","empty?","ensure","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","finally","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","identical?","identity","if","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","init-proxy","instance?","int","int-array","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","monitor-enter","monitor-exit","munge","name","namespace","namespace-munge","neg?","new","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop!","pop","pop-thread-bindings","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","quot","quote","rand","rand-int","rand-nth","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","realized?","record?","recur","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seque","sequence","sequential?","set!","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","symbol","symbol?","sync","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","throw","time","to-array","to-array-2d","trampoline","transient","tree-seq","true?","try","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unsigned-bit-shift-right","update-in","update-proxy","use","val","vals","var","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"] +" Clojure version 1.7.0-beta2 +let s:words = ["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-readably*","*read-eval*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods",".","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc!","assoc","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","booleans","bound-fn","bound-fn*","bound?","butlast","byte","byte-array","bytes","case","cast","cat","catch","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj!","conj","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","def","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj!","disj","dissoc!","dissoc","distinct","distinct?","do","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","finally","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","identical?","identity","if","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","init-proxy","instance?","int","int-array","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","monitor-enter","monitor-exit","munge","name","namespace","namespace-munge","neg?","new","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop!","pop","pop-thread-bindings","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","quot","quote","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","recur","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seque","sequence","sequential?","set!","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","throw","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","try","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","use","val","vals","var","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"]  " Simple word completion for special forms and public vars in clojure.core  function! clojurecomplete#Complete(findstart, base) diff --git a/autoload/css_color.vim b/autoload/css_color.vim index 1b5dadf6..cc0f1f60 100644 --- a/autoload/css_color.vim +++ b/autoload/css_color.vim @@ -173,6 +173,8 @@ function! s:create_syn_match()  		let s:pattern_color[pattern] = rgb_color  	endif +	let group = 'BG' . rgb_color +  	if ! has_key( b:has_color_hi, rgb_color )  		" check GUI flag early here to avoid pure-overhead caching  		let syn_bg = s:is_gui ? rgb_color : get( s:color_bg, rgb_color, '' ) @@ -189,11 +191,7 @@ function! s:create_syn_match()  			let syn_fg = r*30 + g*59 + b*11 > 12000 ? s:black : s:white  			let s:color_fg[rgb_color] = syn_fg  		endif -	endif -	let group = 'BG' . rgb_color - -	if ! has_key( b:has_color_hi, rgb_color )  		exe printf( s:hi_cmd, group, syn_bg, syn_fg )  		let b:has_color_hi[rgb_color] = 1  	endif diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 3cec93cf..8edb9a9d 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -48,18 +48,19 @@ autocmd BufNewFile,BufRead *  let s:current_fileformats = ''  let s:current_fileencodings = ''  function! s:gofiletype_pre() -  let s:current_fileformats = &g:fileformats -  let s:current_fileencodings = &g:fileencodings -  set fileencodings=utf-8 fileformats=unix -  setlocal filetype=go +    let s:current_fileformats = &g:fileformats +    let s:current_fileencodings = &g:fileencodings +    set fileencodings=utf-8 fileformats=unix +    setlocal filetype=go  endfunction  function! s:gofiletype_post() -  let &g:fileformats = s:current_fileformats -  let &g:fileencodings = s:current_fileencodings +    let &g:fileformats = s:current_fileformats +    let &g:fileencodings = s:current_fileencodings  endfunction  au BufNewFile *.go setlocal filetype=go fileencoding=utf-8 fileformat=unix  au BufRead *.go call s:gofiletype_pre()  au BufReadPost *.go call s:gofiletype_post() +au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl  autocmd BufNewFile,BufRead *.haml,*.hamlbars,*.hamlc setf haml  autocmd BufNewFile,BufRead *.sass setf sass  autocmd BufNewFile,BufRead *.scss setf scss @@ -77,8 +78,9 @@ endfun  au BufNewFile,BufRead * call s:SelectJavascript()  autocmd BufNewFile,BufRead *.json set filetype=json  autocmd BufNewFile,BufRead *.jsonp set filetype=json -au BufNewFile,BufRead *.ejs		set filetype=jst -au BufNewFile,BufRead *.jst  		set filetype=jst +au BufNewFile,BufRead *.ejs set filetype=jst +au BufNewFile,BufRead *.jst set filetype=jst +au BufNewFile,BufRead *.djs set filetype=jst  au BufNewFile,BufRead *.hamljs set filetype=jst  au BufNewFile,BufRead *.ect set filetype=jst  autocmd BufNewFile,BufRead *.less setf less diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim index b2f60fdd..af734eec 100644 --- a/ftplugin/cucumber.vim +++ b/ftplugin/cucumber.vim @@ -19,6 +19,9 @@ setlocal omnifunc=CucumberComplete  let b:undo_ftplugin = "setl fo< com< cms< ofu<"  let b:cucumber_root = expand('%:p:h:s?.*[\/]\%(features\|stories\)\zs[\/].*??') +if !exists("b:cucumber_steps_glob") +  let b:cucumber_steps_glob = b:cucumber_root.'/**/*.rb' +endif  if !exists("g:no_plugin_maps") && !exists("g:no_cucumber_maps")    cnoremap <SID>foldopen <Bar>if &foldopen =~# 'tag'<Bar>exe 'norm! zv'<Bar>endif @@ -52,7 +55,7 @@ endfunction  function! s:allsteps()    let step_pattern = '\C^\s*\K\k*\>\s*(\=\s*\zs\S.\{-\}\ze\s*)\=\s*\%(do\|{\)\s*\%(|[^|]*|\s*\)\=\%($\|#\)'    let steps = [] -  for file in split(glob(b:cucumber_root.'/**/*.rb'),"\n") +  for file in split(glob(b:cucumber_steps_glob),"\n")      let lines = readfile(file)      let num = 0      for line in lines diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim index 59cf95d6..c5451027 100644 --- a/ftplugin/latex-box/common.vim +++ b/ftplugin/latex-box/common.vim @@ -264,7 +264,12 @@ function! LatexBox_View(...)  	if has('win32')  		let cmd = '!start /b ' . cmd . ' >nul'  	else -		let cmd = '!' . cmd . ' &>/dev/null &' +		let cmd = '!' . cmd . ' ' +		if fnamemodify(&shell, ':t') ==# 'fish' +			let cmd .= ' >/dev/null ^/dev/null &' +		else +			let cmd .= ' &>/dev/null &' +		endif  	endif  	silent execute cmd  	if !has("gui_running") diff --git a/ftplugin/latex-box/complete.vim b/ftplugin/latex-box/complete.vim index 0ab8f974..e8befcfc 100644 --- a/ftplugin/latex-box/complete.vim +++ b/ftplugin/latex-box/complete.vim @@ -24,7 +24,7 @@ if !exists('g:LatexBox_cite_pattern')  	let g:LatexBox_cite_pattern = '\C\\\a*cite\a*\*\?\(\[[^\]]*\]\)*\_\s*{'  endif  if !exists('g:LatexBox_ref_pattern') -	let g:LatexBox_ref_pattern = '\C\\v\?\(eq\|page\|[cC]\|labelc\)\?ref\*\?\_\s*{' +	let g:LatexBox_ref_pattern = '\C\\v\?\(eq\|page\|[cC]\|labelc\|name\)\?ref\*\?\_\s*{'  endif  if !exists('g:LatexBox_completion_environments') @@ -255,14 +255,14 @@ function! LatexBox_BibSearch(regexp)  		if has('win32')  			let l:old_shellslash = &l:shellslash  			setlocal noshellslash -			silent execute '! cd ' shellescape(LatexBox_GetTexRoot()) . +			call system('cd ' . shellescape(LatexBox_GetTexRoot()) .  						\ ' & bibtex -terse ' -						\ . fnamemodify(auxfile, ':t') . ' >nul' +						\ . fnamemodify(auxfile, ':t') . ' >nul')  			let &l:shellslash = l:old_shellslash  		else -			silent execute '! cd ' shellescape(LatexBox_GetTexRoot()) . +			call system('cd ' . shellescape(LatexBox_GetTexRoot()) .  						\ ' ; bibtex -terse ' -						\ . fnamemodify(auxfile, ':t') . ' >/dev/null' +						\ . fnamemodify(auxfile, ':t') . ' >/dev/null')  		endif  		let lines = split(substitute(join(readfile(bblfile), "\n"), diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim index 1285bc64..4b02d248 100644 --- a/ftplugin/latex-box/latexmk.vim +++ b/ftplugin/latex-box/latexmk.vim @@ -166,7 +166,11 @@ function! LatexBox_Latexmk(force)  	elseif match(&shell, '/tcsh$') >= 0  		let env = 'setenv max_print_line ' . max_print_line . '; '  	else -		let env = 'max_print_line=' . max_print_line +		if fnamemodify(&shell, ':t') ==# 'fish' +			let env = 'set max_print_line ' . max_print_line . '; and ' +		else +			let env = 'max_print_line=' . max_print_line +		endif  	endif  	" Set environment options @@ -177,7 +181,11 @@ function! LatexBox_Latexmk(force)  		" Make sure to switch drive as well as directory  		let cmd = 'cd /D ' . texroot . ' && '  	else -		let cmd = 'cd ' . texroot . ' && ' +		if fnamemodify(&shell, ':t') ==# 'fish' +			let cmd = 'cd ' . texroot . '; and ' +		else +			let cmd = 'cd ' . texroot . ' && ' +		endif  	endif  	let cmd .= env . ' latexmk'  	if ! g:LatexBox_personal_latexmkrc @@ -203,7 +211,11 @@ function! LatexBox_Latexmk(force)  	if has('win32')  		let cmd .= ' >nul'  	else -		let cmd .= ' &>/dev/null' +		if fnamemodify(&shell, ':t') ==# 'fish' +			let cmd .= ' >/dev/null ^/dev/null' +		else +			let cmd .= ' &>/dev/null' +		endif  	endif  	if g:LatexBox_latexmk_async diff --git a/ftplugin/perl6.vim b/ftplugin/perl6.vim index 9a21122b..c32ef43e 100644 --- a/ftplugin/perl6.vim +++ b/ftplugin/perl6.vim @@ -20,7 +20,7 @@ setlocal formatoptions-=t  setlocal formatoptions+=crqol  setlocal keywordprg=p6doc -setlocal comments=:# +setlocal comments=:#\|,:#=,:#  setlocal commentstring=#%s  " Change the browse dialog on Win32 to show mainly Perl-related files diff --git a/indent/blade.vim b/indent/blade.vim new file mode 100644 index 00000000..7515a239 --- /dev/null +++ b/indent/blade.vim @@ -0,0 +1,62 @@ +" Language:     Blade +" Author:       Barry Deeney <sitemaster16@gmail.com> +" Version:      0.1 +" Description:  BLADE indent file based on HTML indentation... + +" Check if this file has already been loaded +if exists("b:did_indent") +	finish +endif + +" Include HTML +runtime! indent/html.vim +runtime! indent/php.vim +silent! unlet b:did_indent + +" What function do we need to use to detect indentation? +setlocal indentexpr=BladeIndent() + +" What keys would trigger indentation? +setlocal indentkeys=o,O,<Return>,<>>,{,},!^F,0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/ + +" THE MAIN INDENT FUNCTION. Return the amount of indent for v:lnum. +func! BladeIndent() +	" What is the current line? +	let current_line = v:lnum + +	" What is the current text? +	let current_text = tolower(getline(current_line)) + +	" What was the last non blank line? +	let previous_line = prevnonblank(current_line) + +	" What was the last non blank text? +	let previous_text = tolower(getline(previous_line)) + +	" How large are indents?? +	let indent_size = &sw + +	" Check if we have a PHPIndent value... +	let indent = GetPhpIndent() + +	" check if we have indent +	if indent == -1 +		" Check if we have BLADE +		if current_text =~ '^\s*@' || previous_text =~ '^\s*@' +			" We need to add to the indent +			return indent_size * indent(previous_text) +		endif + +		" Check if we have HTML +		if current_text =~ '^\s*<' || previous_text =~ '^\s*<' +			" We now give the honors to HtmlIndent() +			let indent = HtmlIndent() +		endif +	endif + +	" Give the indent back! +	return indent +endfunc + +" Make sure we store that flag! +let b:did_indent = 1 diff --git a/indent/elixir.vim b/indent/elixir.vim index 92b98460..636097b7 100644 --- a/indent/elixir.vim +++ b/indent/elixir.vim @@ -25,6 +25,7 @@ let s:block_skip   = "synIDattr(synID(line('.'),col('.'),1),'name') =~? '" . s:s  let s:block_start  = 'do\|fn'  let s:block_middle = 'else\|match\|elsif\|catch\|after\|rescue'  let s:block_end    = 'end' +let s:symbols_end  = '\]\|}'  let s:arrow        = '^.*->$'  let s:pipeline     = '^\s*|>.*$' @@ -59,7 +60,11 @@ function! GetElixirIndent()      let ind += opened_symbol * &sw -    if current_line =~ '^\s*\(\]\|}\)' +    if last_line =~ '^\s*\(' . s:symbols_end . '\)' +      let ind += &sw +    endif + +    if current_line =~ '^\s*\(' . s:symbols_end . '\)'        let ind -= &sw      endif diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim new file mode 100644 index 00000000..50399f2b --- /dev/null +++ b/indent/gohtmltmpl.vim @@ -0,0 +1,5 @@ +if exists("b:did_indent") +  finish +endif + +runtime! indent/html.vim diff --git a/indent/perl.vim b/indent/perl.vim index 3ce3e59a..7d21d219 100644 --- a/indent/perl.vim +++ b/indent/perl.vim @@ -48,11 +48,6 @@ function! GetPerlIndent()          return 0      endif -    " Don't reindent comments on first column -    if cline =~ '^#.' -        return 0 -    endif -      " Get current syntax item at the line's first char      let csynid = ''      if b:indent_use_syntax diff --git a/indent/perl6.vim b/indent/perl6.vim index 161782e8..564ca81b 100644 --- a/indent/perl6.vim +++ b/indent/perl6.vim @@ -60,11 +60,6 @@ function! GetPerl6Indent()          return 0      endif -    " Don't reindent coments on first column -    if cline =~ '^#' -        return 0 -    endif -      " Get current syntax item at the line's first char      let csynid = ''      if b:indent_use_syntax diff --git a/indent/tex.vim b/indent/tex.vim index e7653d03..3abc44ba 100644 --- a/indent/tex.vim +++ b/indent/tex.vim @@ -101,9 +101,21 @@ function! Latexbox_CallIndent()    let window = getpos('.')    call setpos('.', cursor) +  " Get first non-whitespace character of current line. +  let line_start_char = matchstr(getline('.'), '\S') + +  " Get initial tab position. +  let initial_tab = stridx(getline('.'), line_start_char) +    " Execute the command.    execute 'normal! ==' +  " Get tab position difference. +  let difference = stridx(getline('.'), line_start_char) - initial_tab + +  " Set new cursor Y position based on calculated difference. +  let cursor[2] = cursor[2] + difference +    " Restore the previous window position.    call setpos('.', window)    normal! zt diff --git a/indent/typescript.vim b/indent/typescript.vim index f498298b..78d04c5c 100644 --- a/indent/typescript.vim +++ b/indent/typescript.vim @@ -3,6 +3,10 @@  " Maintainer:	None!  Wanna improve this?  " Last Change:	2015 Mar 07 +if get(g:, 'typescript_indent_disable') +  finish +endif +  " Only load this indent file when no other was loaded.  if exists("b:did_indent")     finish @@ -54,6 +58,12 @@ function GetTypescriptIndent()          return indent(prev)      endif +    " If a variable was declared and the semicolon omitted, do not indent +    " the next line +    if getline(prev) =~ '^\s*var\s\+\w\+' +        return indent(prev) +    endif +      " Try to find out whether the last `}` ended a `<variable> : {` block      if getline(prev) =~ '};\s*$'          " jump to matching `{` bracket diff --git a/syntax/arduino.vim b/syntax/arduino.vim index df923469..1a2cd41b 100644 --- a/syntax/arduino.vim +++ b/syntax/arduino.vim @@ -2,16 +2,13 @@  " Language:    Arduino  " Maintainer:  Sudar <sudar@sudarmuthu.com>  " Original Author:  Johannes Hoff <johannes@johanneshoff.com> -" Last Change: 19 February 2013 +" Last Change: 27 April 2015  " License:     VIM license (:help license, replace vim by arduino.vim)  " Syntax highlighting like in the Arduino IDE -" Automatically generated by the script available at -"    https://bitbucket.org/johannes/arduino-vim-syntax -" Using keywords from <arduino>/lib/keywords.txt -" From version:   " Thanks to original author Johannes Hoff and Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback! +" Thanks to Rafi Khan for Arduino 1.5.x support  " For version 5.x: Clear all syntax items  " For version 6.x: Quit when a syntax file was already loaded @@ -28,33 +25,142 @@ else    runtime! syntax/cpp.vim  endif -syn keyword arduinoConstant  BIN CHANGE DEC DEFAULT EXTERNAL FALLING HALF_PI HEX -syn keyword arduinoConstant  HIGH INPUT INPUT_PULLUP INTERNAL INTERNAL1V1 -syn keyword arduinoConstant  INTERNAL2V56 LOW LSBFIRST MSBFIRST OCT OUTPUT PI -syn keyword arduinoConstant  RISING TWO_PI - -syn keyword arduinoFunc      analogRead analogReference analogWrite -syn keyword arduinoFunc      attachInterrupt bit bitClear bitRead bitSet -syn keyword arduinoFunc      bitWrite delay delayMicroseconds detachInterrupt -syn keyword arduinoFunc      digitalRead digitalWrite highByte interrupts -syn keyword arduinoFunc      lowByte micros millis noInterrupts noTone pinMode -syn keyword arduinoFunc      pulseIn shiftIn shiftOut tone - -syn keyword arduinoMethod    available begin end find findUntil flush loop -syn keyword arduinoMethod    parseFloat parseInt peek print println read -syn keyword arduinoMethod    readBytes readBytesUntil setTimeout setup - -syn keyword arduinoModule    Serial Serial1 Serial2 Serial3 - -syn keyword arduinoStdFunc   abs acos asin atan atan2 ceil constrain cos degrees -syn keyword arduinoStdFunc   exp floor log map max min radians random randomSeed -syn keyword arduinoStdFunc   round sin sq sqrt tan - -syn keyword arduinoType      boolean byte null String word +"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\EEPROM\keywords.txt{{{ +	syn keyword arduinoConstant EEPROM +"}}} +"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\SoftwareSerial\keywords.txt{{{ +	syn keyword arduinoFunc SoftwareSerial begin end read write available isListening overflow flush listen +	syn keyword arduinoFunc peek +"}}} +"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\SPI\keywords.txt{{{ +	syn keyword arduinoConstant SPI SPI_CLOCK_DIV4 SPI_CLOCK_DIV16 SPI_CLOCK_DIV64 SPI_CLOCK_DIV128 SPI_CLOCK_DIV2 SPI_CLOCK_DIV8 SPI_CLOCK_DIV32 SPI_CLOCK_DIV64 SPI_MODE0 +	syn keyword arduinoConstant SPI_MODE1 SPI_MODE2 SPI_MODE3 +	syn keyword arduinoFunc begin end transfer setBitOrder setDataMode setClockDivider +"}}} +"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\Wire\keywords.txt{{{ +	syn keyword arduinoFunc begin setClock beginTransmission endTransmission requestFrom send receive onReceive onRequest Wire +"}}} +"C:/Program Files (x86)/Arduino\hardware\arduino\sam\libraries\SPI\keywords.txt{{{ +	syn keyword arduinoConstant SPI SPI_MODE0 SPI_MODE1 SPI_MODE2 SPI_MODE3 SPI_CONTINUE SPI_LAST +	syn keyword arduinoFunc begin end transfer setDataMode setClockDivider +"}}} +"C:/Program Files (x86)/Arduino\hardware\arduino\sam\libraries\Wire\keywords.txt{{{ +	syn keyword arduinoFunc begin setClock beginTransmission endTransmission requestFrom send receive onReceive onRequest Wire +	syn keyword arduinoFunc Wire1 +"}}} +"C:/Program Files (x86)/Arduino\lib\keywords.txt{{{ +	syn keyword arduinoConstant HIGH LOW INPUT INPUT_PULLUP OUTPUT DEC BIN HEX OCT PI +	syn keyword arduinoConstant HALF_PI TWO_PI LSBFIRST MSBFIRST CHANGE FALLING RISING DEFAULT EXTERNAL INTERNAL +	syn keyword arduinoConstant INTERNAL1V1 INTERNAL2V56 +	syn keyword arduinoType boolean break byte case char class const continue default do +	syn keyword arduinoType double else false float for if int long new null +	syn keyword arduinoType private protected public register return short signed static String switch +	syn keyword arduinoType this throw try true unsigned void while word boolean byte +	syn keyword arduinoType char float int long word +	syn keyword arduinoFunc abs acos asin atan atan2 ceil constrain cos degrees exp +	syn keyword arduinoFunc floor log map max min radians random randomSeed round sin +	syn keyword arduinoFunc sq sqrt tan pow bitRead bitWrite bitSet bitClear bit highByte +	syn keyword arduinoFunc lowByte analogReference analogRead analogWrite attachInterrupt detachInterrupt delay delayMicroseconds digitalWrite digitalRead +	syn keyword arduinoFunc interrupts millis micros noInterrupts noTone pinMode pulseIn shiftIn shiftOut tone +	syn keyword arduinoFunc yield +	syn keyword arduinoIdentifier Serial Serial1 Serial2 Serial3 +	syn keyword arduinoFunc SerialUSB begin end peek read +	syn keyword arduinoFunc print println available availableForWrite flush setTimeout find findUntil parseInt parseFloat +	syn keyword arduinoFunc readBytes readBytesUntil readString readStringUntil trim toUpperCase toLowerCase charAt compareTo concat +	syn keyword arduinoFunc endsWith startsWith equals equalsIgnoreCase getBytes indexOf lastIndexOf length replace setCharAt +	syn keyword arduinoFunc substring toCharArray toInt Keyboard Mouse press release releaseAll accept click +	syn keyword arduinoFunc move isPressed setup loop +"}}} +"C:/Program Files (x86)/Arduino\libraries\Audio\keywords.txt{{{ +	syn keyword arduinoFunc Audio prepare write +"}}} +"C:/Program Files (x86)/Arduino\libraries\Bridge\keywords.txt{{{ +	syn keyword arduinoConstant FILE_READ FILE_WRITE FILE_APPEND +	syn keyword arduinoFunc Bridge FileIO FileSystem Console Process Mailbox HttpClient YunServer YunClient begin +	syn keyword arduinoFunc end available read peek write flush bool transfer put get +	syn keyword arduinoFunc buffer noBuffer connected File seek position size close name isDirectory +	syn keyword arduinoFunc openNextFile rewindDirectory addParameter runAsynchronously run running exitValue runShellCommand runShellCommandAsynchronously readMessage +	syn keyword arduinoFunc writeMessage writeJSON message Available getAsynchronously ready getResult accept stop connect connected +"}}} +"C:/Program Files (x86)/Arduino\libraries\Esplora\keywords.txt{{{ +	syn keyword arduinoConstant JOYSTICK_BASE MAX_CHANNELS CH_SWITCH_1 CH_SWITCH_2 CH_SWITCH_3 CH_SWITCH_4 CH_SLIDER CH_LIGHT CH_TEMPERATURE CH_MIC +	syn keyword arduinoConstant CH_JOYSTICK_SW CH_JOYSTICK_X CH_JOYSTICK_Y SWITCH_1 SWITCH_2 SWITCH_3 SWITCH_4 SWITCH_DOWN SWITCH_LEFT SWITCH_UP +	syn keyword arduinoConstant SWITCH_RIGHT JOYSTICK_DOWN JOYSTICK_LEFT JOYSTICK_UP PRESSED RELEASED DEGREES_C DEGREES_F X_AXIS Y_AXIS +	syn keyword arduinoConstant Z_AXIS +	syn keyword arduinoFunc Esplora begin readSlider readLightSensor readTemperature readMicrophone readJoystickSwitch readJoystickButton readJoystickX readJoystickY +	syn keyword arduinoFunc readAccelerometer readButton writeRGB writeRed writeGreen writeBlue readRed readGreen readBlue readBlue +	syn keyword arduinoFunc readBlue readBlue tone noTone +"}}} +"C:/Program Files (x86)/Arduino\libraries\Ethernet\keywords.txt{{{ +	syn keyword arduinoFunc Ethernet EthernetClient EthernetServer IPAddress status connect write available read peek +	syn keyword arduinoFunc flush stop connected begin beginPacket endPacket parsePacket remoteIP remotePort +"}}} +"C:/Program Files (x86)/Arduino\libraries\Firmata\keywords.txt{{{ +	syn keyword arduinoConstant MAX_DATA_BYTES DIGITAL_MESSAGE ANALOG_MESSAGE REPORT_ANALOG REPORT_DIGITAL REPORT_VERSION SET_PIN_MODE SYSTEM_RESET START_SYSEX END_SYSEX +	syn keyword arduinoConstant PWM TOTAL_ANALOG_PINS TOTAL_DIGITAL_PINS TOTAL_PORTS ANALOG_PORT +	syn keyword arduinoFunc Firmata callbackFunction systemResetCallbackFunction stringCallbackFunction sysexCallbackFunction begin begin printVersion blinkVersion printFirmwareVersion +	syn keyword arduinoFunc setFirmwareVersion setFirmwareNameAndVersion available processInput sendAnalog sendDigital sendDigitalPortPair sendDigitalPort sendString sendString +	syn keyword arduinoFunc sendSysex attach detach flush +"}}} +"C:/Program Files (x86)/Arduino\libraries\GSM\keywords.txt{{{ +	syn keyword arduinoConstant GSM GSM_SMS GPRS GSMPIN GSMPIN ERROR IDLE CONNECTING GSM_READY GPRS_READY +	syn keyword arduinoConstant TRANSPARENT_CONNECTED IDLE_CALL CALLING RECEIVINGCALL TALKING GSM_MODE_UNDEFINED GSM_MODE_EGSM GSM_MODE_DCS GSM_MODE_PCS GSM_MODE_EGSM_DCS +	syn keyword arduinoConstant GSM_MODE_GSM850_PCS GSM_MODE_GSM850_EGSM_DCS_PCS +	syn keyword arduinoFunc GSMVoiceCall GSMClient GSMServer GSMModem GSMScanner begin shutdown gatVoiceCallStatus ready voiceCall +	syn keyword arduinoFunc answerCall hangCall retrieveCallingNumber beginSMS endSMS remoteNumber attachGPRS begnWrite endWrite getIMEI +	syn keyword arduinoFunc getCurrentCarrier getSignalStrength readNetworks isPIN checkPIN checkPUK changePIN switchPIN checkReg getPINUsed +	syn keyword arduinoFunc setPINUsed getBand setBand getvoiceCallStatus +"}}} +"C:/Program Files (x86)/Arduino\libraries\LiquidCrystal\keywords.txt{{{ +	syn keyword arduinoFunc LiquidCrystal begin clear home print setCursor cursor noCursor blink noBlink +	syn keyword arduinoFunc display noDisplay autoscroll noAutoscroll leftToRight rightToLeft scrollDisplayLeft scrollDisplayRight createChar setRowOffsets +"}}} +"C:/Program Files (x86)/Arduino\libraries\Scheduler\keywords.txt{{{ +	syn keyword arduinoFunc Scheduler startLoop +"}}} +"C:/Program Files (x86)/Arduino\libraries\SD\keywords.txt{{{ +	syn keyword arduinoConstant SD FILE_READ FILE_WRITE +	syn keyword arduinoFunc File begin exists mkdir remove rmdir open close seek position +	syn keyword arduinoFunc size +"}}} +"C:/Program Files (x86)/Arduino\libraries\Servo\keywords.txt{{{ +	syn keyword arduinoFunc Servo attach detach write read attached writeMicroseconds readMicroseconds +"}}} +"C:/Program Files (x86)/Arduino\libraries\SpacebrewYun\keywords.txt{{{ +	syn keyword arduinoFunc SpacebrewYun addPublish addSubscribe connect verbose monitor onMessage send onRangeMessage onStringMessage +	syn keyword arduinoFunc onBooleanMessage onCustomMessage onOpen onClose onError +"}}} +"C:/Program Files (x86)/Arduino\libraries\Stepper\keywords.txt{{{ +	syn keyword arduinoFunc Stepper step setSpeed version direction speed +"}}} +"C:/Program Files (x86)/Arduino\libraries\Temboo\keywords.txt{{{ +	syn keyword arduinoFunc Temboo TembooChoreo begin setAccountName setAppKeyName setAppKey setChoreo setCredential setSavedInputs addInput +	syn keyword arduinoFunc addOutputFilter setSettingsFileToWrite setSettingsFileToRead +"}}} +"C:/Program Files (x86)/Arduino\libraries\TFT\keywords.txt{{{ +	syn keyword arduinoConstant TFT +	syn keyword arduinoFunc EsploraTFT +"}}} +"C:/Program Files (x86)/Arduino\libraries\TFT\src\utility\keywords.txt{{{ +	syn keyword arduinoFunc Adafruit_GFX Adafruit_ST7735 PImage drawPixel invertDisplay drawLine drawFastVLine drawFastHLine drawRect fillRect +	syn keyword arduinoFunc fillScreen drawCircle drawCircleHelper fillCircle fillCircleHelper drawTriangle fillTriangle drawRoundRect fillRoundRect drawBitmap +	syn keyword arduinoFunc drawChar setCursor setTextColor setTextSize setTextWrap height width setRotation getRotation newColor +	syn keyword arduinoFunc background fill noFill stroke noStroke text textWrap textSize circle point +	syn keyword arduinoFunc quad rect triangle loadImage image draw isValid +"}}} +"C:/Program Files (x86)/Arduino\libraries\USBHost\keywords.txt{{{ +	syn keyword arduinoFunc MouseController USBHost KeyboardController Task mouseMoved mouseDragged mousePressed mouseReleased getXChange getYChange +	syn keyword arduinoFunc getButton keyPressed keyReleased getModifiers getKey getOemKey +"}}} +"C:/Program Files (x86)/Arduino\libraries\WiFi\keywords.txt{{{ +	syn keyword arduinoConstant SSID BSSID RSSI +	syn keyword arduinoFunc WiFi WiFiUdp Client Server firmwareVersion status connect write available config +	syn keyword arduinoFunc setDNS read flush stop connected begin disconnect macAddress localIP subnetMask +	syn keyword arduinoFunSec gatewayIP encryptionType getResult getSocket WiFiClient WiFiServer WiFiUDP beginPacket endPacket parsePacket +	syn keyword arduinoFunc remoteIP remotePort +"}}}  hi def link arduinoType Type  hi def link arduinoConstant Constant -hi def link arduinoStdFunc Function  hi def link arduinoFunc Function -hi def link arduinoMethod Function -hi def link arduinoModule Identifier +hi def link arduinoIdentifier Identifier diff --git a/syntax/clojure.vim b/syntax/clojure.vim index cd9fdf68..e4348557 100644 --- a/syntax/clojure.vim +++ b/syntax/clojure.vim @@ -21,18 +21,18 @@ endif  " -*- KEYWORDS -*-  " Generated from https://github.com/guns/vim-clojure-static/blob/%%RELEASE_TAG%%/clj/src/vim_clojure_static/generate.clj -" Clojure version 1.6.0 +" Clojure version 1.7.0-beta2  let s:clojure_syntax_keywords = {      \   'clojureBoolean': ["false","true"]      \ , 'clojureCond': ["case","clojure.core/case","clojure.core/cond","clojure.core/cond->","clojure.core/cond->>","clojure.core/condp","clojure.core/if-let","clojure.core/if-not","clojure.core/if-some","clojure.core/when","clojure.core/when-first","clojure.core/when-let","clojure.core/when-not","clojure.core/when-some","cond","cond->","cond->>","condp","if-let","if-not","if-some","when","when-first","when-let","when-not","when-some"]      \ , 'clojureConstant': ["nil"]      \ , 'clojureDefine': ["clojure.core/definline","clojure.core/definterface","clojure.core/defmacro","clojure.core/defmethod","clojure.core/defmulti","clojure.core/defn","clojure.core/defn-","clojure.core/defonce","clojure.core/defprotocol","clojure.core/defrecord","clojure.core/defstruct","clojure.core/deftype","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype"]      \ , 'clojureException': ["catch","finally","throw","try"] -    \ , 'clojureFunc': ["*","*'","+","+'","-","-'","->ArrayChunk","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","/","<","<=","=","==",">",">=","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","ancestors","apply","array-map","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","booleans","bound-fn*","bound?","butlast","byte","byte-array","bytes","cast","char","char-array","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","clojure.core/*","clojure.core/*'","clojure.core/+","clojure.core/+'","clojure.core/-","clojure.core/-'","clojure.core/->ArrayChunk","clojure.core/->Vec","clojure.core/->VecNode","clojure.core/->VecSeq","clojure.core/-cache-protocol-fn","clojure.core/-reset-methods","clojure.core//","clojure.core/<","clojure.core/<=","clojure.core/=","clojure.core/==","clojure.core/>","clojure.core/>=","clojure.core/accessor","clojure.core/aclone","clojure.core/add-classpath","clojure.core/add-watch","clojure.core/agent","clojure.core/agent-error","clojure.core/agent-errors","clojure.core/aget","clojure.core/alength","clojure.core/alias","clojure.core/all-ns","clojure.core/alter","clojure.core/alter-meta!","clojure.core/alter-var-root","clojure.core/ancestors","clojure.core/apply","clojure.core/array-map","clojure.core/aset","clojure.core/aset-boolean","clojure.core/aset-byte","clojure.core/aset-char","clojure.core/aset-double","clojure.core/aset-float","clojure.core/aset-int","clojure.core/aset-long","clojure.core/aset-short","clojure.core/assoc","clojure.core/assoc!","clojure.core/assoc-in","clojure.core/associative?","clojure.core/atom","clojure.core/await","clojure.core/await-for","clojure.core/await1","clojure.core/bases","clojure.core/bean","clojure.core/bigdec","clojure.core/bigint","clojure.core/biginteger","clojure.core/bit-and","clojure.core/bit-and-not","clojure.core/bit-clear","clojure.core/bit-flip","clojure.core/bit-not","clojure.core/bit-or","clojure.core/bit-set","clojure.core/bit-shift-left","clojure.core/bit-shift-right","clojure.core/bit-test","clojure.core/bit-xor","clojure.core/boolean","clojure.core/boolean-array","clojure.core/booleans","clojure.core/bound-fn*","clojure.core/bound?","clojure.core/butlast","clojure.core/byte","clojure.core/byte-array","clojure.core/bytes","clojure.core/cast","clojure.core/char","clojure.core/char-array","clojure.core/char?","clojure.core/chars","clojure.core/chunk","clojure.core/chunk-append","clojure.core/chunk-buffer","clojure.core/chunk-cons","clojure.core/chunk-first","clojure.core/chunk-next","clojure.core/chunk-rest","clojure.core/chunked-seq?","clojure.core/class","clojure.core/class?","clojure.core/clear-agent-errors","clojure.core/clojure-version","clojure.core/coll?","clojure.core/commute","clojure.core/comp","clojure.core/comparator","clojure.core/compare","clojure.core/compare-and-set!","clojure.core/compile","clojure.core/complement","clojure.core/concat","clojure.core/conj","clojure.core/conj!","clojure.core/cons","clojure.core/constantly","clojure.core/construct-proxy","clojure.core/contains?","clojure.core/count","clojure.core/counted?","clojure.core/create-ns","clojure.core/create-struct","clojure.core/cycle","clojure.core/dec","clojure.core/dec'","clojure.core/decimal?","clojure.core/delay?","clojure.core/deliver","clojure.core/denominator","clojure.core/deref","clojure.core/derive","clojure.core/descendants","clojure.core/destructure","clojure.core/disj","clojure.core/disj!","clojure.core/dissoc","clojure.core/dissoc!","clojure.core/distinct","clojure.core/distinct?","clojure.core/doall","clojure.core/dorun","clojure.core/double","clojure.core/double-array","clojure.core/doubles","clojure.core/drop","clojure.core/drop-last","clojure.core/drop-while","clojure.core/empty","clojure.core/empty?","clojure.core/ensure","clojure.core/enumeration-seq","clojure.core/error-handler","clojure.core/error-mode","clojure.core/eval","clojure.core/even?","clojure.core/every-pred","clojure.core/every?","clojure.core/ex-data","clojure.core/ex-info","clojure.core/extend","clojure.core/extenders","clojure.core/extends?","clojure.core/false?","clojure.core/ffirst","clojure.core/file-seq","clojure.core/filter","clojure.core/filterv","clojure.core/find","clojure.core/find-keyword","clojure.core/find-ns","clojure.core/find-protocol-impl","clojure.core/find-protocol-method","clojure.core/find-var","clojure.core/first","clojure.core/flatten","clojure.core/float","clojure.core/float-array","clojure.core/float?","clojure.core/floats","clojure.core/flush","clojure.core/fn?","clojure.core/fnext","clojure.core/fnil","clojure.core/force","clojure.core/format","clojure.core/frequencies","clojure.core/future-call","clojure.core/future-cancel","clojure.core/future-cancelled?","clojure.core/future-done?","clojure.core/future?","clojure.core/gensym","clojure.core/get","clojure.core/get-in","clojure.core/get-method","clojure.core/get-proxy-class","clojure.core/get-thread-bindings","clojure.core/get-validator","clojure.core/group-by","clojure.core/hash","clojure.core/hash-combine","clojure.core/hash-map","clojure.core/hash-ordered-coll","clojure.core/hash-set","clojure.core/hash-unordered-coll","clojure.core/identical?","clojure.core/identity","clojure.core/ifn?","clojure.core/in-ns","clojure.core/inc","clojure.core/inc'","clojure.core/init-proxy","clojure.core/instance?","clojure.core/int","clojure.core/int-array","clojure.core/integer?","clojure.core/interleave","clojure.core/intern","clojure.core/interpose","clojure.core/into","clojure.core/into-array","clojure.core/ints","clojure.core/isa?","clojure.core/iterate","clojure.core/iterator-seq","clojure.core/juxt","clojure.core/keep","clojure.core/keep-indexed","clojure.core/key","clojure.core/keys","clojure.core/keyword","clojure.core/keyword?","clojure.core/last","clojure.core/line-seq","clojure.core/list","clojure.core/list*","clojure.core/list?","clojure.core/load","clojure.core/load-file","clojure.core/load-reader","clojure.core/load-string","clojure.core/loaded-libs","clojure.core/long","clojure.core/long-array","clojure.core/longs","clojure.core/macroexpand","clojure.core/macroexpand-1","clojure.core/make-array","clojure.core/make-hierarchy","clojure.core/map","clojure.core/map-indexed","clojure.core/map?","clojure.core/mapcat","clojure.core/mapv","clojure.core/max","clojure.core/max-key","clojure.core/memoize","clojure.core/merge","clojure.core/merge-with","clojure.core/meta","clojure.core/method-sig","clojure.core/methods","clojure.core/min","clojure.core/min-key","clojure.core/mix-collection-hash","clojure.core/mod","clojure.core/munge","clojure.core/name","clojure.core/namespace","clojure.core/namespace-munge","clojure.core/neg?","clojure.core/newline","clojure.core/next","clojure.core/nfirst","clojure.core/nil?","clojure.core/nnext","clojure.core/not","clojure.core/not-any?","clojure.core/not-empty","clojure.core/not-every?","clojure.core/not=","clojure.core/ns-aliases","clojure.core/ns-imports","clojure.core/ns-interns","clojure.core/ns-map","clojure.core/ns-name","clojure.core/ns-publics","clojure.core/ns-refers","clojure.core/ns-resolve","clojure.core/ns-unalias","clojure.core/ns-unmap","clojure.core/nth","clojure.core/nthnext","clojure.core/nthrest","clojure.core/num","clojure.core/number?","clojure.core/numerator","clojure.core/object-array","clojure.core/odd?","clojure.core/parents","clojure.core/partial","clojure.core/partition","clojure.core/partition-all","clojure.core/partition-by","clojure.core/pcalls","clojure.core/peek","clojure.core/persistent!","clojure.core/pmap","clojure.core/pop","clojure.core/pop!","clojure.core/pop-thread-bindings","clojure.core/pos?","clojure.core/pr","clojure.core/pr-str","clojure.core/prefer-method","clojure.core/prefers","clojure.core/print","clojure.core/print-ctor","clojure.core/print-dup","clojure.core/print-method","clojure.core/print-simple","clojure.core/print-str","clojure.core/printf","clojure.core/println","clojure.core/println-str","clojure.core/prn","clojure.core/prn-str","clojure.core/promise","clojure.core/proxy-call-with-super","clojure.core/proxy-mappings","clojure.core/proxy-name","clojure.core/push-thread-bindings","clojure.core/quot","clojure.core/rand","clojure.core/rand-int","clojure.core/rand-nth","clojure.core/range","clojure.core/ratio?","clojure.core/rational?","clojure.core/rationalize","clojure.core/re-find","clojure.core/re-groups","clojure.core/re-matcher","clojure.core/re-matches","clojure.core/re-pattern","clojure.core/re-seq","clojure.core/read","clojure.core/read-line","clojure.core/read-string","clojure.core/realized?","clojure.core/record?","clojure.core/reduce","clojure.core/reduce-kv","clojure.core/reduced","clojure.core/reduced?","clojure.core/reductions","clojure.core/ref","clojure.core/ref-history-count","clojure.core/ref-max-history","clojure.core/ref-min-history","clojure.core/ref-set","clojure.core/refer","clojure.core/release-pending-sends","clojure.core/rem","clojure.core/remove","clojure.core/remove-all-methods","clojure.core/remove-method","clojure.core/remove-ns","clojure.core/remove-watch","clojure.core/repeat","clojure.core/repeatedly","clojure.core/replace","clojure.core/replicate","clojure.core/require","clojure.core/reset!","clojure.core/reset-meta!","clojure.core/resolve","clojure.core/rest","clojure.core/restart-agent","clojure.core/resultset-seq","clojure.core/reverse","clojure.core/reversible?","clojure.core/rseq","clojure.core/rsubseq","clojure.core/satisfies?","clojure.core/second","clojure.core/select-keys","clojure.core/send","clojure.core/send-off","clojure.core/send-via","clojure.core/seq","clojure.core/seq?","clojure.core/seque","clojure.core/sequence","clojure.core/sequential?","clojure.core/set","clojure.core/set-agent-send-executor!","clojure.core/set-agent-send-off-executor!","clojure.core/set-error-handler!","clojure.core/set-error-mode!","clojure.core/set-validator!","clojure.core/set?","clojure.core/short","clojure.core/short-array","clojure.core/shorts","clojure.core/shuffle","clojure.core/shutdown-agents","clojure.core/slurp","clojure.core/some","clojure.core/some-fn","clojure.core/some?","clojure.core/sort","clojure.core/sort-by","clojure.core/sorted-map","clojure.core/sorted-map-by","clojure.core/sorted-set","clojure.core/sorted-set-by","clojure.core/sorted?","clojure.core/special-symbol?","clojure.core/spit","clojure.core/split-at","clojure.core/split-with","clojure.core/str","clojure.core/string?","clojure.core/struct","clojure.core/struct-map","clojure.core/subs","clojure.core/subseq","clojure.core/subvec","clojure.core/supers","clojure.core/swap!","clojure.core/symbol","clojure.core/symbol?","clojure.core/take","clojure.core/take-last","clojure.core/take-nth","clojure.core/take-while","clojure.core/test","clojure.core/the-ns","clojure.core/thread-bound?","clojure.core/to-array","clojure.core/to-array-2d","clojure.core/trampoline","clojure.core/transient","clojure.core/tree-seq","clojure.core/true?","clojure.core/type","clojure.core/unchecked-add","clojure.core/unchecked-add-int","clojure.core/unchecked-byte","clojure.core/unchecked-char","clojure.core/unchecked-dec","clojure.core/unchecked-dec-int","clojure.core/unchecked-divide-int","clojure.core/unchecked-double","clojure.core/unchecked-float","clojure.core/unchecked-inc","clojure.core/unchecked-inc-int","clojure.core/unchecked-int","clojure.core/unchecked-long","clojure.core/unchecked-multiply","clojure.core/unchecked-multiply-int","clojure.core/unchecked-negate","clojure.core/unchecked-negate-int","clojure.core/unchecked-remainder-int","clojure.core/unchecked-short","clojure.core/unchecked-subtract","clojure.core/unchecked-subtract-int","clojure.core/underive","clojure.core/unsigned-bit-shift-right","clojure.core/update-in","clojure.core/update-proxy","clojure.core/use","clojure.core/val","clojure.core/vals","clojure.core/var-get","clojure.core/var-set","clojure.core/var?","clojure.core/vary-meta","clojure.core/vec","clojure.core/vector","clojure.core/vector-of","clojure.core/vector?","clojure.core/with-bindings*","clojure.core/with-meta","clojure.core/with-redefs-fn","clojure.core/xml-seq","clojure.core/zero?","clojure.core/zipmap","coll?","commute","comp","comparator","compare","compare-and-set!","compile","complement","concat","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","double","double-array","doubles","drop","drop-last","drop-while","empty","empty?","ensure","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn?","fnext","fnil","force","format","frequencies","future-call","future-cancel","future-cancelled?","future-done?","future?","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","identical?","identity","ifn?","in-ns","inc","inc'","init-proxy","instance?","int","int-array","integer?","interleave","intern","interpose","into","into-array","ints","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","long","long-array","longs","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-indexed","map?","mapcat","mapv","max","max-key","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos?","pr","pr-str","prefer-method","prefers","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy-call-with-super","proxy-mappings","proxy-name","push-thread-bindings","quot","rand","rand-int","rand-nth","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","slurp","some","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","symbol","symbol?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","to-array","to-array-2d","trampoline","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unsigned-bit-shift-right","update-in","update-proxy","use","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","with-bindings*","with-meta","with-redefs-fn","xml-seq","zero?","zipmap"] -    \ , 'clojureMacro': ["->","->>","..","amap","and","areduce","as->","assert","binding","bound-fn","clojure.core/->","clojure.core/->>","clojure.core/..","clojure.core/amap","clojure.core/and","clojure.core/areduce","clojure.core/as->","clojure.core/assert","clojure.core/binding","clojure.core/bound-fn","clojure.core/comment","clojure.core/declare","clojure.core/delay","clojure.core/dosync","clojure.core/doto","clojure.core/extend-protocol","clojure.core/extend-type","clojure.core/for","clojure.core/future","clojure.core/gen-class","clojure.core/gen-interface","clojure.core/import","clojure.core/io!","clojure.core/lazy-cat","clojure.core/lazy-seq","clojure.core/letfn","clojure.core/locking","clojure.core/memfn","clojure.core/ns","clojure.core/or","clojure.core/proxy","clojure.core/proxy-super","clojure.core/pvalues","clojure.core/refer-clojure","clojure.core/reify","clojure.core/some->","clojure.core/some->>","clojure.core/sync","clojure.core/time","clojure.core/with-bindings","clojure.core/with-in-str","clojure.core/with-loading-context","clojure.core/with-local-vars","clojure.core/with-open","clojure.core/with-out-str","clojure.core/with-precision","clojure.core/with-redefs","comment","declare","delay","dosync","doto","extend-protocol","extend-type","for","future","gen-class","gen-interface","import","io!","lazy-cat","lazy-seq","letfn","locking","memfn","ns","or","proxy","proxy-super","pvalues","refer-clojure","reify","some->","some->>","sync","time","with-bindings","with-in-str","with-loading-context","with-local-vars","with-open","with-out-str","with-precision","with-redefs"] +    \ , 'clojureFunc': ["*","*'","+","+'","-","-'","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","/","<","<=","=","==",">",">=","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","ancestors","apply","array-map","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","booleans","bound-fn*","bound?","butlast","byte","byte-array","bytes","cast","cat","char","char-array","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","clojure.core/*","clojure.core/*'","clojure.core/+","clojure.core/+'","clojure.core/-","clojure.core/-'","clojure.core/->ArrayChunk","clojure.core/->Eduction","clojure.core/->Vec","clojure.core/->VecNode","clojure.core/->VecSeq","clojure.core/-cache-protocol-fn","clojure.core/-reset-methods","clojure.core//","clojure.core/<","clojure.core/<=","clojure.core/=","clojure.core/==","clojure.core/>","clojure.core/>=","clojure.core/Throwable->map","clojure.core/accessor","clojure.core/aclone","clojure.core/add-classpath","clojure.core/add-watch","clojure.core/agent","clojure.core/agent-error","clojure.core/agent-errors","clojure.core/aget","clojure.core/alength","clojure.core/alias","clojure.core/all-ns","clojure.core/alter","clojure.core/alter-meta!","clojure.core/alter-var-root","clojure.core/ancestors","clojure.core/apply","clojure.core/array-map","clojure.core/aset","clojure.core/aset-boolean","clojure.core/aset-byte","clojure.core/aset-char","clojure.core/aset-double","clojure.core/aset-float","clojure.core/aset-int","clojure.core/aset-long","clojure.core/aset-short","clojure.core/assoc","clojure.core/assoc!","clojure.core/assoc-in","clojure.core/associative?","clojure.core/atom","clojure.core/await","clojure.core/await-for","clojure.core/await1","clojure.core/bases","clojure.core/bean","clojure.core/bigdec","clojure.core/bigint","clojure.core/biginteger","clojure.core/bit-and","clojure.core/bit-and-not","clojure.core/bit-clear","clojure.core/bit-flip","clojure.core/bit-not","clojure.core/bit-or","clojure.core/bit-set","clojure.core/bit-shift-left","clojure.core/bit-shift-right","clojure.core/bit-test","clojure.core/bit-xor","clojure.core/boolean","clojure.core/boolean-array","clojure.core/booleans","clojure.core/bound-fn*","clojure.core/bound?","clojure.core/butlast","clojure.core/byte","clojure.core/byte-array","clojure.core/bytes","clojure.core/cast","clojure.core/cat","clojure.core/char","clojure.core/char-array","clojure.core/char?","clojure.core/chars","clojure.core/chunk","clojure.core/chunk-append","clojure.core/chunk-buffer","clojure.core/chunk-cons","clojure.core/chunk-first","clojure.core/chunk-next","clojure.core/chunk-rest","clojure.core/chunked-seq?","clojure.core/class","clojure.core/class?","clojure.core/clear-agent-errors","clojure.core/clojure-version","clojure.core/coll?","clojure.core/commute","clojure.core/comp","clojure.core/comparator","clojure.core/compare","clojure.core/compare-and-set!","clojure.core/compile","clojure.core/complement","clojure.core/completing","clojure.core/concat","clojure.core/conj","clojure.core/conj!","clojure.core/cons","clojure.core/constantly","clojure.core/construct-proxy","clojure.core/contains?","clojure.core/count","clojure.core/counted?","clojure.core/create-ns","clojure.core/create-struct","clojure.core/cycle","clojure.core/dec","clojure.core/dec'","clojure.core/decimal?","clojure.core/dedupe","clojure.core/delay?","clojure.core/deliver","clojure.core/denominator","clojure.core/deref","clojure.core/derive","clojure.core/descendants","clojure.core/destructure","clojure.core/disj","clojure.core/disj!","clojure.core/dissoc","clojure.core/dissoc!","clojure.core/distinct","clojure.core/distinct?","clojure.core/doall","clojure.core/dorun","clojure.core/double","clojure.core/double-array","clojure.core/doubles","clojure.core/drop","clojure.core/drop-last","clojure.core/drop-while","clojure.core/eduction","clojure.core/empty","clojure.core/empty?","clojure.core/ensure","clojure.core/ensure-reduced","clojure.core/enumeration-seq","clojure.core/error-handler","clojure.core/error-mode","clojure.core/eval","clojure.core/even?","clojure.core/every-pred","clojure.core/every?","clojure.core/ex-data","clojure.core/ex-info","clojure.core/extend","clojure.core/extenders","clojure.core/extends?","clojure.core/false?","clojure.core/ffirst","clojure.core/file-seq","clojure.core/filter","clojure.core/filterv","clojure.core/find","clojure.core/find-keyword","clojure.core/find-ns","clojure.core/find-protocol-impl","clojure.core/find-protocol-method","clojure.core/find-var","clojure.core/first","clojure.core/flatten","clojure.core/float","clojure.core/float-array","clojure.core/float?","clojure.core/floats","clojure.core/flush","clojure.core/fn?","clojure.core/fnext","clojure.core/fnil","clojure.core/force","clojure.core/format","clojure.core/frequencies","clojure.core/future-call","clojure.core/future-cancel","clojure.core/future-cancelled?","clojure.core/future-done?","clojure.core/future?","clojure.core/gensym","clojure.core/get","clojure.core/get-in","clojure.core/get-method","clojure.core/get-proxy-class","clojure.core/get-thread-bindings","clojure.core/get-validator","clojure.core/group-by","clojure.core/hash","clojure.core/hash-combine","clojure.core/hash-map","clojure.core/hash-ordered-coll","clojure.core/hash-set","clojure.core/hash-unordered-coll","clojure.core/identical?","clojure.core/identity","clojure.core/ifn?","clojure.core/in-ns","clojure.core/inc","clojure.core/inc'","clojure.core/init-proxy","clojure.core/instance?","clojure.core/int","clojure.core/int-array","clojure.core/integer?","clojure.core/interleave","clojure.core/intern","clojure.core/interpose","clojure.core/into","clojure.core/into-array","clojure.core/ints","clojure.core/isa?","clojure.core/iterate","clojure.core/iterator-seq","clojure.core/juxt","clojure.core/keep","clojure.core/keep-indexed","clojure.core/key","clojure.core/keys","clojure.core/keyword","clojure.core/keyword?","clojure.core/last","clojure.core/line-seq","clojure.core/list","clojure.core/list*","clojure.core/list?","clojure.core/load","clojure.core/load-file","clojure.core/load-reader","clojure.core/load-string","clojure.core/loaded-libs","clojure.core/long","clojure.core/long-array","clojure.core/longs","clojure.core/macroexpand","clojure.core/macroexpand-1","clojure.core/make-array","clojure.core/make-hierarchy","clojure.core/map","clojure.core/map-indexed","clojure.core/map?","clojure.core/mapcat","clojure.core/mapv","clojure.core/max","clojure.core/max-key","clojure.core/memoize","clojure.core/merge","clojure.core/merge-with","clojure.core/meta","clojure.core/method-sig","clojure.core/methods","clojure.core/min","clojure.core/min-key","clojure.core/mix-collection-hash","clojure.core/mod","clojure.core/munge","clojure.core/name","clojure.core/namespace","clojure.core/namespace-munge","clojure.core/neg?","clojure.core/newline","clojure.core/next","clojure.core/nfirst","clojure.core/nil?","clojure.core/nnext","clojure.core/not","clojure.core/not-any?","clojure.core/not-empty","clojure.core/not-every?","clojure.core/not=","clojure.core/ns-aliases","clojure.core/ns-imports","clojure.core/ns-interns","clojure.core/ns-map","clojure.core/ns-name","clojure.core/ns-publics","clojure.core/ns-refers","clojure.core/ns-resolve","clojure.core/ns-unalias","clojure.core/ns-unmap","clojure.core/nth","clojure.core/nthnext","clojure.core/nthrest","clojure.core/num","clojure.core/number?","clojure.core/numerator","clojure.core/object-array","clojure.core/odd?","clojure.core/parents","clojure.core/partial","clojure.core/partition","clojure.core/partition-all","clojure.core/partition-by","clojure.core/pcalls","clojure.core/peek","clojure.core/persistent!","clojure.core/pmap","clojure.core/pop","clojure.core/pop!","clojure.core/pop-thread-bindings","clojure.core/pos?","clojure.core/pr","clojure.core/pr-str","clojure.core/prefer-method","clojure.core/prefers","clojure.core/print","clojure.core/print-ctor","clojure.core/print-dup","clojure.core/print-method","clojure.core/print-simple","clojure.core/print-str","clojure.core/printf","clojure.core/println","clojure.core/println-str","clojure.core/prn","clojure.core/prn-str","clojure.core/promise","clojure.core/proxy-call-with-super","clojure.core/proxy-mappings","clojure.core/proxy-name","clojure.core/push-thread-bindings","clojure.core/quot","clojure.core/rand","clojure.core/rand-int","clojure.core/rand-nth","clojure.core/random-sample","clojure.core/range","clojure.core/ratio?","clojure.core/rational?","clojure.core/rationalize","clojure.core/re-find","clojure.core/re-groups","clojure.core/re-matcher","clojure.core/re-matches","clojure.core/re-pattern","clojure.core/re-seq","clojure.core/read","clojure.core/read-line","clojure.core/read-string","clojure.core/reader-conditional","clojure.core/reader-conditional?","clojure.core/realized?","clojure.core/record?","clojure.core/reduce","clojure.core/reduce-kv","clojure.core/reduced","clojure.core/reduced?","clojure.core/reductions","clojure.core/ref","clojure.core/ref-history-count","clojure.core/ref-max-history","clojure.core/ref-min-history","clojure.core/ref-set","clojure.core/refer","clojure.core/release-pending-sends","clojure.core/rem","clojure.core/remove","clojure.core/remove-all-methods","clojure.core/remove-method","clojure.core/remove-ns","clojure.core/remove-watch","clojure.core/repeat","clojure.core/repeatedly","clojure.core/replace","clojure.core/replicate","clojure.core/require","clojure.core/reset!","clojure.core/reset-meta!","clojure.core/resolve","clojure.core/rest","clojure.core/restart-agent","clojure.core/resultset-seq","clojure.core/reverse","clojure.core/reversible?","clojure.core/rseq","clojure.core/rsubseq","clojure.core/run!","clojure.core/satisfies?","clojure.core/second","clojure.core/select-keys","clojure.core/send","clojure.core/send-off","clojure.core/send-via","clojure.core/seq","clojure.core/seq?","clojure.core/seque","clojure.core/sequence","clojure.core/sequential?","clojure.core/set","clojure.core/set-agent-send-executor!","clojure.core/set-agent-send-off-executor!","clojure.core/set-error-handler!","clojure.core/set-error-mode!","clojure.core/set-validator!","clojure.core/set?","clojure.core/short","clojure.core/short-array","clojure.core/shorts","clojure.core/shuffle","clojure.core/shutdown-agents","clojure.core/slurp","clojure.core/some","clojure.core/some-fn","clojure.core/some?","clojure.core/sort","clojure.core/sort-by","clojure.core/sorted-map","clojure.core/sorted-map-by","clojure.core/sorted-set","clojure.core/sorted-set-by","clojure.core/sorted?","clojure.core/special-symbol?","clojure.core/spit","clojure.core/split-at","clojure.core/split-with","clojure.core/str","clojure.core/string?","clojure.core/struct","clojure.core/struct-map","clojure.core/subs","clojure.core/subseq","clojure.core/subvec","clojure.core/supers","clojure.core/swap!","clojure.core/symbol","clojure.core/symbol?","clojure.core/tagged-literal","clojure.core/tagged-literal?","clojure.core/take","clojure.core/take-last","clojure.core/take-nth","clojure.core/take-while","clojure.core/test","clojure.core/the-ns","clojure.core/thread-bound?","clojure.core/to-array","clojure.core/to-array-2d","clojure.core/trampoline","clojure.core/transduce","clojure.core/transient","clojure.core/tree-seq","clojure.core/true?","clojure.core/type","clojure.core/unchecked-add","clojure.core/unchecked-add-int","clojure.core/unchecked-byte","clojure.core/unchecked-char","clojure.core/unchecked-dec","clojure.core/unchecked-dec-int","clojure.core/unchecked-divide-int","clojure.core/unchecked-double","clojure.core/unchecked-float","clojure.core/unchecked-inc","clojure.core/unchecked-inc-int","clojure.core/unchecked-int","clojure.core/unchecked-long","clojure.core/unchecked-multiply","clojure.core/unchecked-multiply-int","clojure.core/unchecked-negate","clojure.core/unchecked-negate-int","clojure.core/unchecked-remainder-int","clojure.core/unchecked-short","clojure.core/unchecked-subtract","clojure.core/unchecked-subtract-int","clojure.core/underive","clojure.core/unreduced","clojure.core/unsigned-bit-shift-right","clojure.core/update","clojure.core/update-in","clojure.core/update-proxy","clojure.core/use","clojure.core/val","clojure.core/vals","clojure.core/var-get","clojure.core/var-set","clojure.core/var?","clojure.core/vary-meta","clojure.core/vec","clojure.core/vector","clojure.core/vector-of","clojure.core/vector?","clojure.core/volatile!","clojure.core/volatile?","clojure.core/vreset!","clojure.core/with-bindings*","clojure.core/with-meta","clojure.core/with-redefs-fn","clojure.core/xml-seq","clojure.core/zero?","clojure.core/zipmap","coll?","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","dedupe","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","double","double-array","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn?","fnext","fnil","force","format","frequencies","future-call","future-cancel","future-cancelled?","future-done?","future?","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","identical?","identity","ifn?","in-ns","inc","inc'","init-proxy","instance?","int","int-array","integer?","interleave","intern","interpose","into","into-array","ints","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","long","long-array","longs","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-indexed","map?","mapcat","mapv","max","max-key","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos?","pr","pr-str","prefer-method","prefers","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy-call-with-super","proxy-mappings","proxy-name","push-thread-bindings","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","slurp","some","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","symbol","symbol?","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","use","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","with-bindings*","with-meta","with-redefs-fn","xml-seq","zero?","zipmap"] +    \ , 'clojureMacro': ["->","->>","..","amap","and","areduce","as->","assert","binding","bound-fn","clojure.core/->","clojure.core/->>","clojure.core/..","clojure.core/amap","clojure.core/and","clojure.core/areduce","clojure.core/as->","clojure.core/assert","clojure.core/binding","clojure.core/bound-fn","clojure.core/comment","clojure.core/declare","clojure.core/delay","clojure.core/dosync","clojure.core/doto","clojure.core/extend-protocol","clojure.core/extend-type","clojure.core/for","clojure.core/future","clojure.core/gen-class","clojure.core/gen-interface","clojure.core/import","clojure.core/io!","clojure.core/lazy-cat","clojure.core/lazy-seq","clojure.core/letfn","clojure.core/locking","clojure.core/memfn","clojure.core/ns","clojure.core/or","clojure.core/proxy","clojure.core/proxy-super","clojure.core/pvalues","clojure.core/refer-clojure","clojure.core/reify","clojure.core/some->","clojure.core/some->>","clojure.core/sync","clojure.core/time","clojure.core/vswap!","clojure.core/with-bindings","clojure.core/with-in-str","clojure.core/with-loading-context","clojure.core/with-local-vars","clojure.core/with-open","clojure.core/with-out-str","clojure.core/with-precision","clojure.core/with-redefs","comment","declare","delay","dosync","doto","extend-protocol","extend-type","for","future","gen-class","gen-interface","import","io!","lazy-cat","lazy-seq","letfn","locking","memfn","ns","or","proxy","proxy-super","pvalues","refer-clojure","reify","some->","some->>","sync","time","vswap!","with-bindings","with-in-str","with-loading-context","with-local-vars","with-open","with-out-str","with-precision","with-redefs"]      \ , 'clojureRepeat': ["clojure.core/doseq","clojure.core/dotimes","clojure.core/while","doseq","dotimes","while"]      \ , 'clojureSpecial': [".","clojure.core/fn","clojure.core/let","clojure.core/loop","def","do","fn","if","let","loop","monitor-enter","monitor-exit","new","quote","recur","set!","var"] -    \ , 'clojureVariable': ["*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-readably*","*read-eval*","*source-path*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","EMPTY-NODE","char-escape-string","char-name-string","clojure.core/*1","clojure.core/*2","clojure.core/*3","clojure.core/*agent*","clojure.core/*allow-unresolved-vars*","clojure.core/*assert*","clojure.core/*clojure-version*","clojure.core/*command-line-args*","clojure.core/*compile-files*","clojure.core/*compile-path*","clojure.core/*compiler-options*","clojure.core/*data-readers*","clojure.core/*default-data-reader-fn*","clojure.core/*e","clojure.core/*err*","clojure.core/*file*","clojure.core/*flush-on-newline*","clojure.core/*fn-loader*","clojure.core/*in*","clojure.core/*math-context*","clojure.core/*ns*","clojure.core/*out*","clojure.core/*print-dup*","clojure.core/*print-length*","clojure.core/*print-level*","clojure.core/*print-meta*","clojure.core/*print-readably*","clojure.core/*read-eval*","clojure.core/*source-path*","clojure.core/*unchecked-math*","clojure.core/*use-context-classloader*","clojure.core/*verbose-defrecords*","clojure.core/*warn-on-reflection*","clojure.core/EMPTY-NODE","clojure.core/char-escape-string","clojure.core/char-name-string","clojure.core/default-data-readers","clojure.core/primitives-classnames","clojure.core/unquote","clojure.core/unquote-splicing","default-data-readers","primitives-classnames","unquote","unquote-splicing"] +    \ , 'clojureVariable': ["*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-readably*","*read-eval*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","EMPTY-NODE","char-escape-string","char-name-string","clojure.core/*1","clojure.core/*2","clojure.core/*3","clojure.core/*agent*","clojure.core/*allow-unresolved-vars*","clojure.core/*assert*","clojure.core/*clojure-version*","clojure.core/*command-line-args*","clojure.core/*compile-files*","clojure.core/*compile-path*","clojure.core/*compiler-options*","clojure.core/*data-readers*","clojure.core/*default-data-reader-fn*","clojure.core/*e","clojure.core/*err*","clojure.core/*file*","clojure.core/*flush-on-newline*","clojure.core/*fn-loader*","clojure.core/*in*","clojure.core/*math-context*","clojure.core/*ns*","clojure.core/*out*","clojure.core/*print-dup*","clojure.core/*print-length*","clojure.core/*print-level*","clojure.core/*print-meta*","clojure.core/*print-readably*","clojure.core/*read-eval*","clojure.core/*source-path*","clojure.core/*suppress-read*","clojure.core/*unchecked-math*","clojure.core/*use-context-classloader*","clojure.core/*verbose-defrecords*","clojure.core/*warn-on-reflection*","clojure.core/EMPTY-NODE","clojure.core/char-escape-string","clojure.core/char-name-string","clojure.core/default-data-readers","clojure.core/primitives-classnames","clojure.core/unquote","clojure.core/unquote-splicing","default-data-readers","primitives-classnames","unquote","unquote-splicing"]      \ }  function! s:syntax_keyword(dict) @@ -114,7 +114,7 @@ syntax region clojureRegexpQuote  start=/\\Q/       skip=/\\\\\|\\"/ end=/\\E/  " -*- CHARACTER PROPERTY CLASSES -*-  " Generated from https://github.com/guns/vim-clojure-static/blob/%%RELEASE_TAG%%/clj/src/vim_clojure_static/generate.clj -" Java version 1.7.0_51 +" Java version 1.7.0_79  syntax match clojureRegexpPosixCharClass "\v\\[pP]\{%(Cntrl|A%(l%(pha|num)|SCII)|Space|Graph|Upper|P%(rint|unct)|Blank|XDigit|Digit|Lower)\}" contained display  syntax match clojureRegexpJavaCharClass "\v\\[pP]\{java%(Whitespace|JavaIdentifier%(Part|Start)|SpaceChar|Mirrored|TitleCase|I%(SOControl|de%(ographic|ntifierIgnorable))|D%(efined|igit)|U%(pperCase|nicodeIdentifier%(Part|Start))|L%(etter%(OrDigit)?|owerCase)|Alphabetic)\}" contained display  syntax match clojureRegexpUnicodeCharClass "\v\\[pP]\{\cIs%(l%(owercase|etter)|hex%(digit|_digit)|w%(hite%(_space|space)|ord)|noncharacter%(_code_point|codepoint)|p%(rint|unctuation)|ideographic|graph|a%(l%(num|phabetic)|ssigned)|uppercase|titlecase|blank|digit|control)\}" contained display diff --git a/syntax/coffee.vim b/syntax/coffee.vim index b5784336..bfb252f5 100644 --- a/syntax/coffee.vim +++ b/syntax/coffee.vim @@ -32,7 +32,7 @@ hi def link coffeeConditional Conditional  syn match coffeeException /\<\%(try\|catch\|finally\)\>/ display  hi def link coffeeException Exception -syn match coffeeKeyword /\<\%(new\|in\|of\|by\|and\|or\|not\|is\|isnt\|class\|extends\|super\|do\)\>/ +syn match coffeeKeyword /\<\%(new\|in\|of\|by\|and\|or\|not\|is\|isnt\|class\|extends\|super\|do\|yield\)\>/  \                       display  " The `own` keyword is only a keyword after `for`.  syn match coffeeKeyword /\<for\s\+own\>/ contained containedin=coffeeRepeat @@ -92,7 +92,7 @@ syn region coffeeString start=/'/ skip=/\\\\\|\\'/ end=/'/  hi def link coffeeString String  " A integer, including a leading plus or minus -syn match coffeeNumber /\%(\i\|\$\)\@<![-+]\?\d\+\%([eE][+-]\?\d\+\)\?/ display +syn match coffeeNumber /\%(\i\|\$\)\@<![-+]\?\d\+\%(e[+-]\?\d\+\)\?/ display  " A hex, binary, or octal number  syn match coffeeNumber /\<0[xX]\x\+\>/ display  syn match coffeeNumber /\<0[bB][01]\+\>/ display @@ -107,7 +107,7 @@ hi def link coffeeFloat Float  " An error for reserved keywords, taken from the RESERVED array:  " http://coffeescript.org/documentation/docs/lexer.html#section-67 -syn match coffeeReservedError /\<\%(case\|default\|function\|var\|void\|with\|const\|let\|enum\|export\|import\|native\|__hasProp\|__extends\|__slice\|__bind\|__indexOf\|implements\|interface\|package\|private\|protected\|public\|static\|yield\)\>/ +syn match coffeeReservedError /\<\%(case\|default\|function\|var\|void\|with\|const\|let\|enum\|export\|import\|native\|__hasProp\|__extends\|__slice\|__bind\|__indexOf\|implements\|interface\|package\|private\|protected\|public\|static\)\>/  \                             display  hi def link coffeeReservedError Error diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 78731d75..9ef2be4b 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -46,7 +46,7 @@ if !exists("cpp_no_cpp11")    syn keyword cppConstant	ATOMIC_WCHAR_T_LOCK_FREE ATOMIC_SHORT_LOCK_FREE    syn keyword cppConstant	ATOMIC_INT_LOCK_FREE ATOMIC_LONG_LOCK_FREE    syn keyword cppConstant	ATOMIC_LLONG_LOCK_FREE ATOMIC_POINTER_LOCK_FREE -  syn region cppRawString	matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell +  syn region cppRawString	matchgroup=cppRawStringDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell  endif  " The minimum and maximum operators in GNU C++ @@ -70,7 +70,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits")    HiLink cppStructure		Structure    HiLink cppBoolean		Boolean    HiLink cppConstant		Constant -  HiLink cppRawDelimiter	Delimiter +  HiLink cppRawStringDelimiter	Delimiter    HiLink cppRawString		String    delcommand HiLink  endif diff --git a/syntax/css.vim b/syntax/css.vim index 608dacb2..51758ca9 100644 --- a/syntax/css.vim +++ b/syntax/css.vim @@ -6,7 +6,7 @@  "               Nikolai Weibull (Add CSS2 support)  " Maintainer:   Jules Wang      <w.jq0722@gmail.com>  " URL:          https://github.com/JulesWang/css.vim -" Last Change:  2014 Oct.28 +" Last Change:  2015 Apr.17  " For version 5.x: Clear all syntax items  " For version 6.x: Quit when a syntax file was already loaded @@ -479,7 +479,7 @@ syn match cssPseudoClassId contained  "\<focus\(-inner\)\=\>"  syn match cssPseudoClassId contained  "\<\(input-\)\=placeholder\>"  " Misc highlight groups -syntax match cssUnitDecorators /\(#\|-\|%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|rem\|dpi\|dppx\|dpcm\|Hz\|kHz\|s\|ms\|deg\|grad\|rad\)/ contained +syntax match cssUnitDecorators /\(#\|-\|%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|ch\|rem\|vh\|vw\|vmin\|vmax\|dpi\|dppx\|dpcm\|Hz\|kHz\|s\|ms\|deg\|grad\|rad\)/ contained  syntax match cssNoise contained /\(:\|;\|\/\)/  " Comment diff --git a/syntax/elixir.vim b/syntax/elixir.vim index 6c48d5ee..4e1711b0 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -70,7 +70,7 @@ syn region elixirRegex matchgroup=elixirRegexDelimiter start="%r/" end="/[uiomxf  syn cluster elixirRegexSpecial    contains=elixirRegexEscape,elixirRegexCharClass,elixirRegexQuantifier,elixirRegexEscapePunctuation  syn cluster elixirStringContained contains=elixirInterpolation,elixirRegexEscape,elixirRegexCharClass -syn region elixirString        matchgroup=elixirStringDelimiter start="'" end="'" skip="\\'|\\\\" +syn region elixirString        matchgroup=elixirStringDelimiter start="'" end="'" skip="\\'\|\\\\"  syn region elixirString        matchgroup=elixirStringDelimiter start='"' end='"' skip='\\"' contains=@elixirStringContained  syn region elixirInterpolation matchgroup=elixirInterpolationDelimiter start="#{" end="}" contained contains=ALLBUT,elixirComment,@elixirNotTop diff --git a/syntax/go.vim b/syntax/go.vim index 7b0fbaf5..e9634ba6 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -52,7 +52,7 @@ if !exists("g:go_highlight_trailing_whitespace_error")  endif  if !exists("g:go_highlight_operators") -	let g:go_highlight_operators = 1 +	let g:go_highlight_operators = 0  endif  if !exists("g:go_highlight_functions") @@ -236,20 +236,18 @@ hi def link     goTodo              Todo  " Operators;   if g:go_highlight_operators != 0 -	syn match goOperator /:=/ -	syn match goOperator />=/ -	syn match goOperator /<=/ -	syn match goOperator /==/ -	syn match goOperator /!=/ -	syn match goOperator /+=/ -	syn match goOperator /-=/ -	syn match goOperator /\s>\s/ -	syn match goOperator /\s<\s/ -	syn match goOperator /\s+\s/ -	syn match goOperator /\s-\s/ -	syn match goOperator /\s\*\s/ -	syn match goOperator /\s\/\s/ -	syn match goOperator /\s%\s/ +	" match single-char operators:          - + % < > ! & | ^ * = +	" and corresponding two-char operators: -= += %= <= >= != &= |= ^= *= == +	syn match goOperator /[-+%<>!&|^*=]=\?/ +	" match / and /= +	syn match goOperator /\/\%(=\|\ze[^/*]\)/ +	" match two-char operators:               << >> &^ +	" and corresponding three-char operators: <<= >>= &^= +	syn match goOperator /\%(<<\|>>\|&^\)=\?/ +	" match remaining two-char operators: := && || <- ++ -- +	syn match goOperator /:=\|||\|<-\|++\|--/ +	" match ... +	syn match goOperator /\.\.\./  endif  hi def link     goOperator					Operator diff --git a/syntax/gohtmltmpl.vim b/syntax/gohtmltmpl.vim new file mode 100644 index 00000000..5aa6c98d --- /dev/null +++ b/syntax/gohtmltmpl.vim @@ -0,0 +1,15 @@ +if exists("b:current_syntax") +    finish +endif + +if !exists("main_syntax") +    let main_syntax = 'html' +endif + +runtime! syntax/gotexttmpl.vim +runtime! syntax/html.vim +unlet b:current_syntax + +let b:current_syntax = "gohtmltmpl" + +" vim:ts=4:sw=4:et diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim new file mode 100644 index 00000000..50b4653d --- /dev/null +++ b/syntax/gotexttmpl.vim @@ -0,0 +1,85 @@ +" Copyright 2011 The Go Authors. All rights reserved. +" Use of this source code is governed by a BSD-style +" license that can be found in the LICENSE file. +" +" gotexttmpl.vim: Vim syntax file for Go templates. + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") +    finish +endif + +syn case match + +" Go escapes +syn match       goEscapeOctal       display contained "\\[0-7]\{3}" +syn match       goEscapeC           display contained +\\[abfnrtv\\'"]+ +syn match       goEscapeX           display contained "\\x\x\{2}" +syn match       goEscapeU           display contained "\\u\x\{4}" +syn match       goEscapeBigU        display contained "\\U\x\{8}" +syn match       goEscapeError       display contained +\\[^0-7xuUabfnrtv\\'"]+ + +hi def link     goEscapeOctal       goSpecialString +hi def link     goEscapeC           goSpecialString +hi def link     goEscapeX           goSpecialString +hi def link     goEscapeU           goSpecialString +hi def link     goEscapeBigU        goSpecialString +hi def link     goSpecialString     Special +hi def link     goEscapeError       Error + +" Strings and their contents +syn cluster     goStringGroup       contains=goEscapeOctal,goEscapeC,goEscapeX,goEscapeU,goEscapeBigU,goEscapeError +syn region      goString            contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@goStringGroup +syn region      goRawString         contained start=+`+ end=+`+ + +hi def link     goString            String +hi def link     goRawString         String + +" Characters; their contents +syn cluster     goCharacterGroup    contains=goEscapeOctal,goEscapeC,goEscapeX,goEscapeU,goEscapeBigU +syn region      goCharacter         start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@goCharacterGroup + +hi def link     goCharacter         Character + +" Integers +syn match       goDecimalInt        contained "\<\d\+\([Ee]\d\+\)\?\>" +syn match       goHexadecimalInt    contained "\<0x\x\+\>" +syn match       goOctalInt          contained "\<0\o\+\>" +syn match       goOctalError        contained "\<0\o*[89]\d*\>" +syn cluster     goInt               contains=goDecimalInt,goHexadecimalInt,goOctalInt +" Floating point +syn match       goFloat             contained "\<\d\+\.\d*\([Ee][-+]\d\+\)\?\>" +syn match       goFloat             contained "\<\.\d\+\([Ee][-+]\d\+\)\?\>" +syn match       goFloat             contained "\<\d\+[Ee][-+]\d\+\>" +" Imaginary literals +syn match       goImaginary         contained "\<\d\+i\>" +syn match       goImaginary         contained "\<\d\+\.\d*\([Ee][-+]\d\+\)\?i\>" +syn match       goImaginary         contained "\<\.\d\+\([Ee][-+]\d\+\)\?i\>" +syn match       goImaginary         contained "\<\d\+[Ee][-+]\d\+i\>" + +hi def link     goInt        Number +hi def link     goFloat      Number +hi def link     goImaginary  Number + +" Token groups +syn cluster     gotplLiteral     contains=goString,goRawString,goCharacter,@goInt,goFloat,goImaginary +syn keyword     gotplControl     contained   if else end range with template +syn keyword     gotplFunctions   contained   and html index js len not or print printf println urlquery eq ne lt le gt ge +syn match       gotplVariable    contained   /\$[^ ]*\>/ +syn match       goTplIdentifier  contained   /\.[^ ]*\>/ + +hi def link     gotplControl        Keyword +hi def link     gotplFunctions      Function +hi def link     goTplVariable       Special + +syn region gotplAction start="{{" end="}}" contains=@gotplLiteral,gotplControl,gotplFunctions,gotplVariable,goTplIdentifier display +syn region gotplAction start="\[\[" end="\]\]" contains=@gotplLiteral,gotplControl,gotplFunctions,gotplVariable display +syn region goTplComment start="{{/\*" end="\*/}}" display +syn region goTplComment start="\[\[/\*" end="\*/\]\]" display + +hi def link gotplAction PreProc +hi def link goTplComment Comment + +let b:current_syntax = "gotexttmpl" + +" vim:ts=4:sw=4:et diff --git a/syntax/jst.vim b/syntax/jst.vim index ea95878b..8c43c525 100644 --- a/syntax/jst.vim +++ b/syntax/jst.vim @@ -26,6 +26,8 @@ elseif !exists("b:jst_subtype") && main_syntax == 'jst'      let b:jst_subtype = 'html'    elseif b:jst_subtype == 'ect'      let b:jst_subtype = 'html' +  elseif b:jst_subtype == 'djs' +    let b:jst_subtype = 'html'    elseif b:jst_subtype == 'rb'      let b:jst_subtype = 'ruby'    elseif b:jst_subtype == 'yml' diff --git a/syntax/perl.vim b/syntax/perl.vim index 6fdebdd3..cffca6d6 100644 --- a/syntax/perl.vim +++ b/syntax/perl.vim @@ -365,11 +365,11 @@ syn region perlSubAttributesCont matchgroup=perlSubAttributesCont start="\h\w*("  syn cluster perlSubAttrMaybe contains=perlSubAttributesCont,perlSubError,perlFakeGroup  syn match perlSubAttributes "" contained nextgroup=perlSubError  syn match perlSubAttributes ":\_s*" contained nextgroup=@perlSubAttrMaybe -if !exists("perl_no_subprototype_error") " Set 1 if using signatures feature in perl5.19.9 +if get(g:, "perl_sub_signatures", 0) +    syn match perlSignature +(\_[^)]*)\_s*+ nextgroup=perlSubAttributes,perlComment contained +else      syn match perlSubPrototypeError "(\%(\_s*\%(\%(\\\%([$@%&*]\|\[[$@%&*]\+\]\)\|[$&*]\|[@%]\%(\_s*)\)\@=\|;\%(\_s*[)$@%&*\\]\)\@=\|_\%(\_s*[);]\)\@=\)\_s*\)*\)\@>\zs\_[^)]\+" contained      syn match perlSubPrototype +(\_[^)]*)\_s*+ nextgroup=perlSubAttributes,perlComment contained contains=perlSubPrototypeError -else -    syntax match perlSignature "(.\{-})" nextgroup=perlSubAttributes,perlComment contained  endif  syn match perlSubName +\%(\h\|::\|'\w\)\%(\w\|::\|'\w\)*\_s*\|+ contained nextgroup=perlSubPrototype,perlSignature,perlSubAttributes,perlComment @@ -412,9 +412,9 @@ if exists("perl_fold")      syn region perlPackageFold start="^package \S\+;\s*\%(#.*\)\=$" end="^1;\=\s*\%(#.*\)\=$" end="\n\+package"me=s-1 transparent fold keepend    endif    if !exists("perl_nofold_subs") -    if exists("perl_fold_anonymous_subs") && perl_fold_anonymous_subs -      syn region perlSubFold     start="\<sub\>[^;]*{" end="}" transparent fold keepend extend -      syn region perlSubFold     start="\<\%(BEGIN\|END\|CHECK\|INIT\)\>\s*{" end="}" transparent fold keepend +    if get(g:, "perl_fold_anonymous_subs", 0) +      syn region perlSubFold start="\<sub\>[^{]*{" end="}" transparent fold keepend extend +      syn region perlSubFold start="\<\%(BEGIN\|END\|CHECK\|INIT\)\>\s*{" end="}" transparent fold keepend      else        syn region perlSubFold     start="^\z(\s*\)\<sub\>.*[^};]$" end="^\z1}\s*\%(#.*\)\=$" transparent fold keepend        syn region perlSubFold start="^\z(\s*\)\<\%(BEGIN\|END\|CHECK\|INIT\|UNITCHECK\)\>.*[^};]$" end="^\z1}\s*$" transparent fold keepend diff --git a/syntax/perl6.vim b/syntax/perl6.vim index ed928852..1d6608d7 100644 --- a/syntax/perl6.vim +++ b/syntax/perl6.vim @@ -186,7 +186,7 @@ syn match p6ReduceOp display "\%(^\|\s\|(\)\@1<=!*\%([RSXZ\[]\)*[&RSXZ]\?\[\+(\?  syn match p6SetOp    display "R\?(\%([-^.+|&]\|[<>][=+]\?\|cont\|elem\))"  " Reverse, cross, and zip metaoperators -exec "syn match p6RSXZOp display \"[RSXZ]:\\@!\\%(\\a\\@=\\%(". s:alpha_metaops_or . "\\)\\|[[:alnum:]]\\@!\\%([.,]\\|[^[,.[:space:]]\\)\\+\\|\\s\\@=\\|$\\)\"" +exec "syn match p6RSXZOp display \"[RSXZ]:\\@!\\%(\\a\\@=\\%(". s:alpha_metaops_or . "\\)\\>\\|[[:alnum:]]\\@!\\%([.,]\\|[^[,.[:space:]]\\)\\+\\|\\s\\@=\\|$\\)\""  syn match p6BlockLabel display "^\s*\zs\h\w*\s*::\@!\_s\@=" @@ -202,7 +202,7 @@ syn match p6BinNumber  display "[01][01_]*" contained  syn match p6HexNumber  display "\x[[:xdigit:]_]*" contained  syn match p6DecNumber  display "\d[[:digit:]_]*" contained -syn match p6Version    display "\<v\d\+\%(\.[*[:digit:]]\+\)*+\?" +syn match p6Version    display "\<v\d\+\%(\.\%(\*\|\d\+\)\)*+\?"  " Contextualizers  syn match p6Context display "\<\%(item\|list\|slice\|hash\)\>" @@ -350,7 +350,7 @@ syn region p6Adverb  "   for " = < ... >" assignments though.  " * It comes after "enum", "for", "any", "all", or "none"  " * It's the first or last thing on a line (ignoring whitespace) -" * It's preceded by "= " +" * It's preceded by "(\s*" or "=\s\+"  " * It's empty and terminated on the same line (e.g. <> and < >)  "  " It never matches when: @@ -364,7 +364,7 @@ syn region p6StringAngle      \ start="[<+~=!]\@1<!<\%(\s\|<\|=>\|[-=]\{1,2}\)\@!"      \ start="\%(^\s*\)\@<=<\%(<\|=>\|[-=]\{1,2}>\@!\)\@!"      \ start="[<+~=!]\@1<!<\%(\s*$\)\@=" -    \ start="\%(=\s\+\)\@<=<\%(<\|=>\|[-=]\{1,2}>\@!\)\@!" +    \ start="\%((\s*\|=\s\+\)\@<=<\%(<\|=>\|[-=]\{1,2}>\@!\)\@!"      \ start="<\%(\s*>\)\@="      \ skip="\\\@1<!\\>"      \ end=">" @@ -392,7 +392,7 @@ syn region p6StringAngles      \ start="<<=\@!"      \ skip="\\\@1<!\\>"      \ end=">>" -    \ contains=p6InnerAnglesTwo,@p6Interp_qq,p6Comment,p6EscHash,p6EscCloseAngle,p6Adverb,p6StringSQ,p6StringDQ +    \ contains=p6InnerAnglesTwo,@p6Interp_qq,p6Comment,p6BracketComment,p6EscHash,p6EscCloseAngle,p6Adverb,p6StringSQ,p6StringDQ  syn region p6InnerAnglesTwo      \ matchgroup=p6StringAngles @@ -408,7 +408,7 @@ syn region p6StringFrench      \ start="«"      \ skip="\\\@1<!\\»"      \ end="»" -    \ contains=p6InnerFrench,@p6Interp_qq,p6Comment,p6EscHash,p6EscCloseFrench,p6Adverb,p6StringSQ,p6StringDQ +    \ contains=p6InnerFrench,@p6Interp_qq,p6Comment,p6BracketComment,p6EscHash,p6EscCloseFrench,p6Adverb,p6StringSQ,p6StringDQ  syn region p6InnerFrench      \ matchgroup=p6StringFrench @@ -454,8 +454,8 @@ syn match p6QuoteQ_qww  display "qww[A-Za-z(]\@!" nextgroup=p6PairsQ_qww skipwhi  syn match p6QuoteQ_qq   display "qq[pwx]\?[A-Za-z(]\@!" nextgroup=p6PairsQ_qq skipwhite skipempty contained  syn match p6QuoteQ_qto  display "qto[A-Za-z(]\@!" nextgroup=p6StringQ_qto skipwhite skipempty contained  syn match p6QuoteQ_qqto display "qqto[A-Za-z(]\@!" nextgroup=p6StringQ_qqto skipwhite skipempty contained -syn match p6QuoteQ_qto  display "q\%(:\%(to\|heredoc\)[A-Za-z(]\@!\)\@=" nextgroup=p6PairsQ_qto skipwhite skipempty contained -syn match p6QuoteQ_qqto display "qq\%(:\%(to\|heredoc\)[A-Za-z(]\@!\)\@=" nextgroup=p6PairsQ_qqto skipwhite skipempty contained +syn match p6QuoteQ_qto  display "q\_s*\%(:\%(to\|heredoc\)[A-Za-z(]\@!\)\@=" nextgroup=p6PairsQ_qto skipwhite skipempty contained +syn match p6QuoteQ_qqto display "qq\_s*\%(:\%(to\|heredoc\)[A-Za-z(]\@!\)\@=" nextgroup=p6PairsQ_qqto skipwhite skipempty contained  syn match p6PairsQ      "\%(\_s*:!\?\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\%(([^)]*)\)\?\)*" contained transparent skipwhite skipempty nextgroup=p6StringQ  syn match p6PairsQ_q    "\%(\_s*:!\?\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\%(([^)]*)\)\?\)*" contained transparent skipwhite skipempty nextgroup=p6StringQ_q  syn match p6PairsQ_qww  "\%(\_s*:!\?\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\%(([^)]*)\)\?\)*" contained transparent skipwhite skipempty nextgroup=p6StringQ_qww @@ -508,12 +508,6 @@ unlet s:plain_delims s:all_delims  syn match p6Operator display ":\@1<!::\@!!\?" nextgroup=p6Key,p6StringAngleFixed,p6StringAngles,p6StringFrench  syn match p6Key display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)" contained nextgroup=p6StringAngleFixed,p6StringAngles,p6StringFrench -" => and p5=> autoquoting -syn match p6StringP5Auto display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\ze\s\+p5=>" -syn match p6StringAuto   display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\ze\%(p5\)\@2<![RSXZ]\@1<!=>" -syn match p6StringAuto   display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\ze\s\+=>" -syn match p6StringAuto   display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)p5\ze=>" -  " Regexes and grammars  syn match p6DeclareRegex display "\%(regex\|rule\|token\)" nextgroup=p6RegexName skipwhite skipempty @@ -551,6 +545,7 @@ syn cluster p6Regexen      \ add=p6RxStringSQ      \ add=p6RxStringDQ      \ add=p6Comment +    \ add=p6BracketComment      \ add=p6MatchVarSigil  syn match p6RxMeta        display contained ".\%([A-Za-z_\xC0-\xFF0-9]\|\s\)\@1<!" @@ -1007,100 +1002,106 @@ syn match p6Comment display "#`\@!.*" contains=p6Attention  " Multiline comments. Arbitrary numbers of opening brackets are allowed,  " but we only define regions for 1 to 3 -syn region p6Comment -    \ start="#`(" +syn region p6BracketComment +    \ start="#[`|=]("      \ skip="([^)]*)"      \ end=")" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ start="#`\[" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ start="#[`|=]\["      \ skip="\[[^\]]*]"      \ end="]" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ start="#`{" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ start="#[`|=]{"      \ skip="{[^}]*}"      \ end="}" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ start="#`<" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ start="#[`|=]<"      \ skip="<[^>]*>"      \ end=">" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ start="#`«" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ start="#[`|=]«"      \ skip="«[^»]*»"      \ end="»" -    \ contains=p6Attention,p6Comment +    \ contains=p6Attention,p6BracketComment  " Comments with double and triple delimiters -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`((" +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=](("      \ skip="((\%([^)\|))\@!]\)*))"      \ end="))" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`(((" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]((("      \ skip="(((\%([^)]\|)\%())\)\@!\)*)))"      \ end=")))" -    \ contains=p6Attention,p6Comment +    \ contains=p6Attention,p6BracketComment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`\[\[" +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]\[\["      \ skip="\[\[\%([^\]]\|]]\@!\)*]]"      \ end="]]" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`\[\[\[" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]\[\[\["      \ skip="\[\[\[\%([^\]]\|]\%(]]\)\@!\)*]]]"      \ end="]]]" -    \ contains=p6Attention,p6Comment +    \ contains=p6Attention,p6BracketComment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`{{" +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]{{"      \ skip="{{\%([^}]\|}}\@!\)*}}"      \ end="}}" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`{{{" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]{{{"      \ skip="{{{\%([^}]\|}\%(}}\)\@!\)*}}}"      \ end="}}}" -    \ contains=p6Attention,p6Comment +    \ contains=p6Attention,p6BracketComment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`<<" +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]<<"      \ skip="<<\%([^>]\|>>\@!\)*>>"      \ end=">>" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`<<<" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]<<<"      \ skip="<<<\%([^>]\|>\%(>>\)\@!\)*>>>"      \ end=">>>" -    \ contains=p6Attention,p6Comment +    \ contains=p6Attention,p6BracketComment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`««" +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]««"      \ skip="««\%([^»]\|»»\@!\)*»»"      \ end="»»" -    \ contains=p6Attention,p6Comment -syn region p6Comment -    \ matchgroup=p6Comment -    \ start="#`«««" +    \ contains=p6Attention,p6BracketComment +syn region p6BracketComment +    \ matchgroup=p6BracketComment +    \ start="#[`|=]«««"      \ skip="«««\%([^»]\|»\%(»»\)\@!\)*»»»"      \ end="»»»" -    \ contains=p6Attention,p6Comment +    \ contains=p6Attention,p6BracketComment  syn match p6Shebang display "\%^#!.*" +" => and p5=> autoquoting +syn match p6StringP5Auto display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\ze\s\+p5=>" +syn match p6StringAuto   display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\ze\%(p5\)\@2<![RSXZ]\@1<!=>" +syn match p6StringAuto   display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\ze\s\+=>" +syn match p6StringAuto   display "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)p5\ze=>" +  " Pod  " Abbreviated blocks (implicit code forbidden) @@ -1884,6 +1885,7 @@ if version >= 508 || !exists("did_perl6_syntax_inits")      HiLink p6StringSpecial2 Special      HiLink p6Version        Special      HiLink p6Comment        Comment +    HiLink p6BracketComment Comment      HiLink p6Include        Include      HiLink p6Shebang        PreProc      HiLink p6ClosureTrait   PreProc diff --git a/syntax/proto.vim b/syntax/proto.vim index 42f33075..23085a28 100644 --- a/syntax/proto.vim +++ b/syntax/proto.vim @@ -1,6 +1,6 @@  " Protocol Buffers - Google's data interchange format  " Copyright 2008 Google Inc.  All rights reserved. -" http://code.google.com/p/protobuf/ +" https://developers.google.com/protocol-buffers/  "  " Redistribution and use in source and binary forms, with or without  " modification, are permitted provided that the following conditions are @@ -54,7 +54,7 @@ syn keyword pbTodo       contained TODO FIXME XXX  syn cluster pbCommentGrp contains=pbTodo  syn keyword pbSyntax     syntax import option -syn keyword pbStructure  package message group +syn keyword pbStructure  package message group oneof  syn keyword pbRepeat     optional required repeated  syn keyword pbDefault    default  syn keyword pbExtend     extend extensions to max @@ -69,11 +69,10 @@ syn keyword pbBool      true false  syn match   pbInt     /-\?\<\d\+\>/  syn match   pbInt     /\<0[xX]\x+\>/  syn match   pbFloat   /\<-\?\d*\(\.\d*\)\?/ -" TODO: .proto also supports C-style block comments; -" see /usr/share/vim/vim70/syntax/c.vim for how it's done. +syn region  pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp  syn region  pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp -syn region  pbString  start=/"/ skip=/\\"/ end=/"/ -syn region  pbString  start=/'/ skip=/\\'/ end=/'/ +syn region  pbString  start=/"/ skip=/\\./ end=/"/ +syn region  pbString  start=/'/ skip=/\\./ end=/'/  if version >= 508 || !exists("did_proto_syn_inits")    if version < 508 diff --git a/syntax/ruby.vim b/syntax/ruby.vim index a2ebecef..dc7d2339 100644 --- a/syntax/ruby.vim +++ b/syntax/ruby.vim @@ -140,13 +140,12 @@ endif  syn region rubyString matchgroup=rubyStringDelimiter start="`" end="`" skip="\\\\\|\\`" contains=@rubyStringSpecial fold  " Generalized Single Quoted String, Symbol and Array of Strings -syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" fold -syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]{"				   end="}"   skip="\\\\\|\\}"	fold contains=rubyNestedCurlyBraces,rubyDelimEscape -syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]<"				   end=">"   skip="\\\\\|\\>"	fold contains=rubyNestedAngleBrackets,rubyDelimEscape -syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]\["				   end="\]"  skip="\\\\\|\\\]"	fold contains=rubyNestedSquareBrackets,rubyDelimEscape -syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]("				   end=")"   skip="\\\\\|\\)"	fold contains=rubyNestedParentheses,rubyDelimEscape +syn region rubyString matchgroup=rubyStringDelimiter start="%[qw]\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" fold +syn region rubyString matchgroup=rubyStringDelimiter start="%[qw]{"				   end="}"   skip="\\\\\|\\}"	fold contains=rubyNestedCurlyBraces,rubyDelimEscape +syn region rubyString matchgroup=rubyStringDelimiter start="%[qw]<"				   end=">"   skip="\\\\\|\\>"	fold contains=rubyNestedAngleBrackets,rubyDelimEscape +syn region rubyString matchgroup=rubyStringDelimiter start="%[qw]\["				   end="\]"  skip="\\\\\|\\\]"	fold contains=rubyNestedSquareBrackets,rubyDelimEscape +syn region rubyString matchgroup=rubyStringDelimiter start="%[qw]("				   end=")"   skip="\\\\\|\\)"	fold contains=rubyNestedParentheses,rubyDelimEscape  syn region rubyString matchgroup=rubyStringDelimiter start="%q "				   end=" "   skip="\\\\\|\\)"	fold -  syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s\z([~`!@#$%^&*_\-+=|\:;"',.? /]\)"   end="\z1" skip="\\\\\|\\\z1" fold  syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s{"				   end="}"   skip="\\\\\|\\}"	fold contains=rubyNestedCurlyBraces,rubyDelimEscape  syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s<"				   end=">"   skip="\\\\\|\\>"	fold contains=rubyNestedAngleBrackets,rubyDelimEscape @@ -156,13 +155,27 @@ syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s("				   end=")"  " Generalized Double Quoted String and Array of Strings and Shell Command Output  " Note: %= is not matched here as the beginning of a double quoted string  syn region rubyString matchgroup=rubyStringDelimiter start="%\z([~`!@#$%^&*_\-+|\:;"',.?/]\)"	    end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial fold -syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial fold -syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\={"				    end="}"   skip="\\\\\|\\}"	 contains=@rubyStringSpecial,rubyNestedCurlyBraces,rubyDelimEscape    fold -syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\=<"				    end=">"   skip="\\\\\|\\>"	 contains=@rubyStringSpecial,rubyNestedAngleBrackets,rubyDelimEscape  fold -syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\=\["				    end="\]"  skip="\\\\\|\\\]"	 contains=@rubyStringSpecial,rubyNestedSquareBrackets,rubyDelimEscape fold -syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\=("				    end=")"   skip="\\\\\|\\)"	 contains=@rubyStringSpecial,rubyNestedParentheses,rubyDelimEscape    fold +syn region rubyString matchgroup=rubyStringDelimiter start="%[QWx]\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial fold +syn region rubyString matchgroup=rubyStringDelimiter start="%[QWx]\={"				    end="}"   skip="\\\\\|\\}"	 contains=@rubyStringSpecial,rubyNestedCurlyBraces,rubyDelimEscape    fold +syn region rubyString matchgroup=rubyStringDelimiter start="%[QWx]\=<"				    end=">"   skip="\\\\\|\\>"	 contains=@rubyStringSpecial,rubyNestedAngleBrackets,rubyDelimEscape  fold +syn region rubyString matchgroup=rubyStringDelimiter start="%[QWx]\=\["				    end="\]"  skip="\\\\\|\\\]"	 contains=@rubyStringSpecial,rubyNestedSquareBrackets,rubyDelimEscape fold +syn region rubyString matchgroup=rubyStringDelimiter start="%[QWx]\=("				    end=")"   skip="\\\\\|\\)"	 contains=@rubyStringSpecial,rubyNestedParentheses,rubyDelimEscape    fold  syn region rubyString matchgroup=rubyStringDelimiter start="%[Qx] "				    end=" "   skip="\\\\\|\\)"   contains=@rubyStringSpecial fold +" Array of Symbols +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%i\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" fold +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%i{"				end="}"   skip="\\\\\|\\}"	fold contains=rubyNestedCurlyBraces,rubyDelimEscape +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%i<"				end=">"   skip="\\\\\|\\>"	fold contains=rubyNestedAngleBrackets,rubyDelimEscape +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%i\["				end="\]"  skip="\\\\\|\\\]"	fold contains=rubyNestedSquareBrackets,rubyDelimEscape +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%i("				end=")"   skip="\\\\\|\\)"	fold contains=rubyNestedParentheses,rubyDelimEscape + +" Array of interpolated Symbols +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%I\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial fold +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%I\={"				end="}"   skip="\\\\\|\\}"	 contains=@rubyStringSpecial,rubyNestedCurlyBraces,rubyDelimEscape    fold +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%I\=<"				end=">"   skip="\\\\\|\\>"	 contains=@rubyStringSpecial,rubyNestedAngleBrackets,rubyDelimEscape  fold +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%I\=\["				end="\]"  skip="\\\\\|\\\]"	 contains=@rubyStringSpecial,rubyNestedSquareBrackets,rubyDelimEscape fold +syn region rubySymbol matchgroup=rubySymbolDelimiter start="%I\=("				end=")"   skip="\\\\\|\\)"	 contains=@rubyStringSpecial,rubyNestedParentheses,rubyDelimEscape    fold +  " Here Document  syn region rubyHeredocStart matchgroup=rubyStringDelimiter start=+\%(\%(class\s*\|\%([]})"'.]\|::\)\)\_s*\|\w\)\@<!<<-\=\zs\%(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)+	 end=+$+ oneline contains=ALLBUT,@rubyNotTop  syn region rubyHeredocStart matchgroup=rubyStringDelimiter start=+\%(\%(class\s*\|\%([]})"'.]\|::\)\)\_s*\|\w\)\@<!<<-\=\zs"\%([^"]*\)"+ end=+$+ oneline contains=ALLBUT,@rubyNotTop @@ -229,7 +242,7 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")    " statements without 'do'    syn region rubyBlockExpression       matchgroup=rubyControl	  start="\<begin\>" end="\<end\>" contains=ALLBUT,@rubyNotTop fold    syn region rubyCaseExpression	       matchgroup=rubyConditional start="\<case\>"  end="\<end\>" contains=ALLBUT,@rubyNotTop fold -  syn region rubyConditionalExpression matchgroup=rubyConditional start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+=-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![?!]\)\s*\)\@<=\%(if\|unless\)\>" end="\%(\%(\%(\.\@<!\.\)\|::\)\s*\)\@<!\<end\>" contains=ALLBUT,@rubyNotTop fold +  syn region rubyConditionalExpression matchgroup=rubyConditional start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*%&^|+=-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![?!]\)\s*\)\@<=\%(if\|unless\)\>" end="\%(\%(\%(\.\@<!\.\)\|::\)\s*\)\@<!\<end\>" contains=ALLBUT,@rubyNotTop fold    syn match rubyConditional "\<\%(then\|else\|when\)\>[?!]\@!"	contained containedin=rubyCaseExpression    syn match rubyConditional "\<\%(then\|else\|elsif\)\>[?!]\@!" contained containedin=rubyConditionalExpression @@ -357,7 +370,7 @@ hi def link rubyInterpolationDelimiter	Delimiter  hi def link rubyNoInterpolation		rubyString  hi def link rubySharpBang		PreProc  hi def link rubyRegexpDelimiter		rubyStringDelimiter -hi def link rubySymbolDelimiter		rubyStringDelimiter +hi def link rubySymbolDelimiter		rubySymbol  hi def link rubyStringDelimiter		Delimiter  hi def link rubyHeredoc			rubyString  hi def link rubyString			String diff --git a/syntax/toml.vim b/syntax/toml.vim index a7c4bc5b..1a1a2086 100644 --- a/syntax/toml.vim +++ b/syntax/toml.vim @@ -34,7 +34,8 @@ hi def link tomlFloat Float  syn match tomlBoolean /\<\%(true\|false\)\>/ display  hi def link tomlBoolean Boolean -syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}T\d\{2\}:\d\{2\}:\d\{2\}Z/ display +" http://tools.ietf.org/html/rfc3339 +syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}T\d\{2\}:\d\{2\}:\d\{2\}\%(\.\d\+\)\?\%(Z\|[+-]\d\{2\}:\d\{2\}\)/ display  hi def link tomlDate Constant  syn match tomlTable /^\s*\[[^#\[\]]\+\]\s*\(#.*\)\?$/ contains=tomlComment diff --git a/syntax/tt2.vim b/syntax/tt2.vim index b5c1b5ff..4f9f51c9 100644 --- a/syntax/tt2.vim +++ b/syntax/tt2.vim @@ -5,8 +5,8 @@  " Bugs/requests: http://github.com/vim-perl/vim-perl/issues  " Last Change:   {{LAST_CHANGE}}  " -" Instration: -"   put tt2.vim and tt2html.vim in to your syntax diretory. +" Installation: +"   put tt2.vim and tt2html.vim in to your syntax directory.  "  "   add below in your filetype.vim.  "       au BufNewFile,BufRead *.tt2 setf tt2 diff --git a/syntax/typescript.vim b/syntax/typescript.vim index 79a11974..62e6d808 100644 --- a/syntax/typescript.vim +++ b/syntax/typescript.vim @@ -1,5 +1,5 @@  " Vim syntax file -" Language: TypeScript +" Language: typescript  " Author: MicroSoft Open Technologies Inc.  " Version: 0.1  " Credits: Zhao Yi, Claudio Fleiner, Scott Shattuck, Jose Elera Campana @@ -14,8 +14,8 @@ if !exists("main_syntax")  endif  " Drop fold if it set but vim doesn't support it. -if version < 600 && exists("typeScript_fold") -  unlet typeScript_fold +if version < 600 && exists("typescript_fold") +  unlet typescript_fold  endif  "" dollar sign is permitted anywhere in an identifier @@ -27,292 +27,297 @@ syntax sync fromstart  syn match shebang "^#!.*/bin/env\s\+node\>"  hi link shebang Comment -"" typeScript comments"{{{ -syn keyword typeScriptCommentTodo TODO FIXME XXX TBD contained -syn match typeScriptLineComment "\/\/.*" contains=@Spell,typeScriptCommentTodo,typeScriptRef -syn match typeScriptRef /\/\/\/<reference\s\+.*\/>$/ contains=typeScriptRefD,typeScriptRefS -syn region typeScriptRefD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ -syn region typeScriptRefS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ +"" typescript comments"{{{ +syn keyword typescriptCommentTodo TODO FIXME XXX TBD contained +syn match typescriptLineComment "\/\/.*" contains=@Spell,typescriptCommentTodo,typescriptRef +syn match typescriptRef /\/\/\/<reference\s\+.*\/>$/ contains=typescriptRefD,typescriptRefS +syn region typescriptRefD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ +syn region typescriptRefS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ -syn match typeScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" -syn region typeScriptComment start="/\*" end="\*/" contains=@Spell,typeScriptCommentTodo +syn match typescriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" +syn region typescriptComment start="/\*" end="\*/" contains=@Spell,typescriptCommentTodo extend  "}}}  "" JSDoc support start"{{{ -if !exists("typeScript_ignore_typeScriptdoc") +if !exists("typescript_ignore_typescriptdoc")    syntax case ignore  " syntax coloring for JSDoc comments (HTML)  "unlet b:current_syntax -  syntax region typeScriptDocComment matchgroup=typeScriptComment start="/\*\*\s*$" end="\*/" contains=typeScriptDocTags,typeScriptCommentTodo,typeScriptCvsTag,@typeScriptHtml,@Spell fold -  syntax match typeScriptDocTags contained "@\(param\|argument\|requires\|exception\|throws\|type\|class\|extends\|see\|link\|member\|module\|method\|title\|namespace\|optional\|default\|base\|file\)\>" nextgroup=typeScriptDocParam,typeScriptDocSeeTag skipwhite -  syntax match typeScriptDocTags contained "@\(beta\|deprecated\|description\|fileoverview\|author\|license\|version\|returns\=\|constructor\|private\|protected\|final\|ignore\|addon\|exec\)\>" -  syntax match typeScriptDocParam contained "\%(#\|\w\|\.\|:\|\/\)\+" -  syntax region typeScriptDocSeeTag contained matchgroup=typeScriptDocSeeTag start="{" end="}" contains=typeScriptDocTags +  syntax region typescriptDocComment start="/\*\*\s*$" end="\*/" contains=typescriptDocTags,typescriptCommentTodo,typescriptCvsTag,@typescriptHtml,@Spell fold extend +  syntax match typescriptDocTags contained "@\(param\|argument\|requires\|exception\|throws\|type\|class\|extends\|see\|link\|member\|module\|method\|title\|namespace\|optional\|default\|base\|file\)\>" nextgroup=typescriptDocParam,typescriptDocSeeTag skipwhite +  syntax match typescriptDocTags contained "@\(beta\|deprecated\|description\|fileoverview\|author\|license\|version\|returns\=\|constructor\|private\|protected\|final\|ignore\|addon\|exec\)\>" +  syntax match typescriptDocParam contained "\%(#\|\w\|\.\|:\|\/\)\+" +  syntax region typescriptDocSeeTag contained matchgroup=typescriptDocSeeTag start="{" end="}" contains=typescriptDocTags    syntax case match  endif "" JSDoc end  "}}}  syntax case match -"" Syntax in the typeScript code"{{{ -syn match typeScriptSpecial "\\\d\d\d\|\\." -syn region typeScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+  contains=typeScriptSpecial,@htmlPreproc -syn region typeScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+  contains=typeScriptSpecial,@htmlPreproc - -syn match typeScriptSpecialCharacter "'\\.'" -syn match typeScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" -syn region typeScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline -" syntax match typeScriptSpecial "\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\." -" syntax region typeScriptStringD start=+"+ skip=+\\\\\|\\$"+ end=+"+ contains=typeScriptSpecial,@htmlPreproc -" syntax region typeScriptStringS start=+'+ skip=+\\\\\|\\$'+ end=+'+ contains=typeScriptSpecial,@htmlPreproc -" syntax region typeScriptRegexpString start=+/\(\*\|/\)\@!+ skip=+\\\\\|\\/+ end=+/[gim]\{,3}+ contains=typeScriptSpecial,@htmlPreproc oneline -" syntax match typeScriptNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/ -syntax match typeScriptFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/ -" syntax match typeScriptLabel /\(?\s*\)\@<!\<\w\+\(\s*:\)\@=/ +"" Syntax in the typescript code"{{{ +syn match typescriptSpecial "\\\d\d\d\|\\." +syn region typescriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+  contains=typescriptSpecial,@htmlPreproc extend +syn region typescriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+  contains=typescriptSpecial,@htmlPreproc extend +syn region typescriptStringB start=+`+ skip=+\\\\\|\\`+ end=+`+  contains=typescriptSpecial,@htmlPreproc extend + +syn match typescriptSpecialCharacter "'\\.'" +syn match typescriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" +syn region typescriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline +" syntax match typescriptSpecial "\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\." +" syntax region typescriptStringD start=+"+ skip=+\\\\\|\\$"+ end=+"+ contains=typescriptSpecial,@htmlPreproc +" syntax region typescriptStringS start=+'+ skip=+\\\\\|\\$'+ end=+'+ contains=typescriptSpecial,@htmlPreproc +" syntax region typescriptRegexpString start=+/\(\*\|/\)\@!+ skip=+\\\\\|\\/+ end=+/[gim]\{,3}+ contains=typescriptSpecial,@htmlPreproc oneline +" syntax match typescriptNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/ +syntax match typescriptFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/ +" syntax match typescriptLabel /\(?\s*\)\@<!\<\w\+\(\s*:\)\@=/ + +syn match typescriptDecorators /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/  "}}} -"" typeScript Prototype"{{{ -syntax keyword typeScriptPrototype contained prototype +"" typescript Prototype"{{{ +syntax keyword typescriptPrototype contained prototype  "}}}  " DOM, Browser and Ajax Support {{{  """""""""""""""""""""""" -syntax keyword typeScriptBrowserObjects window navigator screen history location +syntax keyword typescriptBrowserObjects window navigator screen history location -syntax keyword typeScriptDOMObjects document event HTMLElement Anchor Area Base Body Button Form Frame Frameset Image Link Meta Option Select Style Table TableCell TableRow Textarea -syntax keyword typeScriptDOMMethods contained createTextNode createElement insertBefore replaceChild removeChild appendChild hasChildNodes cloneNode normalize isSupported hasAttributes getAttribute setAttribute removeAttribute getAttributeNode setAttributeNode removeAttributeNode getElementsByTagName hasAttribute getElementById adoptNode close compareDocumentPosition createAttribute createCDATASection createComment createDocumentFragment createElementNS createEvent createExpression createNSResolver createProcessingInstruction createRange createTreeWalker elementFromPoint evaluate getBoxObjectFor getElementsByClassName getSelection getUserData hasFocus importNode -syntax keyword typeScriptDOMProperties contained nodeName nodeValue nodeType parentNode childNodes firstChild lastChild previousSibling nextSibling attributes ownerDocument namespaceURI prefix localName tagName +syntax keyword typescriptDOMObjects document event HTMLElement Anchor Area Base Body Button Form Frame Frameset Image Link Meta Option Select Style Table TableCell TableRow Textarea +syntax keyword typescriptDOMMethods contained createTextNode createElement insertBefore replaceChild removeChild appendChild hasChildNodes cloneNode normalize isSupported hasAttributes getAttribute setAttribute removeAttribute getAttributeNode setAttributeNode removeAttributeNode getElementsByTagName hasAttribute getElementById adoptNode close compareDocumentPosition createAttribute createCDATASection createComment createDocumentFragment createElementNS createEvent createExpression createNSResolver createProcessingInstruction createRange createTreeWalker elementFromPoint evaluate getBoxObjectFor getElementsByClassName getSelection getUserData hasFocus importNode +syntax keyword typescriptDOMProperties contained nodeName nodeValue nodeType parentNode childNodes firstChild lastChild previousSibling nextSibling attributes ownerDocument namespaceURI prefix localName tagName -syntax keyword typeScriptAjaxObjects XMLHttpRequest -syntax keyword typeScriptAjaxProperties contained readyState responseText responseXML statusText -syntax keyword typeScriptAjaxMethods contained onreadystatechange abort getAllResponseHeaders getResponseHeader open send setRequestHeader +syntax keyword typescriptAjaxObjects XMLHttpRequest +syntax keyword typescriptAjaxProperties contained readyState responseText responseXML statusText +syntax keyword typescriptAjaxMethods contained onreadystatechange abort getAllResponseHeaders getResponseHeader open send setRequestHeader -syntax keyword typeScriptPropietaryObjects ActiveXObject -syntax keyword typeScriptPropietaryMethods contained attachEvent detachEvent cancelBubble returnValue +syntax keyword typescriptPropietaryObjects ActiveXObject +syntax keyword typescriptPropietaryMethods contained attachEvent detachEvent cancelBubble returnValue -syntax keyword typeScriptHtmlElemProperties contained className clientHeight clientLeft clientTop clientWidth dir href id innerHTML lang length offsetHeight offsetLeft offsetParent offsetTop offsetWidth scrollHeight scrollLeft scrollTop scrollWidth style tabIndex target title +syntax keyword typescriptHtmlElemProperties contained className clientHeight clientLeft clientTop clientWidth dir href id innerHTML lang length offsetHeight offsetLeft offsetParent offsetTop offsetWidth scrollHeight scrollLeft scrollTop scrollWidth style tabIndex target title -syntax keyword typeScriptEventListenerKeywords contained blur click focus mouseover mouseout load item +syntax keyword typescriptEventListenerKeywords contained blur click focus mouseover mouseout load item -syntax keyword typeScriptEventListenerMethods contained scrollIntoView addEventListener dispatchEvent removeEventListener preventDefault stopPropagation +syntax keyword typescriptEventListenerMethods contained scrollIntoView addEventListener dispatchEvent removeEventListener preventDefault stopPropagation  " }}}  "" Programm Keywords"{{{ -syntax keyword typeScriptSource import export -syntax keyword typeScriptIdentifier arguments this let var void yield -syntax keyword typeScriptOperator delete new instanceof typeof -syntax keyword typeScriptBoolean true false -syntax keyword typeScriptNull null undefined -syntax keyword typeScriptMessage alert confirm prompt status -syntax keyword typeScriptGlobal self top parent -syntax keyword typeScriptDeprecated escape unescape all applets alinkColor bgColor fgColor linkColor vlinkColor xmlEncoding +syntax keyword typescriptSource import export +syntax keyword typescriptIdentifier arguments this let var void yield +syntax keyword typescriptOperator delete new instanceof typeof +syntax keyword typescriptBoolean true false +syntax keyword typescriptNull null undefined +syntax keyword typescriptMessage alert confirm prompt status +syntax keyword typescriptGlobal self top parent +syntax keyword typescriptDeprecated escape unescape all applets alinkColor bgColor fgColor linkColor vlinkColor xmlEncoding  "}}}  "" Statement Keywords"{{{ -syntax keyword typeScriptConditional if else switch -syntax keyword typeScriptRepeat do while for in -syntax keyword typeScriptBranch break continue -syntax keyword typeScriptLabel case default -syntax keyword typeScriptStatement return with +syntax keyword typescriptConditional if else switch +syntax keyword typescriptRepeat do while for in +syntax keyword typescriptBranch break continue +syntax keyword typescriptLabel case default +syntax keyword typescriptStatement return with -syntax keyword typeScriptGlobalObjects Array Boolean Date Function Infinity Math Number NaN Object Packages RegExp String netscape +syntax keyword typescriptGlobalObjects Array Boolean Date Function Infinity Math Number NaN Object Packages RegExp String netscape -syntax keyword typeScriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError +syntax keyword typescriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError -syntax keyword typeScriptReserved constructor declare as interface module abstract enum int short export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public type +syntax keyword typescriptReserved constructor declare as interface module abstract enum int short export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public type  "}}} -"" TypeScript/DOM/HTML/CSS specified things"{{{ +"" typescript/DOM/HTML/CSS specified things"{{{ -" TypeScript Objects"{{{ -  syn match typeScriptFunction "(super\s*|constructor\s*)" contained nextgroup=typeScriptVars -  syn region typeScriptVars start="(" end=")" contained contains=typeScriptParameters transparent keepend -  syn match typeScriptParameters "([a-zA-Z0-9_?.$][\w?.$]*)\s*:\s*([a-zA-Z0-9_?.$][\w?.$]*)" contained skipwhite +" typescript Objects"{{{ +  syn match typescriptFunction "(super\s*|constructor\s*)" contained nextgroup=typescriptVars +  syn region typescriptVars start="(" end=")" contained contains=typescriptParameters transparent keepend +  syn match typescriptParameters "([a-zA-Z0-9_?.$][\w?.$]*)\s*:\s*([a-zA-Z0-9_?.$][\w?.$]*)" contained skipwhite  "}}}  " DOM2 Objects"{{{ -  syntax keyword typeScriptType DOMImplementation DocumentFragment Node NodeList NamedNodeMap CharacterData Attr Element Text Comment CDATASection DocumentType Notation Entity EntityReference ProcessingInstruction void any string boolean number -  syntax keyword typeScriptExceptions DOMException +  syntax keyword typescriptType DOMImplementation DocumentFragment Node NodeList NamedNodeMap CharacterData Attr Element Text Comment CDATASection DocumentType Notation Entity EntityReference ProcessingInstruction void any string boolean number +  syntax keyword typescriptExceptions DOMException  "}}}  " DOM2 CONSTANT"{{{ -  syntax keyword typeScriptDomErrNo INDEX_SIZE_ERR DOMSTRING_SIZE_ERR HIERARCHY_REQUEST_ERR WRONG_DOCUMENT_ERR INVALID_CHARACTER_ERR NO_DATA_ALLOWED_ERR NO_MODIFICATION_ALLOWED_ERR NOT_FOUND_ERR NOT_SUPPORTED_ERR INUSE_ATTRIBUTE_ERR INVALID_STATE_ERR SYNTAX_ERR INVALID_MODIFICATION_ERR NAMESPACE_ERR INVALID_ACCESS_ERR -  syntax keyword typeScriptDomNodeConsts ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE +  syntax keyword typescriptDomErrNo INDEX_SIZE_ERR DOMSTRING_SIZE_ERR HIERARCHY_REQUEST_ERR WRONG_DOCUMENT_ERR INVALID_CHARACTER_ERR NO_DATA_ALLOWED_ERR NO_MODIFICATION_ALLOWED_ERR NOT_FOUND_ERR NOT_SUPPORTED_ERR INUSE_ATTRIBUTE_ERR INVALID_STATE_ERR SYNTAX_ERR INVALID_MODIFICATION_ERR NAMESPACE_ERR INVALID_ACCESS_ERR +  syntax keyword typescriptDomNodeConsts ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE  "}}}  " HTML events and internal variables"{{{    syntax case ignore -  syntax keyword typeScriptHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize onload onsubmit +  syntax keyword typescriptHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize onload onsubmit    syntax case match  "}}}  " Follow stuff should be highligh within a special context  " While it can't be handled with context depended with Regex based highlight  " So, turn it off by default -if exists("typeScript_enable_domhtmlcss") +if exists("typescript_enable_domhtmlcss")  " DOM2 things"{{{ -    syntax match typeScriptDomElemAttrs contained /\%(nodeName\|nodeValue\|nodeType\|parentNode\|childNodes\|firstChild\|lastChild\|previousSibling\|nextSibling\|attributes\|ownerDocument\|namespaceURI\|prefix\|localName\|tagName\)\>/ -    syntax match typeScriptDomElemFuncs contained /\%(insertBefore\|replaceChild\|removeChild\|appendChild\|hasChildNodes\|cloneNode\|normalize\|isSupported\|hasAttributes\|getAttribute\|setAttribute\|removeAttribute\|getAttributeNode\|setAttributeNode\|removeAttributeNode\|getElementsByTagName\|getAttributeNS\|setAttributeNS\|removeAttributeNS\|getAttributeNodeNS\|setAttributeNodeNS\|getElementsByTagNameNS\|hasAttribute\|hasAttributeNS\)\>/ nextgroup=typeScriptParen skipwhite +    syntax match typescriptDomElemAttrs contained /\%(nodeName\|nodeValue\|nodeType\|parentNode\|childNodes\|firstChild\|lastChild\|previousSibling\|nextSibling\|attributes\|ownerDocument\|namespaceURI\|prefix\|localName\|tagName\)\>/ +    syntax match typescriptDomElemFuncs contained /\%(insertBefore\|replaceChild\|removeChild\|appendChild\|hasChildNodes\|cloneNode\|normalize\|isSupported\|hasAttributes\|getAttribute\|setAttribute\|removeAttribute\|getAttributeNode\|setAttributeNode\|removeAttributeNode\|getElementsByTagName\|getAttributeNS\|setAttributeNS\|removeAttributeNS\|getAttributeNodeNS\|setAttributeNodeNS\|getElementsByTagNameNS\|hasAttribute\|hasAttributeNS\)\>/ nextgroup=typescriptParen skipwhite  "}}}  " HTML things"{{{ -    syntax match typeScriptHtmlElemAttrs contained /\%(className\|clientHeight\|clientLeft\|clientTop\|clientWidth\|dir\|id\|innerHTML\|lang\|length\|offsetHeight\|offsetLeft\|offsetParent\|offsetTop\|offsetWidth\|scrollHeight\|scrollLeft\|scrollTop\|scrollWidth\|style\|tabIndex\|title\)\>/ -    syntax match typeScriptHtmlElemFuncs contained /\%(blur\|click\|focus\|scrollIntoView\|addEventListener\|dispatchEvent\|removeEventListener\|item\)\>/ nextgroup=typeScriptParen skipwhite +    syntax match typescriptHtmlElemAttrs contained /\%(className\|clientHeight\|clientLeft\|clientTop\|clientWidth\|dir\|id\|innerHTML\|lang\|length\|offsetHeight\|offsetLeft\|offsetParent\|offsetTop\|offsetWidth\|scrollHeight\|scrollLeft\|scrollTop\|scrollWidth\|style\|tabIndex\|title\)\>/ +    syntax match typescriptHtmlElemFuncs contained /\%(blur\|click\|focus\|scrollIntoView\|addEventListener\|dispatchEvent\|removeEventListener\|item\)\>/ nextgroup=typescriptParen skipwhite  "}}} -" CSS Styles in typeScript"{{{ -    syntax keyword typeScriptCssStyles contained color font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight letterSpacing lineBreak lineHeight quotes rubyAlign rubyOverhang rubyPosition -    syntax keyword typeScriptCssStyles contained textAlign textAlignLast textAutospace textDecoration textIndent textJustify textJustifyTrim textKashidaSpace textOverflowW6 textShadow textTransform textUnderlinePosition -    syntax keyword typeScriptCssStyles contained unicodeBidi whiteSpace wordBreak wordSpacing wordWrap writingMode -    syntax keyword typeScriptCssStyles contained bottom height left position right top width zIndex -    syntax keyword typeScriptCssStyles contained border borderBottom borderLeft borderRight borderTop borderBottomColor borderLeftColor borderTopColor borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle borderBottomWidth borderLeftWidth borderRightWidth borderTopWidth borderColor borderStyle borderWidth borderCollapse borderSpacing captionSide emptyCells tableLayout -    syntax keyword typeScriptCssStyles contained margin marginBottom marginLeft marginRight marginTop outline outlineColor outlineStyle outlineWidth padding paddingBottom paddingLeft paddingRight paddingTop -    syntax keyword typeScriptCssStyles contained listStyle listStyleImage listStylePosition listStyleType -    syntax keyword typeScriptCssStyles contained background backgroundAttachment backgroundColor backgroundImage gackgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat -    syntax keyword typeScriptCssStyles contained clear clip clipBottom clipLeft clipRight clipTop content counterIncrement counterReset cssFloat cursor direction display filter layoutGrid layoutGridChar layoutGridLine layoutGridMode layoutGridType -    syntax keyword typeScriptCssStyles contained marks maxHeight maxWidth minHeight minWidth opacity MozOpacity overflow overflowX overflowY verticalAlign visibility zoom cssText -    syntax keyword typeScriptCssStyles contained scrollbar3dLightColor scrollbarArrowColor scrollbarBaseColor scrollbarDarkShadowColor scrollbarFaceColor scrollbarHighlightColor scrollbarShadowColor scrollbarTrackColor +" CSS Styles in typescript"{{{ +    syntax keyword typescriptCssStyles contained color font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight letterSpacing lineBreak lineHeight quotes rubyAlign rubyOverhang rubyPosition +    syntax keyword typescriptCssStyles contained textAlign textAlignLast textAutospace textDecoration textIndent textJustify textJustifyTrim textKashidaSpace textOverflowW6 textShadow textTransform textUnderlinePosition +    syntax keyword typescriptCssStyles contained unicodeBidi whiteSpace wordBreak wordSpacing wordWrap writingMode +    syntax keyword typescriptCssStyles contained bottom height left position right top width zIndex +    syntax keyword typescriptCssStyles contained border borderBottom borderLeft borderRight borderTop borderBottomColor borderLeftColor borderTopColor borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle borderBottomWidth borderLeftWidth borderRightWidth borderTopWidth borderColor borderStyle borderWidth borderCollapse borderSpacing captionSide emptyCells tableLayout +    syntax keyword typescriptCssStyles contained margin marginBottom marginLeft marginRight marginTop outline outlineColor outlineStyle outlineWidth padding paddingBottom paddingLeft paddingRight paddingTop +    syntax keyword typescriptCssStyles contained listStyle listStyleImage listStylePosition listStyleType +    syntax keyword typescriptCssStyles contained background backgroundAttachment backgroundColor backgroundImage gackgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat +    syntax keyword typescriptCssStyles contained clear clip clipBottom clipLeft clipRight clipTop content counterIncrement counterReset cssFloat cursor direction display filter layoutGrid layoutGridChar layoutGridLine layoutGridMode layoutGridType +    syntax keyword typescriptCssStyles contained marks maxHeight maxWidth minHeight minWidth opacity MozOpacity overflow overflowX overflowY verticalAlign visibility zoom cssText +    syntax keyword typescriptCssStyles contained scrollbar3dLightColor scrollbarArrowColor scrollbarBaseColor scrollbarDarkShadowColor scrollbarFaceColor scrollbarHighlightColor scrollbarShadowColor scrollbarTrackColor  "}}}  endif "DOM/HTML/CSS  " Highlight ways"{{{ -syntax match typeScriptDotNotation "\."        nextgroup=typeScriptPrototype,typeScriptDomElemAttrs,typeScriptDomElemFuncs,typeScriptDOMMethods,typeScriptDOMProperties,typeScriptHtmlElemAttrs,typeScriptHtmlElemFuncs,typeScriptHtmlElemProperties,typeScriptAjaxProperties,typeScriptAjaxMethods,typeScriptPropietaryMethods,typeScriptEventListenerMethods skipwhite skipnl -syntax match typeScriptDotNotation "\.style\." nextgroup=typeScriptCssStyles +syntax match typescriptDotNotation "\."        nextgroup=typescriptPrototype,typescriptDomElemAttrs,typescriptDomElemFuncs,typescriptDOMMethods,typescriptDOMProperties,typescriptHtmlElemAttrs,typescriptHtmlElemFuncs,typescriptHtmlElemProperties,typescriptAjaxProperties,typescriptAjaxMethods,typescriptPropietaryMethods,typescriptEventListenerMethods skipwhite skipnl +syntax match typescriptDotNotation "\.style\." nextgroup=typescriptCssStyles  "}}}  "" end DOM/HTML/CSS specified things""}}}  "" Code blocks -syntax cluster typeScriptAll contains=typeScriptComment,typeScriptLineComment,typeScriptDocComment,typeScriptStringD,typeScriptStringS,typeScriptRegexpString,typeScriptNumber,typeScriptFloat,typeScriptLabel,typeScriptSource,typeScriptType,typeScriptOperator,typeScriptBoolean,typeScriptNull,typeScriptFuncKeyword,typeScriptConditional,typeScriptGlobal,typeScriptRepeat,typeScriptBranch,typeScriptStatement,typeScriptGlobalObjects,typeScriptMessage,typeScriptIdentifier,typeScriptExceptions,typeScriptReserved,typeScriptDeprecated,typeScriptDomErrNo,typeScriptDomNodeConsts,typeScriptHtmlEvents,typeScriptDotNotation,typeScriptBrowserObjects,typeScriptDOMObjects,typeScriptAjaxObjects,typeScriptPropietaryObjects,typeScriptDOMMethods,typeScriptHtmlElemProperties,typeScriptDOMProperties,typeScriptEventListenerKeywords,typeScriptEventListenerMethods,typeScriptAjaxProperties,typeScriptAjaxMethods,typeScriptFuncArg +syntax cluster typescriptAll contains=typescriptComment,typescriptLineComment,typescriptDocComment,typescriptStringD,typescriptStringS,typescriptStringB,typescriptRegexpString,typescriptNumber,typescriptFloat,typescriptDecorators,typescriptLabel,typescriptSource,typescriptType,typescriptOperator,typescriptBoolean,typescriptNull,typescriptFuncKeyword,typescriptConditional,typescriptGlobal,typescriptRepeat,typescriptBranch,typescriptStatement,typescriptGlobalObjects,typescriptMessage,typescriptIdentifier,typescriptExceptions,typescriptReserved,typescriptDeprecated,typescriptDomErrNo,typescriptDomNodeConsts,typescriptHtmlEvents,typescriptDotNotation,typescriptBrowserObjects,typescriptDOMObjects,typescriptAjaxObjects,typescriptPropietaryObjects,typescriptDOMMethods,typescriptHtmlElemProperties,typescriptDOMProperties,typescriptEventListenerKeywords,typescriptEventListenerMethods,typescriptAjaxProperties,typescriptAjaxMethods,typescriptFuncArg  if main_syntax == "typescript"    syntax sync clear -  syntax sync ccomment typeScriptComment minlines=200 -" syntax sync match typeScriptHighlight grouphere typeScriptBlock /{/ +  syntax sync ccomment typescriptComment minlines=200 +" syntax sync match typescriptHighlight grouphere typescriptBlock /{/  endif -syntax keyword typeScriptFuncKeyword function -"syntax region typeScriptFuncDef start="function" end="\(.*\)" contains=typeScriptFuncKeyword,typeScriptFuncArg keepend -"syntax match typeScriptFuncArg "\(([^()]*)\)" contains=typeScriptParens,typeScriptFuncComma contained -"syntax match typeScriptFuncComma /,/ contained -" syntax region typeScriptFuncBlock contained matchgroup=typeScriptFuncBlock start="{" end="}" contains=@typeScriptAll,typeScriptParensErrA,typeScriptParensErrB,typeScriptParen,typeScriptBracket,typeScriptBlock fold +syntax keyword typescriptFuncKeyword function +"syntax region typescriptFuncDef start="function" end="\(.*\)" contains=typescriptFuncKeyword,typescriptFuncArg keepend +"syntax match typescriptFuncArg "\(([^()]*)\)" contains=typescriptParens,typescriptFuncComma contained +"syntax match typescriptFuncComma /,/ contained +" syntax region typescriptFuncBlock contained matchgroup=typescriptFuncBlock start="{" end="}" contains=@typescriptAll,typescriptParensErrA,typescriptParensErrB,typescriptParen,typescriptBracket,typescriptBlock fold -syn match typeScriptBraces "[{}\[\]]" -syn match typeScriptParens "[()]" -syn match typeScriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-=" -syn match typeScriptEndColons "[;,]" -syn match typeScriptLogicSymbols "\(&&\)\|\(||\)" +syn match typescriptBraces "[{}\[\]]" +syn match typescriptParens "[()]" +syn match typescriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-=" +syn match typescriptEndColons "[;,]" +syn match typescriptLogicSymbols "\(&&\)\|\(||\)" -" typeScriptFold Function {{{ +" typescriptFold Function {{{ -function! TypeScriptFold() +" function! typescriptFold()  setl foldlevelstart=1  syn region foldBraces start=/{/ end=/}/ transparent fold keepend extend  setl foldtext=FoldText() -endfunction +" endfunction -au FileType typescript call TypeScriptFold() +" au FileType typescript call typescriptFold()  " }}}  " Define the default highlighting.  " For version 5.7 and earlier: only when not done already  " For version 5.8 and later: only when an item doesn't have highlighting yet -if version >= 508 || !exists("did_typeScript_syn_inits") +if version >= 508 || !exists("did_typescript_syn_inits")    if version < 508 -    let did_typeScript_syn_inits = 1 +    let did_typescript_syn_inits = 1      command -nargs=+ HiLink hi link <args>    else      command -nargs=+ HiLink hi def link <args>    endif -  "Typescript highlighting -  HiLink typeScriptParameters Operator +  "typescript highlighting +  HiLink typescriptParameters Operator    HiLink typescriptSuperBlock Operator -  HiLink typeScriptEndColons Exception -  HiLink typeScriptOpSymbols Operator -  HiLink typeScriptLogicSymbols Boolean -  HiLink typeScriptBraces Function -  HiLink typeScriptParens Operator -  HiLink typeScriptComment Comment -  HiLink typeScriptLineComment Comment -  HiLink typeScriptRef Include -  HiLink typeScriptRefS String -  HiLink typeScriptRefD String -  HiLink typeScriptDocComment Comment -  HiLink typeScriptCommentTodo Todo -  HiLink typeScriptCvsTag Function -  HiLink typeScriptDocTags Special -  HiLink typeScriptDocSeeTag Function -  HiLink typeScriptDocParam Function -  HiLink typeScriptStringS String -  HiLink typeScriptStringD String -  HiLink typeScriptRegexpString String -  HiLink typeScriptGlobal Constant -  HiLink typeScriptCharacter Character -  HiLink typeScriptPrototype Type -  HiLink typeScriptConditional Conditional -  HiLink typeScriptBranch Conditional -  HiLink typeScriptIdentifier Identifier -  HiLink typeScriptRepeat Repeat -  HiLink typeScriptStatement Statement -  HiLink typeScriptFuncKeyword Function -  HiLink typeScriptMessage Keyword -  HiLink typeScriptDeprecated Exception -  HiLink typeScriptError Error -  HiLink typeScriptParensError Error -  HiLink typeScriptParensErrA Error -  HiLink typeScriptParensErrB Error -  HiLink typeScriptParensErrC Error -  HiLink typeScriptReserved Keyword -  HiLink typeScriptOperator Operator -  HiLink typeScriptType Type -  HiLink typeScriptNull Type -  HiLink typeScriptNumber Number -  HiLink typeScriptFloat Number -  HiLink typeScriptBoolean Boolean -  HiLink typeScriptLabel Label -  HiLink typeScriptSpecial Special -  HiLink typeScriptSource Special -  HiLink typeScriptGlobalObjects Special -  HiLink typeScriptExceptions Special - -  HiLink typeScriptDomErrNo Constant -  HiLink typeScriptDomNodeConsts Constant -  HiLink typeScriptDomElemAttrs Label -  HiLink typeScriptDomElemFuncs PreProc - -  HiLink typeScriptHtmlElemAttrs Label -  HiLink typeScriptHtmlElemFuncs PreProc - -  HiLink typeScriptCssStyles Label +  HiLink typescriptEndColons Exception +  HiLink typescriptOpSymbols Operator +  HiLink typescriptLogicSymbols Boolean +  HiLink typescriptBraces Function +  HiLink typescriptParens Operator +  HiLink typescriptComment Comment +  HiLink typescriptLineComment Comment +  HiLink typescriptRef Include +  HiLink typescriptRefS String +  HiLink typescriptRefD String +  HiLink typescriptDocComment Comment +  HiLink typescriptCommentTodo Todo +  HiLink typescriptCvsTag Function +  HiLink typescriptDocTags Special +  HiLink typescriptDocSeeTag Function +  HiLink typescriptDocParam Function +  HiLink typescriptStringS String +  HiLink typescriptStringD String +  HiLink typescriptStringB String +  HiLink typescriptRegexpString String +  HiLink typescriptGlobal Constant +  HiLink typescriptCharacter Character +  HiLink typescriptPrototype Type +  HiLink typescriptConditional Conditional +  HiLink typescriptBranch Conditional +  HiLink typescriptIdentifier Identifier +  HiLink typescriptRepeat Repeat +  HiLink typescriptStatement Statement +  HiLink typescriptFuncKeyword Function +  HiLink typescriptMessage Keyword +  HiLink typescriptDeprecated Exception +  HiLink typescriptError Error +  HiLink typescriptParensError Error +  HiLink typescriptParensErrA Error +  HiLink typescriptParensErrB Error +  HiLink typescriptParensErrC Error +  HiLink typescriptReserved Keyword +  HiLink typescriptOperator Operator +  HiLink typescriptType Type +  HiLink typescriptNull Type +  HiLink typescriptNumber Number +  HiLink typescriptFloat Number +  HiLink typescriptDecorators Special +  HiLink typescriptBoolean Boolean +  HiLink typescriptLabel Label +  HiLink typescriptSpecial Special +  HiLink typescriptSource Special +  HiLink typescriptGlobalObjects Special +  HiLink typescriptExceptions Special + +  HiLink typescriptDomErrNo Constant +  HiLink typescriptDomNodeConsts Constant +  HiLink typescriptDomElemAttrs Label +  HiLink typescriptDomElemFuncs PreProc + +  HiLink typescriptHtmlElemAttrs Label +  HiLink typescriptHtmlElemFuncs PreProc + +  HiLink typescriptCssStyles Label    " Ajax Highlighting -  HiLink typeScriptBrowserObjects Constant +  HiLink typescriptBrowserObjects Constant -  HiLink typeScriptDOMObjects Constant -  HiLink typeScriptDOMMethods Function -  HiLink typeScriptDOMProperties Special +  HiLink typescriptDOMObjects Constant +  HiLink typescriptDOMMethods Function +  HiLink typescriptDOMProperties Special -  HiLink typeScriptAjaxObjects Constant -  HiLink typeScriptAjaxMethods Function -  HiLink typeScriptAjaxProperties Special +  HiLink typescriptAjaxObjects Constant +  HiLink typescriptAjaxMethods Function +  HiLink typescriptAjaxProperties Special -  HiLink typeScriptFuncDef Title -  HiLink typeScriptFuncArg Special -  HiLink typeScriptFuncComma Operator +  HiLink typescriptFuncDef Title +  HiLink typescriptFuncArg Special +  HiLink typescriptFuncComma Operator -  HiLink typeScriptHtmlEvents Special -  HiLink typeScriptHtmlElemProperties Special +  HiLink typescriptHtmlEvents Special +  HiLink typescriptHtmlElemProperties Special -  HiLink typeScriptEventListenerKeywords Keyword +  HiLink typescriptEventListenerKeywords Keyword -  HiLink typeScriptNumber Number -  HiLink typeScriptPropietaryObjects Constant +  HiLink typescriptNumber Number +  HiLink typescriptPropietaryObjects Constant    delcommand HiLink  endif -" Define the htmltypeScript for HTML syntax html.vim -"syntax clear htmltypeScript -"syntax clear typeScriptExpression -syntax cluster htmltypeScript contains=@typeScriptAll,typeScriptBracket,typeScriptParen,typeScriptBlock,typeScriptParenError -syntax cluster typeScriptExpression contains=@typeScriptAll,typeScriptBracket,typeScriptParen,typeScriptBlock,typeScriptParenError,@htmlPreproc +" Define the htmltypescript for HTML syntax html.vim +"syntax clear htmltypescript +"syntax clear typescriptExpression +syntax cluster htmltypescript contains=@typescriptAll,typescriptBracket,typescriptParen,typescriptBlock,typescriptParenError +syntax cluster typescriptExpression contains=@typescriptAll,typescriptBracket,typescriptParen,typescriptBlock,typescriptParenError,@htmlPreproc  let b:current_syntax = "typescript"  if main_syntax == 'typescript' | 
