From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70367: 30.0.50; Inconsistent Syntax Highlighting Date: Sat, 13 Apr 2024 20:44:37 +0300 Message-ID: <86r0f9nomy.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23479"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70367@debbugs.gnu.org To: Amol Surati Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 13 19:46:08 2024 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 1rvhS4-0005rg-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Apr 2024 19:46:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvhRt-0002sX-Jm; Sat, 13 Apr 2024 13:45:57 -0400 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 1rvhRq-0002rX-U2 for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 13:45:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvhRq-0006LX-I3 for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 13:45:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvhS0-0007YW-M3 for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 13:46:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Apr 2024 17:46:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70367 X-GNU-PR-Package: emacs Original-Received: via spool by 70367-submit@debbugs.gnu.org id=B70367.171303031128541 (code B ref 70367); Sat, 13 Apr 2024 17:46:04 +0000 Original-Received: (at 70367) by debbugs.gnu.org; 13 Apr 2024 17:45:11 +0000 Original-Received: from localhost ([127.0.0.1]:33745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvhR6-0007Pm-4Q for submit@debbugs.gnu.org; Sat, 13 Apr 2024 13:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvhQw-0007Mc-Q1 for 70367@debbugs.gnu.org; Sat, 13 Apr 2024 13:45:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvhQf-0005yK-JH; Sat, 13 Apr 2024 13:44:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=unmB7bZ9qcVdCUEOlgn5Hug9NDfMIgnHxoI4APfAil0=; b=ZjVREp9IaV7p ilzCP+GZ7L+9QQDemZHPzcALh5qj8VBZkSQ8YGzrk5fEBHok/n7v0oW1W4EqvspZwtK0S/nTF7ese 1RsOF1FYLnZHK+PjPhDHriO0OgiJ4rL+n5st84JMOHFcBEUX4URv1prylDg1/6L5pA65MwTOeYPZj AGUyfT8GjhZFff4z/ZfsRGXoiFgwDSg5055U8UGmLRnAahKr1fK/VGLiNIB9Ja7ACMHVHRYwl/Fop vjhU373dAjeZDImjLjy5KNGbuSJ9Nsl6vgf/RQatZxKHSJltrvJMIdDw4Tt0l9qOJte4RxDULlWw5 7Px8kpMfSq7fIwVv1j5GGQ==; In-Reply-To: (message from Amol Surati on Sat, 13 Apr 2024 18:12:54 +0530) 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:283228 Archived-At: > From: Amol Surati > Date: Sat, 13 Apr 2024 18:12:54 +0530 > > The problem is not found in terminal emacs built from the released 29.3.tar.gz, > or with emacs running under GUI (i.e. under PGTK). > > The problem is seen with terminal emacs built from the master branch, at various > commit levels. > > Problem: When a large file (for e.g. vulkan_core.h) is opened, certain > constructs have their syntax highlighting broken. The video found at [1] shows > the behaviour. At the end of the video, one can see one instance of the problem; > the syntax highlighting for the enum constant > 'VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10,' abruptly breaks. The entire > identifier VK_STRUCTURE_TYPE_EVENT_CREATE_INFO must be one colour. Instead, > 'VK_STRUCTURE_TYPE_EVENT_CREA' is of the expected colour, while > 'TE_INFO' is of the colour that is expected with '= 10,'. You may want to > download the video and then play it, if Google Drive plays it at a resolution > that is lower than the video's native resolution. > > Within this same session, there were other such enum constants with broken > highlighting, though they have not been captured in the video. > The termscript is attached at [2]. > > The graphics session is Wayland with swaywm as its compositor; XWayland is > not enabled. The terminal emulator is 'foot'. Another terminal emulator, > 'alacritty' was also tested; the problem occurred there too. > > The problem doesn't seem to occur with small-sized files; After reducing the > vulkan_core.h to contain only around 235 lines, emacs was able to show the > (reduced) file with consistent highlighting. FWIW, I cannot reproduce this with stock Emacs 29.3 and vulkan_core.h file that I downloaded from this site: https://github.com/KhronosGroup/dfdutils/blob/main/vulkan/vulkan_core.h I tried both the default cc-mode and c-ts-mode, and they both produce correct display with fill syntax highlighting that does NOT break. If the above is not the file where you see the problem, please post the offending file, or tell where it can be downloaded.