diff options
author | Max Christian Pohle | 2018-05-17 00:58:44 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-05-17 00:58:44 +0200 |
commit | 588ce387a75fdf8122e38f555f532d10bce35904 (patch) | |
tree | 0db77b263dc8d341548a37de626e6734a35d89f3 /after | |
parent | 104b19d4703879904dffb10c5f7b019e6c297683 (diff) | |
download | vim-588ce387a75fdf8122e38f555f532d10bce35904.tar.bz2 vim-588ce387a75fdf8122e38f555f532d10bce35904.zip |
Fixed code folding for C comments, added spell checking
Diffstat (limited to 'after')
-rw-r--r-- | after/syntax/c.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index c7a9bc0..cdbdc54 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim | |||
@@ -16,10 +16,10 @@ syn clear cBlock | |||
16 | syn region cBlock start=/{/ end=/}/ transparent | 16 | syn region cBlock start=/{/ end=/}/ transparent |
17 | 17 | ||
18 | " multiple single line comments in a row | 18 | " multiple single line comments in a row |
19 | " syn clear cComment | 19 | syn clear cComment |
20 | " syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold | 20 | syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold contains=@spell |
21 | " syn region cComment start="\/\*" end="\*\/" | 21 | syn region cComment start="\/\*" end="\*\/" |
22 | " syn region Folded start="^\/\*" end="\*\/" fold | 22 | syn region Folded start="^\/\*" end="\*\/" fold contains=@spell |
23 | 23 | ||
24 | 24 | ||
25 | " let b:current_syntax = "c" | 25 | " let b:current_syntax = "c" |