Shougo / dpp.vim

Dark powered plugin manager for Vim/neovim
MIT License
128 stars 5 forks source link

Fix counting of nested marker #26

Closed kurokoji closed 1 month ago

kurokoji commented 1 month ago

Fixed a bug that “comment2” was treated as a ftplugin when parsing the code shown below, because the first marker was not counted up.

" hook_add {{{
" comment1 {{{
" }}}

" comment2 {{{
" }}}
" }}}
Shougo commented 1 month ago

OK. I will check it.

Shougo commented 1 month ago

I have added your test, but it seems same result. Please check.

https://github.com/Shougo/dpp.vim/commit/a835f54247acaf62a764b25bea192314e33b64c7

Shougo commented 1 month ago

You can test my test code in the previous commit. No error.

Why?

kurokoji commented 1 month ago

Oh, sorry. The actual hooks_file that is not working correctly is the code below. It should parse fine with this fix.

" hook_source {{{
poyo
" }}}

" hook_add {{{
" comment1 {{{
hoge
" }}}

" comment2 {{{
fuga
" }}}
" }}}
Shougo commented 1 month ago

I have updated the tests. Thanks.