From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.bugs 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 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1419"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "61260-done@debbugs.gnu.org" <61260-done@debbugs.gnu.org> To: Eason Huang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 08 14:34:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPkai-00007c-5g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 14:34:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPkaS-0006jS-Up; Wed, 08 Feb 2023 08:34:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPkaJ-0006dp-44 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 08:34:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPkaI-000295-MH for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 08:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPkaI-0005xv-Dt for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 08:34:02 -0500 In-Reply-To: Resent-From: Randy Taylor Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2023 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61260 X-GNU-PR-Package: emacs Mail-Followup-To: 61260@debbugs.gnu.org, dev@rjt.dev, aqua0210@foxmail.com Original-Received: via spool by 61260-done@debbugs.gnu.org id=D61260.167586322522898 (code D ref 61260); Wed, 08 Feb 2023 13:34:02 +0000 Original-Received: (at 61260-done) by debbugs.gnu.org; 8 Feb 2023 13:33:45 +0000 Original-Received: from localhost ([127.0.0.1]:55071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPkZy-0005xB-RT for submit@debbugs.gnu.org; Wed, 08 Feb 2023 08:33:45 -0500 Original-Received: from mail-40136.proton.ch ([185.70.40.136]:31815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPkZt-0005wq-8Q for 61260-done@debbugs.gnu.org; Wed, 08 Feb 2023 08:33:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1675863210; x=1676122410; bh=PJEdEiVD3AWOt73QqpJTVkoSOdkmXDrQzeXz+xamqrA=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=c1X5pXxm9203VotaZ2p5yAKWXvh0xNQbOyeJ3DuMt2uOT7vVviiqvA0wnYO5McH24 kvlQkfq7NF9Q/zU4NbkGwPZf54f9JhxJodPrZdCXyK3Gq4duUS6ko01DwQ7VWty7pe lz5ZF7t5v+tR5i+9tqtBZkix+u5kFdKcGlEhGOf3sk8frqcPPQ0flZ+skUYwFMaWci RO0ERcHBoVsjo3Yk7uJSa4QLoPS/KB/QZs8XuOKwScEUU7riiI9A+APr0PJtw2bKrd 6anQZPr3pc6otM8pFrjXxbgvAEC0aAXuCtadYkVq+iZJC3x+HB2PvWMKQOIwTaPG7r YIFeAhMdAZafw== Feedback-ID: 44397038:user:proton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255127 Archived-At: On Friday, February 3rd, 2023 at 20:20, Eason Huang = wrote: >=20 > Hi Emacs dev team, >=20 > 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. >=20 > Steps to reproduce: >=20 > 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 o= f > two spaces. Now the hightlight of line 3 and line 4 will be break > `values: a: 10 b: 20 c: 30` >=20 > 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.