Mercurial > vim
comparison runtime/syntax/c.vim @ 140:8ecb0db93e9a
updated for version 7.0045
author | vimboss |
---|---|
date | Thu, 27 Jan 2005 14:41:15 +0000 |
parents | 125e80798a85 |
children | 7033303ea0c0 |
comparison
equal
deleted
inserted
replaced
139:a217baa06d43 | 140:8ecb0db93e9a |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: C | 2 " Language: C |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2004 Dec 09 | 4 " Last Change: 2005 Jan 26 |
5 | 5 |
6 " For version 5.x: Clear all syntax items | 6 " For version 5.x: Clear all syntax items |
7 " For version 6.x: Quit when a syntax file was already loaded | 7 " For version 6.x: Quit when a syntax file was already loaded |
8 if version < 600 | 8 if version < 600 |
9 syntax clear | 9 syntax clear |
65 | 65 |
66 "catch errors caused by wrong parenthesis and brackets | 66 "catch errors caused by wrong parenthesis and brackets |
67 " also accept <% for {, %> for }, <: for [ and :> for ] (C99) | 67 " also accept <% for {, %> for }, <: for [ and :> for ] (C99) |
68 " But avoid matching <::. | 68 " But avoid matching <::. |
69 syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cCommentSkip,cOctalZero,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom | 69 syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cCommentSkip,cOctalZero,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom |
70 if exists("c_no_bracket_error") | 70 if exists("c_no_curly_error") |
71 syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell | |
72 " cCppParen: same as cParen but ends at end-of-line; used in cDefine | |
73 syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell | |
74 syn match cParenError display ")" | |
75 syn match cErrInParen display contained "^[{}]\|^<%\|^%>" | |
76 elseif exists("c_no_bracket_error") | |
71 syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell | 77 syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell |
72 " cCppParen: same as cParen but ends at end-of-line; used in cDefine | 78 " cCppParen: same as cParen but ends at end-of-line; used in cDefine |
73 syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell | 79 syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell |
74 syn match cParenError display ")" | 80 syn match cParenError display ")" |
75 syn match cErrInParen display contained "[{}]\|<%\|%>" | 81 syn match cErrInParen display contained "[{}]\|<%\|%>" |