blob: c7a9bc07e91ee459c6257ba66162f4983b629099 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
set number
set foldenable
set foldmethod=syntax
" syntax match cType "struct\s+[A-Za-z0-9_]+\>"
" syn clear cStructure
" highlight! link defines Special
syntax match Define "\<[A-Z][A-Z0-9_]*\>"
" 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
" 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"
" let g:polyglot_disabled = ['c/c++']
" unlet s:ft
" let &cpo = s:cpo_save
" unlet s:cpo_save
|