mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 10:21:26 +10:00
vim-patch:9.2.0007: cindent: recognizing labels within commented lines
Problem: Comment lines which start like a label are recognized as a
label and indented based on that.
Solution: Check if the position is in a comment after recognizing a label
in cin_islabel (Anttoni Erkkilä)
closes: vim/vim#19397
9af18686c7
Co-authored-by: Anttoni Erkkilä <anttoni.erkkila@protonmail.com>
This commit is contained in:
@@ -1127,6 +1127,12 @@ func Test_cindent_1()
|
||||
a();
|
||||
}
|
||||
|
||||
void func() {
|
||||
/* aaaaaa
|
||||
bbbbb:
|
||||
ccccccc */
|
||||
}
|
||||
|
||||
/* end of AUTO */
|
||||
[CODE]
|
||||
|
||||
@@ -2130,6 +2136,12 @@ func Test_cindent_1()
|
||||
a();
|
||||
}
|
||||
|
||||
void func() {
|
||||
/* aaaaaa
|
||||
bbbbb:
|
||||
ccccccc */
|
||||
}
|
||||
|
||||
/* end of AUTO */
|
||||
|
||||
[CODE]
|
||||
|
||||
Reference in New Issue
Block a user