" Vim syntax file " Language: Zsh shell script " Maintainer: Christian Brabandt " Previous Maintainer: Nikolai Weibull " Latest Revision: 2020-11-21 " License: Vim (see :h license) " Repository: https://github.com/chrisbra/vim-zsh if exists("b:current_syntax") finish endif let s:cpo_save = &cpo set cpo&vim function! s:ContainedGroup() " needs 7.4.2008 for execute() function let result='TOP' " vim-pandoc syntax defines the @langname cluster for embedded syntax languages " However, if no syntax is defined yet, `syn list @zsh` will return " "No syntax items defined", so make sure the result is actually a valid syn cluster for cluster in ['markdownHighlightzsh', 'zsh'] try " markdown syntax defines embedded clusters as @markdownhighlight, " pandoc just uses @, so check both for both clusters let a=split(execute('syn list @'. cluster), "\n") if len(a) == 2 && a[0] =~# '^---' && a[1] =~? cluster return '@'. cluster endif catch /E392/ " ignore endtry endfor return result endfunction let s:contained=s:ContainedGroup() syn iskeyword @,48-57,_,192-255,#,- if get(g:, 'zsh_fold_enable', 0) setlocal foldmethod=syntax endif syn match zshPOSIXQuoted '\\[xX][0-9a-fA-F]\{1,2}' syn match zshPOSIXQuoted '\\[0-7]\{1,3}' syn match zshPOSIXQuoted '\\u[0-9a-fA-F]\{1,4}' syn match zshPOSIXQuoted '\\U[1-9a-fA-F]\{1,8}' syn match zshQuoted '\\.' syn region zshString matchgroup=zshStringDelimiter start=+"+ end=+"+ \ contains=zshQuoted,@zshDerefs,@zshSubst fold syn region zshString matchgroup=zshStringDelimiter start=+'+ end=+'+ fold syn region zshPOSIXString matchgroup=zshStringDelimiter start=+\$'+ \ skip=+\\[\\']+ end=+'+ contains=zshPOSIXQuoted,zshQuoted syn match zshJobSpec '%\(\d\+\|?\=\w\+\|[%+-]\)' syn keyword zshPrecommand noglob nocorrect exec command builtin - time syn keyword zshDelimiter do done end syn keyword zshConditional if then elif else fi case in esac select syn keyword zshRepeat while until repeat syn keyword zshRepeat for foreach nextgroup=zshVariable skipwhite syn keyword zshException always syn keyword zshKeyword function nextgroup=zshKSHFunction skipwhite syn match zshKSHFunction contained '\w\S\+' syn match zshFunction '^\s*\k\+\ze\s*()' syn match zshOperator '||\|&&\|;\|&!\=' syn match zshRedir '\d\=\(<\|<>\|<<<\|<&\s*[0-9p-]\=\)' syn match zshRedir '\d\=\(>\|>>\|>&\s*[0-9p-]\=\|&>\|>>&\|&>>\)[|!]\=' syn match zshRedir '|&\=' syn region zshHereDoc matchgroup=zshRedir \ start='<\@' \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString syn region zshHereDoc matchgroup=zshRedir \ start='<\@' \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString syn region zshHereDoc matchgroup=zshRedir \ start='<\@' \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString syn region zshHereDoc matchgroup=zshRedir \ start=+<\@' syn region zshHereDoc matchgroup=zshRedir \ start=+<\@' syn match zshVariable '\<\h\w*' contained syn match zshVariableDef '\<\h\w*\ze+\==' " XXX: how safe is this? syn region zshVariableDef oneline \ start='\$\@' syn match zshLongDeref '\$\%(ARGC\|argv\|status\|pipestatus\|CPUTYPE\|EGID\|EUID\|ERRNO\|GID\|HOST\|LINENO\|LOGNAME\)' syn match zshLongDeref '\$\%(MACHTYPE\|OLDPWD OPTARG\|OPTIND\|OSTYPE\|PPID\|PWD\|RANDOM\|SECONDS\|SHLVL\|signals\)' syn match zshLongDeref '\$\%(TRY_BLOCK_ERROR\|TTY\|TTYIDLE\|UID\|USERNAME\|VENDOR\|ZSH_NAME\|ZSH_VERSION\|REPLY\|reply\|TERM\)' syn match zshDollarVar '\$\h\w*' syn match zshDeref '\$[=^~]*[#+]*\h\w*\>' syn match zshCommands '\%(^\|\s\)[.:]\ze\s' syn keyword zshCommands alias autoload bg bindkey break bye cap cd \ chdir clone comparguments compcall compctl \ compdescribe compfiles compgroups compquote \ comptags comptry compvalues continue dirs \ disable disown echo echotc echoti emulate \ enable eval exec exit export false fc fg \ functions getcap getln getopts hash history \ jobs kill let limit log logout popd print \ printf pushd pushln pwd r read \ rehash return sched set setcap shift \ source stat suspend test times trap true \ ttyctl type ulimit umask unalias unfunction \ unhash unlimit unset vared wait \ whence where which zcompile zformat zftp zle \ zmodload zparseopts zprof zpty zrecompile \ zregexparse zsocket zstyle ztcp " Options, generated by: echo ${(j:\n:)options[(I)*]} | sort " Create a list of option names from zsh source dir: " #!/bin/zsh " topdir=/path/to/zsh-xxx " grep '^pindex([A-Za-z_]*)$' $topdir/Doc/Zsh/options.yo | " while read opt " do " echo ${${(L)opt#pindex\(}%\)} " done syn case ignore syn match zshOptStart /^\s*\%(\%(\%(un\)\?setopt\)\|set\s+[-+]o\)/ nextgroup=zshOption skipwhite syn match zshOption / \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?alias_func_def\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?all_export\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?always_last_prompt\>\)\|\%(\%(no_\?\)\?always_lastprompt\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?always_to_end\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?append_create\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?append_history\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_cd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_continue\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_list\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_menu\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_name_dirs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_param_keys\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_param_slash\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_pushd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_remove_slash\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?auto_resume\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bad_pattern\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bang_hist\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bare_glob_qual\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bash_auto_list\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bash_rematch\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bg_nice\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?brace_ccl\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?brace_expand\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?bsd_echo\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?case_glob\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?case_match\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?c_bases\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?cdable_vars\>\)\|\%(\%(no_\?\)\?cd_able_vars\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?cd_silent\>\)\|\%(\%(no_\?\)\?cd_silent\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?chase_dots\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?chase_links\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?check_jobs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?check_running_jobs\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?clobber_empty\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?combining_chars\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?complete_aliases\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?complete_in_word\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?continue_on_error\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?correct_all\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?c_precedences\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?csh_junkie_history\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?csh_junkie_loops\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?csh_junkie_quotes\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?csh_null_cmd\>\)\|\%(\%(no_\?\)\?cshnullcmd\>\)\|\%(\%(no_\?\)\?csh_null_cmd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?csh_null_glob\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?debug_before_cmd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?dot_glob\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?err_exit\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?err_return\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?eval_lineno\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?extended_glob\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?extended_history\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?flow_control\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?force_float\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?function_argzero\>\)\|\%(\%(no_\?\)\?function_arg_zero\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?global_export\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?global_rcs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?glob_assign\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?glob_complete\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?glob_dots\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?globsubst\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?glob_star_short\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hash_all\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hash_cmds\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hash_dirs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hash_executables_only\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hash_list_all\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_allow_clobber\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_append\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_beep\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?histexpand\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?histexpiredupsfirst\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_fcntl_lock\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_find_no_dups\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_ignore_all_dups\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_ignore_dups\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_ignore_space\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_lex_words\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_no_functions\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_no_store\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_reduce_blanks\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_save_by_copy\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_save_no_dups\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_subst_pattern\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?hist_verify\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ignore_braces\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ignore_close_braces\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ignore_eof\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?inc_append_history\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?inc_append_history_time\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?interactive_comments\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ksh_arrays\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ksh_autoload\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ksh_glob\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ksh_option_print\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ksh_typeset\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?ksh_zero_subscript\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?list_ambiguous\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?list_beep\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?list_packed\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?list_rows_first\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?list_types\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?local_loops\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?local_options\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?local_patterns\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?local_traps\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?long_list_jobs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?magic_equal_subst\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?mail_warn\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?mail_warning\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?menu_complete\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?multi_byte\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?multi_func_def\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?multi_os\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?no_match\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?null_glob\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?numeric_glob_sort\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?octal_zeroes\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?one_cmd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?over_strike\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?path_dirs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?path_script\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?pipe_fail\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_aliases\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_arg_zero\>\)\|\%(\%(no_\?\)\?posix_argzero\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_builtins\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_cd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_identifiers\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_jobs\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_strings\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?posix_traps\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?print_eight_bit\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?print_exit_value\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?prompt_bang\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?prompt_cr\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?prompt_percent\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?prompt_sp\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?prompt_subst\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?prompt_vars\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?pushd_ignore_dups\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?pushd_minus\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?pushd_silent\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?pushd_to_home\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?rc_expandparam\>\)\|\%(\%(no_\?\)\?rc_expand_param\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?rc_quotes\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?rec_exact\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?re_match_pcre\>\)\|\%(\%(no_\?\)\?rematch_pcre\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?rm_star_silent\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?rm_star_wait\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?share_history\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?sh_file_expansion\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?sh_glob\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?shin_stdin\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?sh_nullcmd\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?sh_option_letters\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?short_loops\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?short_repeat\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?sh_word_split\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?single_command\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?single_line_zle\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?source_trace\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?sun_keyboard_hack\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?track_all\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?transient_rprompt\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?traps_async\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?type_set_silent\>\)\|\%(\%(no_\?\)\?typeset_silent\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)\| \ \%(\%(\\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?warn_nested_var\>\)\| \ \%(\%(\\)\|\%(\%(no_\?\)\?warn_create_global\>\)\| \ \%(\%(\\)\| \ \%(\%(\\)/ nextgroup=zshOption,zshComment skipwhite contained syn case match syn keyword zshTypes float integer local typeset declare private readonly " XXX: this may be too much " syn match zshSwitches '\s\zs--\=[a-zA-Z0-9-]\+' syn match zshNumber '[+-]\=\<\d\+\>' syn match zshNumber '[+-]\=\<0x\x\+\>' syn match zshNumber '[+-]\=\<0\o\+\>' syn match zshNumber '[+-]\=\d\+#[-+]\=\w\+\>' syn match zshNumber '[+-]\=\d\+\.\d\+\>' " TODO: $[...] is the same as $((...)), so add that as well. syn cluster zshSubst contains=zshSubst,zshOldSubst,zshMathSubst exe 'syn region zshSubst matchgroup=zshSubstDelim transparent start=/\$(/ skip=/\\)/ end=/)/ contains='.s:contained. ' fold' syn region zshParentheses transparent start='(' skip='\\)' end=')' fold syn region zshGlob start='(#' end=')' syn region zshMathSubst matchgroup=zshSubstDelim transparent \ start='\%(\$\?\)[<=>]\@' syn keyword zshTodo contained TODO FIXME XXX NOTE syn region zshComment oneline start='\%(^\|\s\+\)#' end='$' \ contains=zshTodo,@Spell fold syn region zshComment start='^\s*#' end='^\%(\s*#\)\@!' \ contains=zshTodo,@Spell fold syn match zshPreProc '^\%1l#\%(!\|compdef\|autoload\).*$' hi def link zshTodo Todo hi def link zshComment Comment hi def link zshPreProc PreProc hi def link zshQuoted SpecialChar hi def link zshPOSIXQuoted SpecialChar hi def link zshString String hi def link zshStringDelimiter zshString hi def link zshPOSIXString zshString hi def link zshJobSpec Special hi def link zshPrecommand Special hi def link zshDelimiter Keyword hi def link zshConditional Conditional hi def link zshException Exception hi def link zshRepeat Repeat hi def link zshKeyword Keyword hi def link zshFunction None hi def link zshKSHFunction zshFunction hi def link zshHereDoc String hi def link zshOperator None hi def link zshRedir Operator hi def link zshVariable None hi def link zshVariableDef zshVariable hi def link zshDereferencing PreProc hi def link zshShortDeref zshDereferencing hi def link zshLongDeref zshDereferencing hi def link zshDeref zshDereferencing hi def link zshDollarVar zshDereferencing hi def link zshCommands Keyword hi def link zshOptStart Keyword hi def link zshOption Constant hi def link zshTypes Type hi def link zshSwitches Special hi def link zshNumber Number hi def link zshSubst PreProc hi def link zshMathSubst zshSubst hi def link zshOldSubst zshSubst hi def link zshSubstDelim zshSubst hi def link zshGlob zshSubst let b:current_syntax = "zsh" let &cpo = s:cpo_save unlet s:cpo_save