Skip to content

Commit fd95282

Browse files
committed
Merge vim/runtime/syntax/c.vim
1 parent b52c13a commit fd95282

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

syntax/c.vim

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: C
33
" Maintainer: Bram Moolenaar <Bram@vim.org>
4-
" Last Change: 2021 Jan 11
4+
" Last Change: 2021 May 24
55

66
" Quit when a (custom) syntax file was already loaded
77
if exists("b:current_syntax")
@@ -414,6 +414,9 @@ if exists("c_autodoc")
414414
syn cluster cPreProcGroup add=cAutodocReal
415415
endif
416416

417+
" be able to fold #pragma regions
418+
syn region cPragma start="^\s*#pragma\s\+region\>" end="^\s*#pragma\s\+endregion\>" transparent keepend extend fold
419+
417420
" Highlight User Labels
418421
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cCppParen,cCppBracket,cCppString
419422
if s:ft ==# 'c' || exists("cpp_no_cpp11")

0 commit comments

Comments
 (0)