diff options
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/c.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index ca694a2..0fa1fda 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim | |||
@@ -6,11 +6,14 @@ set foldmethod=syntax | |||
6 | " syn clear cStructure | 6 | " syn clear cStructure |
7 | " highlight! link defines Special | 7 | " highlight! link defines Special |
8 | syntax match Define "\<[A-Z][A-Z0-9_]*\>" | 8 | syntax match Define "\<[A-Z][A-Z0-9_]*\>" |
9 | syntax match Todo "\/\/ @[A-Z]*\:.*$" | 9 | " syntax match Todo "\/\/ @[A-Z]*\:.*$" |
10 | syntax keyword Todo TODO contained | ||
11 | syntax match Comment "//.*" contains=Todo | ||
12 | |||
10 | 13 | ||
11 | " clear default group for a cBlock so we can redefine it without the fold option | 14 | " clear default group for a cBlock so we can redefine it without the fold option |
12 | syn clear cBlock | 15 | syn clear cBlock |
13 | syn region cBlock start=/{/ end=/}/ transparent | 16 | syn region cBlock start=/{/ end=/}/ transparent |
14 | 17 | ||
15 | " multiple single line comments in a row | 18 | " multiple single line comments in a row |
16 | syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold | 19 | syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold |