From 6a9632cbb7dc3267fd1743da40d2b0ab1c52917c Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 7 Feb 2018 23:58:15 +0100 Subject: Improved foldtext, removed default textwidth=120 --- after/syntax/c.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'after') 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 " syn clear cStructure " highlight! link defines Special syntax match Define "\<[A-Z][A-Z0-9_]*\>" -syntax match Todo "\/\/ @[A-Z]*\:.*$" +" syntax match Todo "\/\/ @[A-Z]*\:.*$" +syntax keyword Todo TODO contained +syntax match Comment "//.*" contains=Todo + " clear default group for a cBlock so we can redefine it without the fold option syn clear cBlock -syn region cBlock start=/{/ end=/}/ transparent +syn region cBlock start=/{/ end=/}/ transparent " multiple single line comments in a row syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold -- cgit v1.2.3