@@ -382,17 +382,17 @@ if !exists("c_no_if0")
382
382
else
383
383
syn region cCppOutIf2 contained matchgroup =cCppOutWrapper start =" 0\+ " end =" ^\s *\( %:\| #\)\s *\( else\>\| elif\s\+\( 0\+\s *\( $\| //\| /\*\| &\)\)\@ !\| endif\>\) " me =s - 1 contains =cSpaceError,cCppOutSkip,@Spell
384
384
endif
385
- syn region cCppOutElse contained matchgroup =cCppOutWrapper start =" ^\s *\z s \ ( %:\| #\)\s *\( else\| elif\) " end =" ^\s *\z s \( %:\| #\)\s *endif\> " me =s - 1 contains =TOP,cPreCondit
385
+ syn region cCppOutElse contained matchgroup =cCppOutWrapper start =" ^\s *\( %:\| #\)\s *\( else\| elif\) " end =" ^\s *\( %:\| #\)\s *endif\> " me =s - 1 contains =TOP,cPreCondit
386
386
syn region cCppInWrapper start =" ^\s *\z s\( %:\| #\)\s *if\s\+ 0*[1-9]\d *\s *\( $\| //\| /\*\| |\) " end =" .\@ =\| $" contains =cCppInIf,cCppInElse fold
387
- syn region cCppInIf contained matchgroup =cCppInWrapper start =" \d\+ " end =" ^\s *\z s \ ( %:\| #\)\s *endif\> " contains =TOP,cPreCondit
387
+ syn region cCppInIf contained matchgroup =cCppInWrapper start =" \d\+ " end =" ^\s *\( %:\| #\)\s *endif\> " contains =TOP,cPreCondit
388
388
if ! exists (" c_no_if0_fold" )
389
- syn region cCppInElse contained start =" ^\s *\z s \ ( %:\| #\)\s *\( else\>\| elif\s\+\( 0*[1-9]\d *\s *\( $\| //\| /\*\| |\)\)\@ !\) " end =" .\@ =\| $" containedin =cCppInIf contains =cCppInElse2 fold
389
+ syn region cCppInElse contained start =" ^\s *\( %:\| #\)\s *\( else\>\| elif\s\+\( 0*[1-9]\d *\s *\( $\| //\| /\*\| |\)\)\@ !\) " end =" .\@ =\| $" containedin =cCppInIf contains =cCppInElse2 fold
390
390
else
391
- syn region cCppInElse contained start =" ^\s *\z s \ ( %:\| #\)\s *\( else\>\| elif\s\+\( 0*[1-9]\d *\s *\( $\| //\| /\*\| |\)\)\@ !\) " end =" .\@ =\| $" containedin =cCppInIf contains =cCppInElse2
391
+ syn region cCppInElse contained start =" ^\s *\( %:\| #\)\s *\( else\>\| elif\s\+\( 0*[1-9]\d *\s *\( $\| //\| /\*\| |\)\)\@ !\) " end =" .\@ =\| $" containedin =cCppInIf contains =cCppInElse2
392
392
endif
393
- syn region cCppInElse2 contained matchgroup =cCppInWrapper start =" ^\s *\z s \ ( %:\| #\)\s *\( else\| elif\)\( [^/]\| /[^/*]\) *" end =" ^\s *\z s \( %:\| #\)\s *endif\> " me =s - 1 contains =cSpaceError,cCppOutSkip,@Spell
394
- syn region cCppOutSkip contained start =" ^\s *\z s \ ( %:\| #\)\s *\( if\>\| ifdef\>\| ifndef\>\) " skip =" \\ $" end =" ^\s *\z s \( %:\| #\)\s *endif\> " contains =cSpaceError,cCppOutSkip
395
- syn region cCppInSkip contained matchgroup =cCppInWrapper start =" ^\s *\z s \ ( %:\| #\)\s *\( if\s\+\(\d\+\s *\( $\| //\| /\*\| |\| &\)\)\@ !\| ifdef\>\| ifndef\>\) " skip =" \\ $" end =" ^\s *\z s \( %:\| #\)\s *endif\> " containedin =cCppOutElse,cCppInIf,cCppInSkip contains =TOP,cPreProc
393
+ syn region cCppInElse2 contained matchgroup =cCppInWrapper start =" ^\s *\( %:\| #\)\s *\( else\| elif\)\( [^/]\| /[^/*]\) *" end =" ^\s *\( %:\| #\)\s *endif\> " me =s - 1 contains =cSpaceError,cCppOutSkip,@Spell
394
+ syn region cCppOutSkip contained start =" ^\s *\( %:\| #\)\s *\( if\>\| ifdef\>\| ifndef\>\) " skip =" \\ $" end =" ^\s *\( %:\| #\)\s *endif\> " contains =cSpaceError,cCppOutSkip
395
+ syn region cCppInSkip contained matchgroup =cCppInWrapper start =" ^\s *\( %:\| #\)\s *\( if\s\+\(\d\+\s *\( $\| //\| /\*\| |\| &\)\)\@ !\| ifdef\>\| ifndef\>\) " skip =" \\ $" end =" ^\s *\( %:\| #\)\s *endif\> " containedin =cCppOutElse,cCppInIf,cCppInSkip contains =TOP,cPreProc
396
396
endif
397
397
syn region cIncluded display contained start =+ "+ skip =+ \\\\\|\\ "+ end =+ "+
398
398
syn match cIncluded display contained " <[^>]*>"
0 commit comments