diff options
author | Max Christian Pohle | 2018-02-27 09:44:08 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-02-27 09:44:08 +0100 |
commit | e833449250e82ce7161fb312bef9fce594619337 (patch) | |
tree | 68e03f02a2e2a8917b2aceb4bc7f03957636ba48 /after | |
parent | e9240eed645370fca1a5cdec19076d1374e9d86d (diff) | |
download | vim-karlmarks-e833449250e82ce7161fb312bef9fce594619337.tar.bz2 vim-karlmarks-e833449250e82ce7161fb312bef9fce594619337.zip |
Fixed syntax of C comments
Diffstat (limited to 'after')
-rw-r--r-- | after/syntax/c.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 0fa1fda..d08eabd 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim | |||
@@ -13,12 +13,13 @@ syntax match Comment "//.*" contains=Todo | |||
13 | 13 | ||
14 | " 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 |
15 | syn clear cBlock | 15 | syn clear cBlock |
16 | syn region cBlock start=/{/ end=/}/ transparent | 16 | syn region cBlock start=/{/ end=/}/ transparent |
17 | 17 | ||
18 | " multiple single line comments in a row | 18 | " multiple single line comments in a row |
19 | syn clear cComment | ||
19 | syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold | 20 | syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold |
20 | 21 | syn region cComment start="\/\*" end="\*\/" | |
21 | 22 | syn region Folded start="^\/\*" end="\*\/" fold | |
22 | 23 | ||
23 | 24 | ||
24 | " let b:current_syntax = "c" | 25 | " let b:current_syntax = "c" |