diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-05 17:54:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-05 17:54:07 +0000 |
commit | 9964e468c0209f6b8286e0b08109817c845a3079 (patch) | |
tree | 3c53288cff0d4c2e32169d8eb4cd53cc343ad0bc /runtime/syntax/tcsh.vim | |
parent | d5ab34bd5ecc748d5502f149c476968e5ec2b7c9 (diff) | |
download | vim-9964e468c0209f6b8286e0b08109817c845a3079.zip |
updated for version 7.1a
Diffstat (limited to 'runtime/syntax/tcsh.vim')
-rw-r--r-- | runtime/syntax/tcsh.vim | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/runtime/syntax/tcsh.vim b/runtime/syntax/tcsh.vim index 12411e89b..83649a751 100644 --- a/runtime/syntax/tcsh.vim +++ b/runtime/syntax/tcsh.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: C-shell (tcsh) -" Maintainor: Gautam Iyer <gautam@math.uchicago.edu> -" Last Modified: Sat 11 Mar 2006 11:16:47 AM CST +" Maintainer: Gautam Iyer <gi1242@users.sourceforge.net> +" Last Modified: Thu 16 Nov 2006 01:07:04 PM PST " " Description: We break up each statement into a "command" and an "end" part. " All groups are either a "command" or part of the "end" of a statement (ie @@ -48,9 +48,10 @@ syn keyword tcshSetEnv nextgroup=tcshEnvEnd setenv unsetenv syn region tcshEnvEnd contained transparent matchgroup=tcshBuiltins start='' skip="\\$" end="$\|;" contains=tcshEnvVar,@tcshStatementEnds " alias and unalias (contains special aliases) -syn keyword tcshAliases contained beemcmd cwdcmd jobcmd helpcommand periodic precmd postcmd shell -syn keyword tcshAlias nextgroup=tcshAliEnd alias unalias -syn region tcshAliEnd contained transparent matchgroup=tcshBuiltins start='' skip="\\$" end="$\|;" contains=tcshAliases,@tcshStatementEnds +syn keyword tcshAliases contained beepcmd cwdcmd jobcmd helpcommand periodic precmd postcmd shell +syn keyword tcshAlias nextgroup=tcshAliCmd skipwhite alias unalias +syn match tcshAliCmd contained nextgroup=tcshAliEnd skipwhite '\v[\w-]+' contains=tcshAliases +syn region tcshAliEnd contained transparent matchgroup=tcshBuiltins start='' skip="\\$" end="$\|;" contains=@tcshStatementEnds " if statements (contains expressions / operators) syn keyword tcshIf nextgroup=tcshIfEnd if @@ -72,10 +73,10 @@ syn match tcshExprEnd contained "\v.*$"hs=e+1 contains=tcshOperator,tcshNumber,@ syn match tcshExprEnd contained "\v.{-};"hs=e contains=tcshOperator,tcshNumber,@tcshVarList " ----- Comments: ----- -syn match tcshComment "#.*" contains=tcshTodo,tcshCommentTi,tcshCommentSp,@Spell -syn match tcshSharpBang "^#! .*$" +syn match tcshComment '#\s.*' contains=tcshTodo,tcshCommentTi,@Spell +syn match tcshComment '\v#($|\S.*)' contains=tcshTodo,tcshCommentTi +syn match tcshSharpBang '^#! .*$' syn match tcshCommentTi contained '\v#\s*\u\w*(\s+\u\w*)*:'hs=s+1 contains=tcshTodo -syn match tcshCommentSp contained '\v<\u{3,}>' contains=tcshTodo syn match tcshTodo contained '\v\c<todo>' " ----- Strings ----- @@ -152,6 +153,7 @@ hi def link tcshBuiltins statement hi def link tcshShellVar preproc hi def link tcshEnvVar tcshShellVar hi def link tcshAliases tcshShellVar +hi def link tcshAliCmd identifier hi def link tcshCommands identifier hi def link tcshSet tcshBuiltins hi def link tcshSetEnv tcshBuiltins @@ -165,7 +167,6 @@ hi def link tcshExprOp tcshOperator hi def link tcshExprEnd tcshOperator hi def link tcshComment comment hi def link tcshCommentTi preproc -hi def link tcshCommentSp tcshCommentTi hi def link tcshSharpBang tcshCommentTi hi def link tcshTodo todo hi def link tcshSQuote constant |