Hello Christian,
On 2025-01-20 23:16, Christian Brabandt wrote:
On Mon, 20 Jan 2025, Dragan Simic wrote:
If I may notice, I'm not really sure that the final form [1] of the
code
will work as expected, because I think that the "syntax sync
minlines=..."
should be executed much later in syntax/kconfig.vim, i.e. the way I
did
it originally. [2]
To clarify, I originally tried executing "syntax sync minlines=..."
earlier
in syntax/kconfig.vim while setting "kconfig_minlines" to 300 in my
~/.vimrc,
and it failed to work as expected with a troublesome Kconfig file,
which is
why I moved the execution much later in syntax/kconfig.vim.
[1]
https://github.com/chrisbra/vim-kconfig/commit/57cca8215ec067506dd5b49ae1ee37eca39a83ab
[2]
https://github.com/chrisbra/vim-kconfig/commit/ad5151e624d6543a4451de309736f3e061b584d9
Can you verify if this works or not? I put it to the top, because you
placed it at the else part of the heavy_syntax config variable
condition
(and the whole if-condition confused me quite a bit) and it would
therefore only be effective when the heavy_syntax var wasn't set.
But I don't use Kconfig files at all. So please run in a Kconfig buffer
:syn sync
and vim should output the current setting.
Oh, I see now. Before these changes, "syntax sync minlines=..." was
actually misplaced a bit, and I indeed misplaced my changes. I'm sorry
for that, perhaps I wasn't aware I was tired a bit.
I checked your version [1] with the original troublesome Kconfig file
and it works as expected. Thanks once again for following this through!
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/da48f20e990163923e5a454ed459c21b%40manjaro.org.