From e833449250e82ce7161fb312bef9fce594619337 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 27 Feb 2018 09:44:08 +0100 Subject: Fixed syntax of C comments --- after/syntax/c.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'after') 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 " 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 clear cComment syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold - - +syn region cComment start="\/\*" end="\*\/" +syn region Folded start="^\/\*" end="\*\/" fold " let b:current_syntax = "c" -- cgit v1.2.3