From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 03 20:21:33 2023 Received: (at submit) by debbugs.gnu.org; 4 Feb 2023 01:21:33 +0000 Received: from localhost ([127.0.0.1]:40249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pO7FE-0003mL-Ly for submit@debbugs.gnu.org; Fri, 03 Feb 2023 20:21:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:39206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pO7FB-0003mC-Em for submit@debbugs.gnu.org; Fri, 03 Feb 2023 20:21:31 -0500 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 1pO7FB-00079t-4G for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 20:21:29 -0500 Received: from out203-205-221-155.mail.qq.com ([203.205.221.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pO7F5-00074U-5k for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 20:21:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1675473675; bh=JWqugOhA26dCIcc0VGOyunZHqNFLTz+cCQqJioXMHLI=; h=From:To:Subject:Date; b=ze3OfSwP4QrKq3HBy9DHb4+2MxIds3ecqk4CaCqPx7ytSCtmWmUo1i8xXuvrMENS8 YFNHZ2oXriIdcys/e0qF5v9uYm3VSyne8UO1hOhr1oGHDdF61XpTp8Vz510xt/oUbi r+gDKsqtjJplpHbxknCWNXkqZ719sWwM0GwK8fck= Received: from MacBook ([101.85.10.85]) by newxmesmtplogicsvrszc2-0.qq.com (NewEsmtp) with SMTP id 5052D2EB; Sat, 04 Feb 2023 09:20:05 +0800 X-QQ-mid: xmsmtpt1675473605tkmhmv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ason Huang To: bug-gnu-emacs@gnu.org Subject: 29.0.60; wrong indentation will break the highlight on yaml-ts-mode Date: Sat, 04 Feb 2023 09:20:00 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=203.205.221.155; envelope-from=aqua0210@foxmail.com; helo=out203-205-221-155.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) 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. -- Eason Huang In GNU Emacs 29.0.60 (build 1, x86_64-apple-darwin22.2.0, NS appkit-2299.30 Version 13.1 (Build 22C65)) of 2023-02-04 built on MacBook Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.1 Configured using: 'configure --without-native-compilation --without-dbus 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc12 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (vc-git diff-mode easy-mmode vc-dispatcher help-mode pp shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils yaml-ts-mode treesit cl-seq cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 50954 12123) (symbols 48 5983 4) (strings 32 16445 2155) (string-bytes 1 475645) (vectors 16 12263) (vector-slots 8 181458 14500) (floats 8 29 259) (intervals 56 569 31) (buffers 984 14)) -- Eason Huang From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 08:33:45 2023 Received: (at 61260-done) by debbugs.gnu.org; 8 Feb 2023 13:33:45 +0000 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 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 Date: Wed, 08 Feb 2023 13:33:18 +0000 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== To: Eason Huang From: Randy Taylor Subject: Re: bug#61260: 29.0.60; wrong indentation will break the highlight on yaml-ts-mode Message-ID: Feedback-ID: 44397038:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 61260-done Cc: "61260-done@debbugs.gnu.org" <61260-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From unknown Tue Aug 19 23:13:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Mar 2023 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator