Mercurial > vim
comparison runtime/syntax/csh.vim @ 1121:e63691e7c504
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 17:54:07 +0000 |
parents | a1059cda45f2 |
children | b3bc99b909c3 |
comparison
equal
deleted
inserted
replaced
1120:e6db096b07a1 | 1121:e63691e7c504 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: C-shell (csh) | 2 " Language: C-shell (csh) |
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz> | 3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz> |
4 " Version: 9 | 4 " Version: 10 |
5 " Last Change: Sep 06, 2005 | 5 " Last Change: Sep 11, 2006 |
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax | 6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " For version 5.x: Clear all syntax items |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 " For version 6.x: Quit when a syntax file was already loaded |
10 if version < 600 | 10 if version < 600 |
33 " Strings and Comments | 33 " Strings and Comments |
34 syn match cshNoEndlineDQ contained "[^\"]\(\\\\\)*$" | 34 syn match cshNoEndlineDQ contained "[^\"]\(\\\\\)*$" |
35 syn match cshNoEndlineSQ contained "[^\']\(\\\\\)*$" | 35 syn match cshNoEndlineSQ contained "[^\']\(\\\\\)*$" |
36 syn match cshNoEndlineBQ contained "[^\`]\(\\\\\)*$" | 36 syn match cshNoEndlineBQ contained "[^\`]\(\\\\\)*$" |
37 | 37 |
38 syn region cshDblQuote start=+[^\\]"+lc=1 skip=+\\\\\|\\"+ end=+"+ contains=cshSpecial,cshShellVariables,cshExtVar,cshSelector,cshQtyWord,cshArgv,cshSubst,cshNoEndlineDQ,cshBckQuote | 38 syn region cshDblQuote start=+[^\\]"+lc=1 skip=+\\\\\|\\"+ end=+"+ contains=cshSpecial,cshShellVariables,cshExtVar,cshSelector,cshQtyWord,cshArgv,cshSubst,cshNoEndlineDQ,cshBckQuote,@Spell |
39 syn region cshSnglQuote start=+[^\\]'+lc=1 skip=+\\\\\|\\'+ end=+'+ contains=cshNoEndlineSQ | 39 syn region cshSnglQuote start=+[^\\]'+lc=1 skip=+\\\\\|\\'+ end=+'+ contains=cshNoEndlineSQ,@Spell |
40 syn region cshBckQuote start=+[^\\]`+lc=1 skip=+\\\\\|\\`+ end=+`+ contains=cshNoEndlineBQ | 40 syn region cshBckQuote start=+[^\\]`+lc=1 skip=+\\\\\|\\`+ end=+`+ contains=cshNoEndlineBQ,@Spell |
41 syn region cshDblQuote start=+^"+ skip=+\\\\\|\\"+ end=+"+ contains=cshSpecial,cshExtVar,cshSelector,cshQtyWord,cshArgv,cshSubst,cshNoEndlineDQ | 41 syn region cshDblQuote start=+^"+ skip=+\\\\\|\\"+ end=+"+ contains=cshSpecial,cshExtVar,cshSelector,cshQtyWord,cshArgv,cshSubst,cshNoEndlineDQ,@Spell |
42 syn region cshSnglQuote start=+^'+ skip=+\\\\\|\\'+ end=+'+ contains=cshNoEndlineSQ | 42 syn region cshSnglQuote start=+^'+ skip=+\\\\\|\\'+ end=+'+ contains=cshNoEndlineSQ,@Spell |
43 syn region cshBckQuote start=+^`+ skip=+\\\\\|\\`+ end=+`+ contains=cshNoEndlineBQ | 43 syn region cshBckQuote start=+^`+ skip=+\\\\\|\\`+ end=+`+ contains=cshNoEndlineBQ,@Spell |
44 syn cluster cshCommentGroup contains=cshTodo,@Spell | 44 syn cluster cshCommentGroup contains=cshTodo,@Spell |
45 syn match cshComment "#.*$" contains=@cshCommentGroup | 45 syn match cshComment "#.*$" contains=@cshCommentGroup |
46 | 46 |
47 " A bunch of useful csh keywords | 47 " A bunch of useful csh keywords |
48 syn keyword cshStatement alias end history onintr setenv unalias | 48 syn keyword cshStatement alias end history onintr setenv unalias |