On 2025-03-06 23:06, 'Dragan Simic' via vim_dev wrote:
Hello Christian,

On 2025-03-06 22:45, Christian Brabandt wrote:
On Thu, 06 Mar 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 rst files in the users' ~/.vimrc files, to allow the users to adjust that value in case syntax
highlighting stops working for some of the files they edit.

Thanks, I redirected this to
https://github.com/marshallward/vim-restructuredtext/issues/76

I am not sure if that repo is still actively maintained, so if there is no activity within the next month, feel free to nudge me to include this
directly into Vim.

Great, thanks!  I'll keep an eye on it, and will let you know.

Please see the attached patch as an attempt to provide a short addition
to the Vim documentation, which describes the rst_minlines variable. I'm
sorry for not including that already in my first patch.

--
--
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/413c600d0512a45ba57ee56e44f50f43%40manjaro.org.
From deec9be0424f87f7a6acc1beaa25dab73d73e6fb Mon Sep 17 00:00:00 2001
Message-Id: <deec9be0424f87f7a6acc1beaa25dab73d73e6fb.1741299608.git.dsi...@manjaro.org>
From: Dragan Simic <dsi...@manjaro.org>
Date: Thu, 6 Mar 2025 23:19:07 +0100
Subject: [PATCH] runtime(rst): Add documentation for rst_minlines variable

Briefly document the newly introduced rst_minlines variable.

Signed-off-by: Dragan Simic <dsi...@manjaro.org>
---
 runtime/doc/syntax.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index c4d7afc5fcae..ccde6647ec9d 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -3237,6 +3237,10 @@ the following extensions are recognized as rego files: .rego.
 
 RESTRUCTURED TEXT			*rst.vim* *ft-rst-syntax*
 
+ReStructured Text syntax highlighting language.  For syntax syncing, you can
+configure the following variable (default: 50): >
+	let rst_minlines = 50
+
 Syntax highlighting is enabled for code blocks within the document for a
 select number of file types.  See $VIMRUNTIME/syntax/rst.vim for the default
 syntax list.

Raspunde prin e-mail lui