diff options
| author | 2022-08-14 07:30:39 +0200 | |
|---|---|---|
| committer | 2022-08-14 07:30:39 +0200 | |
| commit | 66ed623e65ab9350f08061fe7cf12b989c84f65c (patch) | |
| tree | 7c8fef7fc27dd331662faca230c460486020783f /misc | |
| parent | d1aaf316dc7ca6ea208eec8ab43eb64936829675 (diff) | |
better comment syntax
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/cff.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/cff.vim b/misc/cff.vim index 3e0b3b8..49ab137 100644 --- a/misc/cff.vim +++ b/misc/cff.vim @@ -31,6 +31,6 @@ 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 region Comment start="//" end="$" -syn region mComment start="#!{" end="}" contains=mComment,mCommentBraces,String,Character -syn region mCommentBraces contained start=+[^'"!]{+ end="}" contains=mCommentBraces,String +syn region mComment start="#{" end="}" contains=mComment,mCommentBraces,String,Character +syn region mCommentBraces contained start=+[^'"#]{+ end="}" contains=mCommentBraces,String hi link mComment Comment |