From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#61260: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14149"; mail-complaints-to="usenet@ciao.gmane.io" To: 61260@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 04 02:22: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 1pO7G6-0003TU-GH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 02:22:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pO7Fj-0007Er-Vk; Fri, 03 Feb 2023 20:22:04 -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 1pO7Fj-0007Ej-17 for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 20:22:03 -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 1pO7Fi-0007Mn-Pk for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 20:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pO7Fi-0003nG-7g for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 20:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Feb 2023 01:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61260 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167547369314533 (code B ref -1); Sat, 04 Feb 2023 01:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2023 01:21:33 +0000 Original-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 Original-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 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 1pO7FB-00079t-4G for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 20:21:29 -0500 Original-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= Original-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: xmsmtpt1675473605tkmhmv346 X-QQ-XMAILINFO: McbooTuyDvAJ39bVdM2ABftvwVtXurAp1JqwQd0potox5oY+YK9BE7UbevAjAy 1yKku9+soyCoI/lLr5KYOak20RaE2BkzKRgdpUqclKfefEZae5CSo73hTyGhNbz1BaqZ5kQpFhc8 edYzGYvY75rsjQIJFWJMOMbtUTIHhopVtnqp4tjiJ5AVrANCpyrZqglL7XsYBsWcjk0+sifLyBSM h5cgT7S6kOJMZIXkgjKNHlO3L0J2mkDdGnxT58vgFvx8Do4rLO6dN6XLPrHYCQP6A/ePG2H+2pNo aBvM5TEqaH6M+WsaBriQ+naqZwnm//8OIiNbqvSJmVC74ZhItm6YRJhH8oIl0kq2NSmLMRWCqmYs 5NIRI754t8RxAVVO7o1oLL3HrjqzmreU06FAZlp5Pef3bfrD37lQlqm7kZ2kP1eaLulnNKY0G+s+ pyWsNpbHuQ5Oc9qwcDamR8oRHDSekJbNqBLd8W57LG4hxsYfZmACQ5V5KyRuuJ1RvLEZ/Q1Jgez3 xRdj4ObDozb9GXAaTX1TS566PPOA/XTorjmgdCZDEzfWV1h/XxZPIajDa8M8UtmmCGiDw9zgfiN6 ILk3RBVNZmmvgPOwLSHfFc75cfrq+3tDShwqsBw9YJQhryOFdhf2ga1cB96ag9ujHHTZsDYQ5tdk roq4N3Mkg6fy6ZUJsUgJJrwci64wKyAfSK3ZBEaV6Zq5qr5Bpv+UACfyeijBdBR70CIOpJQw1MbO L2dZLhAQoShdD5H8/a+tRHiG/QUxbqSkAQB4Lw6IuTZW9/Camk/Kb9C1LPGnNEjKwqB4RpDFgLoX LjsB3pSrHtiyQIaZncb3y4lGN4F/bhJuWQ6epIVc Original-Message-ID: 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-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:254746 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