aboutsummaryrefslogtreecommitdiff
path: root/after/syntax
diff options
context:
space:
mode:
authorMax Christian Pohle2018-02-07 23:58:15 +0100
committerMax Christian Pohle2018-02-07 23:58:15 +0100
commit6a9632cbb7dc3267fd1743da40d2b0ab1c52917c (patch)
tree212e36c899e2a2009573dd9cf45f3130b19ba5eb /after/syntax
parent449c7d316d7176c0fe44bf570d18d013fe3f3272 (diff)
downloadvim-karlmarks-6a9632cbb7dc3267fd1743da40d2b0ab1c52917c.tar.bz2
vim-karlmarks-6a9632cbb7dc3267fd1743da40d2b0ab1c52917c.zip
Improved foldtext, removed default textwidth=120
Diffstat (limited to 'after/syntax')
-rw-r--r--after/syntax/c.vim7
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
8syntax match Define "\<[A-Z][A-Z0-9_]*\>" 8syntax match Define "\<[A-Z][A-Z0-9_]*\>"
9syntax match Todo "\/\/ @[A-Z]*\:.*$" 9" syntax match Todo "\/\/ @[A-Z]*\:.*$"
10syntax keyword Todo TODO contained
11syntax 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
12syn clear cBlock 15syn clear cBlock
13syn region cBlock start=/{/ end=/}/ transparent 16syn region cBlock start=/{/ end=/}/ transparent
14 17
15" multiple single line comments in a row 18" multiple single line comments in a row
16syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold 19syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold
..