diff options
author | Max Christian Pohle | 2018-02-07 23:58:15 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-02-07 23:58:15 +0100 |
commit | 6a9632cbb7dc3267fd1743da40d2b0ab1c52917c (patch) | |
tree | 212e36c899e2a2009573dd9cf45f3130b19ba5eb /after | |
parent | 449c7d316d7176c0fe44bf570d18d013fe3f3272 (diff) | |
download | vim-karlmarks-6a9632cbb7dc3267fd1743da40d2b0ab1c52917c.tar.bz2 vim-karlmarks-6a9632cbb7dc3267fd1743da40d2b0ab1c52917c.zip |
Improved foldtext, removed default textwidth=120
Diffstat (limited to 'after')
-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 |