On 2025-01-20 21:26, 'Dragan Simic' via vim_dev wrote:
On 2025-01-20 20:30, Christian Brabandt wrote:
On Sun, 19 Jan 2025, 'Dragan Simic' via vim_dev wrote:

Following the approach used in other syntax definitions, add support for defining the "syntax sync minlines=..." values for kconfig files in users' ~/.vimrc files, to allow the users to adjust that value in case syntax
highlighting stops working for some of the files they edit.

Signed-off-by: Dragan Simic <dsi...@manjaro.org>
---
 runtime/syntax/kconfig.vim | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

[...]
 " Repository:             https://github.com/chrisbra/vim-kconfig

Technically, patches should go via the upstream repo first. I have
included your change to the upstream repo and will be pushing an update
to the Vim repo in a few minutes.

Thanks a lot for picking my patch and following it through.  I saw that
the upstream repository was mentioned in syntax/kconfig.vim, but I also
can't use GitHub at the moment, so I opted to effectively "abuse" the
vim-dev mailing list a bit.

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

--
--
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/0dd8b8e381b133933720108692959bf3%40manjaro.org.

Raspunde prin e-mail lui