diff options
| author | 2022-08-19 12:37:11 +0200 | |
|---|---|---|
| committer | 2022-08-19 12:37:18 +0200 | |
| commit | b1934f206b3590cf6c7436f50e2bf6dba653c04c (patch) | |
| tree | 29ac250f3a01b9897d0af9a025141e01613bf5a9 /misc | |
| parent | 29bc8fb426efabd942d229dc08b32e27bc925cb0 (diff) | |
fix vim syntax
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/cff.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/misc/cff.vim b/misc/cff.vim index 5c8b0d2..1c6ca50 100644 --- a/misc/cff.vim +++ b/misc/cff.vim @@ -20,7 +20,7 @@ syn keyword Operator alignof sizeof as and or offsetof syn match PreProc "#\i*\>" syn match PreProc "#?\>" -syn match PreProc "#'\k\+\>" +syn match PreProc "#'\k\+\>" syn region PreProc start="#\[" end="\]" extend syn case ignore @@ -30,9 +30,11 @@ syn match cNumber display contained "0x\x\+\%(\vu|u8|i8|u16|i32|u32|i64|u64|z|z syn match cFloat display contained "\d\+\.\d*\%(f\|f32\|f64\)\?\>" syn region String start=+"+ skip=+\\\\\|\\"+ end=+"+ extend -syn region Character start=+'+ skip=+\\\\\|\\'+ end=+'+ extend +syn match mCommentLabel contained "#'\k\+\>" +syn region Character start=+'+ skip=+\\\\\|\\'+ end=+'+ syn region Comment start="//" end="$" -syn region mComment start="#{" end="}" contains=mComment,mCommentBraces,String,Character +syn region mComment start="#{" end="}" contains=mComment,mCommentBraces,String,mCommentLabel,Character syn region mCommentBraces contained start=+[^'"#]{+ end="}" contains=mCommentBraces,String hi link mComment Comment hi link mCommentBraces Comment +hi link mCommentLabel Comment |