unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Randy Taylor <dev@rjt.dev>
To: Eason Huang <aqua0210@foxmail.com>
Cc: "61260-done@debbugs.gnu.org" <61260-done@debbugs.gnu.org>
Subject: bug#61260: 29.0.60; wrong indentation will break the highlight on yaml-ts-mode
Date: Wed, 08 Feb 2023 13:33:18 +0000	[thread overview]
Message-ID: <D6EzyJNf35UgDAi9sXGnVM2rmtbYSQw5X_3_GfNIkTS3BuN44iGuds2QRVhGnrVklobOyTNlJgn48mykH01Qm8KN14xfqMwNylCWMJyCHZc=@rjt.dev> (raw)
In-Reply-To: <m2k00y9qgv.fsf@foxmail.com>

On Friday, February 3rd, 2023 at 20:20, Eason Huang <aqua0210@foxmail.com> wrote:
> 
> Hi Emacs dev team,
> 
> I found that when editing yaml file with yaml-ts-mode, the buffer
> highlight will be break when the indentation of current line is wrong.
> 
> Steps to reproduce:
> 
> 1. Start Emacs with `emacs -Q`
> 2. Open any a yaml file, such as `C-x, C-f ~/test.yaml`
> 3. M-x yaml-ts-mode, enable the yaml-ts-mode on test.yaml buffer
> 4. input the code below in the test.yaml buffer
> `values: a: 10 b: 20 c: 30`
> 5. so far so good.
> 6. if the line 2 have a wrong indentation, such as four spaces in stead of
> two spaces. Now the hightlight of line 3 and line 4 will be break
> `values: a: 10 b: 20 c: 30`
> 
> The commit I built Emacs is f25c15ceb7d from emacs-29 branch.

Hi, and thanks for the report.

This is because the second incantation:
```
values:
    a: 10
  b: 20
  c: 30
```

is not valid YAML, and the parser reports an error.

Therefore I'm closing this bug since I don't think there's anything we can do here.





       reply	other threads:[~2023-02-08 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2k00y9qgv.fsf@foxmail.com>
2023-02-08 13:33 ` Randy Taylor [this message]
2023-02-04  1:20 bug#61260: 29.0.60; wrong indentation will break the highlight on yaml-ts-mode Eason Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='D6EzyJNf35UgDAi9sXGnVM2rmtbYSQw5X_3_GfNIkTS3BuN44iGuds2QRVhGnrVklobOyTNlJgn48mykH01Qm8KN14xfqMwNylCWMJyCHZc=@rjt.dev' \
    --to=dev@rjt.dev \
    --cc=61260-done@debbugs.gnu.org \
    --cc=aqua0210@foxmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).