Friday, December 9, 2022

Re: Vim spell indentation issue

On Fri, Dec 9, 2022 at 12:40 PM Mohit Agarwal <mohit@ubikom.cc> wrote:
>
> Hi,
>
> I've seen the following issue with Vim spell on multiple installs.
> In a markdown file, the spelling error in the second line is not
> recognised here:
>
> - The quick bron fox jumps over the lazy dog. The quick bron
> fox jumps over the lazy dog. The quick bron fox jumps over
>
> But it is recognised when that line is not indented here:
>
> - The quick bron fox jumps over the lazy dog. The quick bron
> fox jumps over the lazy dog. The quick bron fox jumps over the lazy
>
> I have tried to attatch a screenshot which shows this issue. I have no
> idea what could be going on.
>
> Mohit.

This seems to be because the second line gets categorized as a code
block. I checked the markdown syntax file - and this is what I see:

syn region markdownCodeBlock start=" \|\t" end="$" contained

Changing it to:

syn region markdownCodeBlock start="^\n\( \|\t\)" end="$" contained

...seems to fix the issue.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAPa-eGZU3R8-2eRG3ukVxXjfTrkpUfxAZWnv8e2uX73qgRJ-OQ%40mail.gmail.com.

No comments:

Post a Comment