Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 1 | " tcsh.vim: Vim syntax file for tcsh scripts |
Bram Moolenaar | 6e64922 | 2021-10-04 21:32:54 +0100 | [diff] [blame] | 2 | " Maintainer: Doug Kearns <dougkearns@NoSpam.com> where NoSpam=gmail |
| 3 | " Author: Gautam Iyer <gi1242+vim@NoSpam.com> where NoSpam=gmail |
| 4 | " Modified: Sun 26 Sep 2021 12:40:55 PM EDT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5 | " |
| 6 | " Description: We break up each statement into a "command" and an "end" part. |
| 7 | " All groups are either a "command" or part of the "end" of a statement (ie |
| 8 | " everything after the "command"). This is because blindly highlighting tcsh |
| 9 | " statements as keywords caused way too many false positives. Eg: |
| 10 | " |
Bram Moolenaar | a83c3e0 | 2006-03-17 23:10:44 +0000 | [diff] [blame] | 11 | " set history=200 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12 | " |
| 13 | " causes history to come up as a keyword, which we want to avoid. |
| 14 | |
| 15 | " Quit when a syntax file was already loaded |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 16 | if exists('b:current_syntax') |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17 | finish |
| 18 | endif |
| 19 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 20 | let s:oldcpo = &cpo |
| 21 | set cpo&vim " Line continuation is used |
| 22 | |
| 23 | setlocal iskeyword+=- |
| 24 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 25 | syn case match |
| 26 | |
| 27 | " ----- Clusters ----- |
| 28 | syn cluster tcshModifiers contains=tcshModifier,tcshModifierError |
| 29 | syn cluster tcshQuoteList contains=tcshDQuote,tcshSQuote,tcshBQuote |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 30 | syn cluster tcshStatementEnds contains=@tcshQuoteList,tcshComment,@tcshVarList,tcshRedir,tcshMeta,tcshHereDoc,tcshSpecial,tcshArguement |
| 31 | syn cluster tcshStatements contains=tcshBuiltin,tcshCommands,tcshIf,tcshWhile |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 32 | syn cluster tcshVarList contains=tcshUsrVar,tcshArgv,tcshSubst |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 33 | syn cluster tcshConditions contains=tcshCmdSubst,tcshParenExpr,tcshOperator,tcshNumber,@tcshVarList |
| 34 | |
| 35 | " ----- Errors ----- |
| 36 | " Define first, so can be easily overridden. |
| 37 | syn match tcshError contained '\v\S.+' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 38 | |
| 39 | " ----- Statements ----- |
| 40 | " Tcsh commands: Any filename / modifiable variable (must be first!) |
| 41 | syn match tcshCommands '\v[a-zA-Z0-9\\./_$:-]+' contains=tcshSpecial,tcshUsrVar,tcshArgv,tcshVarError nextgroup=tcshStatementEnd |
| 42 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 43 | " Builtin commands except those treated specially. Currently (un)set(env), |
| 44 | " (un)alias, if, while, else, bindkey |
| 45 | syn keyword tcshBuiltin nextgroup=tcshStatementEnd alloc bg break breaksw builtins bye case cd chdir complete continue default dirs echo echotc end endif endsw eval exec exit fg filetest foreach getspath getxvers glob goto hashstat history hup inlib jobs kill limit log login logout ls ls-F migrate newgrp nice nohup notify onintr popd printenv pushd rehash repeat rootnode sched setpath setspath settc setty setxvers shift source stop suspend switch telltc time umask uncomplete unhash universe unlimit ver wait warp watchlog where which |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 46 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 47 | " StatementEnd is anything after a built-in / command till the lexical end of a |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 48 | " statement (;, |, ||, |&, && or end of line) |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 49 | syn region tcshStatementEnd transparent contained matchgroup=tcshBuiltin start='' end='\v\\@<!(;|\|[|&]?|\&\&|$)' contains=@tcshStatementEnds |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 50 | |
| 51 | " set expressions (Contains shell variables) |
| 52 | syn keyword tcshShellVar contained afsuser ampm argv autocorrect autoexpand autolist autologout backslash_quote catalog cdpath color colorcat command complete continue continue_args correct cwd dextract dirsfile dirstack dspmbyte dunique echo echo_style edit ellipsis fignore filec gid group histchars histdup histfile histlit history home ignoreeof implicitcd inputmode killdup killring listflags listjobs listlinks listmax listmaxrows loginsh logout mail matchbeep nobeep noclobber noding noglob nokanji nonomatch nostat notify oid owd path printexitvalue prompt prompt2 prompt3 promptchars pushdtohome pushdsilent recexact recognize_only_executables rmstar rprompt savedirs savehist sched shell shlvl status symlinks tcsh term time tperiod tty uid user verbose version visiblebell watch who wordchars |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 53 | syn keyword tcshBuiltin nextgroup=tcshSetEnd set unset |
| 54 | syn region tcshSetEnd contained transparent matchgroup=tcshBuiltin start='' skip='\\$' end='$\|;' contains=tcshShellVar,@tcshStatementEnds |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 55 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 56 | " setenv expressions (Contains environment variables) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 57 | syn keyword tcshEnvVar contained AFSUSER COLUMNS DISPLAY EDITOR GROUP HOME HOST HOSTTYPE HPATH LANG LC_CTYPE LINES LS_COLORS MACHTYPE NOREBIND OSTYPE PATH PWD REMOTEHOST SHLVL SYSTYPE TERM TERMCAP USER VENDOR VISUAL |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 58 | syn keyword tcshBuiltin nextgroup=tcshEnvEnd setenv unsetenv |
| 59 | syn region tcshEnvEnd contained transparent matchgroup=tcshBuiltin start='' skip='\\$' end='$\|;' contains=tcshEnvVar,@tcshStatementEnds |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 60 | |
| 61 | " alias and unalias (contains special aliases) |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 62 | syn keyword tcshAliases contained beepcmd cwdcmd jobcmd helpcommand periodic precmd postcmd shell |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 63 | syn keyword tcshBuiltin nextgroup=tcshAliCmd skipwhite alias unalias |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 64 | syn match tcshAliCmd contained nextgroup=tcshAliEnd skipwhite '\v(\w|-)+' contains=tcshAliases |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 65 | syn region tcshAliEnd contained transparent matchgroup=tcshBuiltin start='' skip='\\$' end='$\|;' contains=@tcshStatementEnds |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 66 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 67 | " if statements |
| 68 | syn keyword tcshIf nextgroup=tcshIfEnd skipwhite if |
| 69 | syn region tcshIfEnd contained start='\S' skip='\\$' matchgroup=tcshBuiltin end='\v<then>|$' contains=@tcshConditions,tcshSpecial,@tcshStatementEnds |
| 70 | syn region tcshIfEnd contained matchgroup=tcshBuiltin contains=@tcshConditions,tcshSpecial start='(' end='\v\)%(\s+then>)?' skipwhite nextgroup=@tcshStatementEnds |
| 71 | syn region tcshIfEnd contained matchgroup=tcshBuiltin contains=tcshCommands,tcshSpecial start='\v\{\s+' end='\v\s+\}%(\s+then>)?' skipwhite nextgroup=@tcshStatementEnds keepend |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 73 | " else statements |
| 74 | syn keyword tcshBuiltin nextgroup=tcshIf skipwhite else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 75 | |
| 76 | " while statements (contains expressions / operators) |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 77 | syn keyword tcshBuiltin nextgroup=@tcshConditions,tcshSpecial skipwhite while |
| 78 | |
| 79 | " Conditions (for if and while) |
| 80 | syn region tcshParenExpr contained contains=@tcshConditions,tcshSpecial matchgroup=tcshBuiltin start='(' end=')' |
| 81 | syn region tcshCmdSubst contained contains=tcshCommands matchgroup=tcshBuiltin start='\v\{\s+' end='\v\s+\}' keepend |
| 82 | |
| 83 | " Bindkey. Internal editor functions |
| 84 | syn keyword tcshBindkeyFuncs contained backward-char backward-delete-char |
| 85 | \ backward-delete-word backward-kill-line backward-word |
| 86 | \ beginning-of-line capitalize-word change-case |
| 87 | \ change-till-end-of-line clear-screen complete-word |
| 88 | \ complete-word-fwd complete-word-back complete-word-raw |
| 89 | \ copy-prev-word copy-region-as-kill dabbrev-expand delete-char |
| 90 | \ delete-char-or-eof delete-char-or-list |
| 91 | \ delete-char-or-list-or-eof delete-word digit digit-argument |
| 92 | \ down-history downcase-word end-of-file end-of-line |
| 93 | \ exchange-point-and-mark expand-glob expand-history expand-line |
| 94 | \ expand-variables forward-char forward-word |
| 95 | \ gosmacs-transpose-chars history-search-backward |
| 96 | \ history-search-forward insert-last-word i-search-fwd |
| 97 | \ i-search-back keyboard-quit kill-line kill-region |
| 98 | \ kill-whole-line list-choices list-choices-raw list-glob |
| 99 | \ list-or-eof load-average magic-space newline normalize-path |
| 100 | \ normalize-command overwrite-mode prefix-meta quoted-insert |
| 101 | \ redisplay run-fg-editor run-help self-insert-command |
| 102 | \ sequence-lead-in set-mark-command spell-word spell-line |
| 103 | \ stuff-char toggle-literal-history transpose-chars |
| 104 | \ transpose-gosling tty-dsusp tty-flush-output tty-sigintr |
| 105 | \ tty-sigquit tty-sigtsusp tty-start-output tty-stop-output |
| 106 | \ undefined-key universal-argument up-history upcase-word |
| 107 | \ vi-beginning-of-next-word vi-add vi-add-at-eol vi-chg-case |
| 108 | \ vi-chg-meta vi-chg-to-eol vi-cmd-mode vi-cmd-mode-complete |
| 109 | \ vi-delprev vi-delmeta vi-endword vi-eword vi-char-back |
| 110 | \ vi-char-fwd vi-charto-back vi-charto-fwd vi-insert |
| 111 | \ vi-insert-at-bol vi-repeat-char-fwd vi-repeat-char-back |
| 112 | \ vi-repeat-search-fwd vi-repeat-search-back vi-replace-char |
| 113 | \ vi-replace-mode vi-search-back vi-search-fwd vi-substitute-char |
| 114 | \ vi-substitute-line vi-word-back vi-word-fwd vi-undo vi-zero |
| 115 | \ which-command yank yank-pop e_copy_to_clipboard |
| 116 | \ e_paste_from_clipboard e_dosify_next e_dosify_prev e_page_up |
| 117 | \ e_page_down |
| 118 | syn keyword tcshBuiltin nextgroup=tcshBindkeyEnd bindkey |
| 119 | syn region tcshBindkeyEnd contained transparent matchgroup=tcshBuiltin start='' skip='\\$' end='$' contains=@tcshQuoteList,tcshComment,@tcshVarList,tcshMeta,tcshSpecial,tcshArguement,tcshBindkeyFuncs |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 120 | |
| 121 | " Expressions start with @. |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 122 | syn match tcshExprStart '\v\@\s+' nextgroup=tcshExprVar |
| 123 | syn match tcshExprVar contained '\v\h\w*%(\[\d+\])?' contains=tcshShellVar,tcshEnvVar nextgroup=tcshExprOp |
| 124 | syn match tcshExprOp contained '++\|--' |
| 125 | syn match tcshExprOp contained '\v\s*\=' nextgroup=tcshExprEnd |
| 126 | syn match tcshExprEnd contained '\v.*$'hs=e+1 contains=@tcshConditions |
| 127 | syn match tcshExprEnd contained '\v.{-};'hs=e contains=@tcshConditions |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 128 | |
| 129 | " ----- Comments: ----- |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 130 | syn match tcshComment '#\s.*' contains=tcshTodo,tcshCommentTi,@Spell |
| 131 | syn match tcshComment '\v#($|\S.*)' contains=tcshTodo,tcshCommentTi |
| 132 | syn match tcshSharpBang '^#! .*$' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 133 | syn match tcshCommentTi contained '\v#\s*\u\w*(\s+\u\w*)*:'hs=s+1 contains=tcshTodo |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 134 | syn match tcshTodo contained '\v\c<todo>' |
| 135 | |
| 136 | " ----- Strings ----- |
| 137 | " Tcsh does not allow \" in strings unless the "backslash_quote" shell |
| 138 | " variable is set. Set the vim variable "tcsh_backslash_quote" to 0 if you |
| 139 | " want VIM to assume that no backslash quote constructs exist. |
| 140 | |
| 141 | " Backquotes are treated as commands, and are not contained in anything |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 142 | if(exists('tcsh_backslash_quote') && tcsh_backslash_quote == 0) |
| 143 | syn region tcshSQuote keepend contained start="\v\\@<!'" end="'" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 144 | syn region tcshDQuote keepend contained start='\v\\@<!"' end='"' contains=@tcshVarList,tcshSpecial,@Spell |
| 145 | syn region tcshBQuote keepend start='\v\\@<!`' end='`' contains=@tcshStatements |
| 146 | else |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 147 | syn region tcshSQuote contained start="\v\\@<!'" skip="\v\\\\|\\'" end="'" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 148 | syn region tcshDQuote contained start='\v\\@<!"' end='"' contains=@tcshVarList,tcshSpecial,@Spell |
| 149 | syn region tcshBQuote keepend matchgroup=tcshBQuoteGrp start='\v\\@<!`' skip='\v\\\\|\\`' end='`' contains=@tcshStatements |
| 150 | endif |
| 151 | |
| 152 | " ----- Variables ----- |
| 153 | " Variable Errors. Must come first! \$ constructs will be flagged by |
| 154 | " tcshSpecial, so we don't consider them here. |
| 155 | syn match tcshVarError '\v\$\S*' contained |
| 156 | |
| 157 | " Modifiable Variables without {}. |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 158 | syn match tcshUsrVar contained '\v\$\h\w*%(\[\d+%(-\d+)?\])?' nextgroup=@tcshModifiers contains=tcshShellVar,tcshEnvVar |
| 159 | syn match tcshArgv contained '\v\$%(\d+|\*)' nextgroup=@tcshModifiers |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 160 | |
| 161 | " Modifiable Variables with {}. |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 162 | syn match tcshUsrVar contained '\v\$\{\h\w*%(\[\d+%(-\d+)?\])?%(:\S*)?\}' contains=@tcshModifiers,tcshShellVar,tcshEnvVar |
| 163 | syn match tcshArgv contained '\v\$\{%(\d+|\*)%(:\S*)?\}' contains=@tcshModifiers |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 164 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 165 | " Un-modifiable Substitutions. Order is important here. |
| 166 | syn match tcshSubst contained '\v\$[?#$!_<]' nextgroup=tcshModifierError |
| 167 | syn match tcshSubst contained '\v\$[%#?]%(\h\w*|\d+)' nextgroup=tcshModifierError contains=tcshShellVar,tcshEnvVar |
| 168 | syn match tcshSubst contained '\v\$\{[%#?]%(\h\w*|\d+)%(:\S*)?\}' contains=tcshModifierError contains=tcshShellVar,tcshEnvVar |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 169 | |
| 170 | " Variable Name Expansion Modifiers (order important) |
| 171 | syn match tcshModifierError contained '\v:\S*' |
| 172 | syn match tcshModifier contained '\v:[ag]?[htreuls&qx]' nextgroup=@tcshModifiers |
| 173 | |
| 174 | " ----- Operators / Specials ----- |
| 175 | " Standard redirects (except <<) [<, >, >>, >>&, >>!, >>&!] |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 176 | syn match tcshRedir contained '\v\<|\>\>?\&?!?' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 177 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 178 | " Meta-chars |
| 179 | syn match tcshMeta contained '\v[]{}*?[]' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 180 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 181 | " Here documents (<<) |
| 182 | syn region tcshHereDoc contained matchgroup=tcshShellVar start='\v\<\<\s*\z(\h\w*)' end='^\z1$' contains=@tcshVarList,tcshSpecial |
| 183 | syn region tcshHereDoc contained matchgroup=tcshShellVar start="\v\<\<\s*'\z(\h\w*)'" start='\v\<\<\s*"\z(\h\w*)"$' start='\v\<\<\s*\\\z(\h\w*)$' end='^\z1$' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 184 | |
| 185 | " Operators |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 186 | syn match tcshOperator contained '&&\|!\~\|!=\|<<\|<=\|==\|=\~\|>=\|>>\|\*\|\^\|\~\|||\|!\|%\|&\|+\|-\|/\|<\|>\||' |
| 187 | "syn match tcshOperator contained '[(){}]' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 188 | |
| 189 | " Numbers |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 190 | syn match tcshNumber contained '\v<-?\d+>' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 191 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 192 | " Arguments |
| 193 | syn match tcshArguement contained '\v\s@<=-(\w|-)*' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 194 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 195 | " Special characters. \xxx, or backslashed characters. |
| 196 | "syn match tcshSpecial contained '\v\\@<!\\(\d{3}|.)' |
| 197 | syn match tcshSpecial contained '\v\\%([0-7]{3}|.)' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 198 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 199 | " ----- Synchronising ----- |
| 200 | if exists('tcsh_minlines') |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 201 | if tcsh_minlines == 'fromstart' |
| 202 | syn sync fromstart |
| 203 | else |
| 204 | exec 'syn sync minlines=' . tcsh_minlines |
| 205 | endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 206 | else |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 207 | syn sync minlines=100 " Some completions can be quite long |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 208 | endif |
| 209 | |
| 210 | " Define highlighting of syntax groups |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 211 | hi def link tcshError Error |
| 212 | hi def link tcshBuiltin Statement |
| 213 | hi def link tcshShellVar Preproc |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 214 | hi def link tcshEnvVar tcshShellVar |
| 215 | hi def link tcshAliases tcshShellVar |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 216 | hi def link tcshAliCmd Identifier |
| 217 | hi def link tcshCommands Identifier |
| 218 | hi def link tcshIf tcshBuiltin |
| 219 | hi def link tcshWhile tcshBuiltin |
| 220 | hi def link tcshBindkeyFuncs Function |
| 221 | hi def link tcshExprStart tcshBuiltin |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 222 | hi def link tcshExprVar tcshUsrVar |
| 223 | hi def link tcshExprOp tcshOperator |
| 224 | hi def link tcshExprEnd tcshOperator |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 225 | hi def link tcshComment Comment |
| 226 | hi def link tcshCommentTi Preproc |
Bram Moolenaar | a83c3e0 | 2006-03-17 23:10:44 +0000 | [diff] [blame] | 227 | hi def link tcshSharpBang tcshCommentTi |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 228 | hi def link tcshTodo Todo |
| 229 | hi def link tcshSQuote Constant |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 230 | hi def link tcshDQuote tcshSQuote |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 231 | hi def link tcshBQuoteGrp Include |
| 232 | hi def link tcshVarError Error |
| 233 | hi def link tcshUsrVar Type |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 234 | hi def link tcshArgv tcshUsrVar |
| 235 | hi def link tcshSubst tcshUsrVar |
| 236 | hi def link tcshModifier tcshArguement |
| 237 | hi def link tcshModifierError tcshVarError |
| 238 | hi def link tcshMeta tcshSubst |
| 239 | hi def link tcshRedir tcshOperator |
| 240 | hi def link tcshHereDoc tcshSQuote |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 241 | hi def link tcshOperator Operator |
| 242 | hi def link tcshNumber Number |
| 243 | hi def link tcshArguement Special |
| 244 | hi def link tcshSpecial SpecialChar |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 245 | |
Bram Moolenaar | a7241f5 | 2008-06-24 20:39:31 +0000 | [diff] [blame] | 246 | let &cpo = s:oldcpo |
| 247 | unlet s:oldcpo |
| 248 | |
| 249 | let b:current_syntax = 'tcsh' |