From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64922: treesit-query-error due to a recent change to tree-sitter-cmake grammar definition Date: Sat, 29 Jul 2023 11:13:10 +0200 Message-ID: <340B2E06-A04B-40B5-ABE5-4EF9189AC1CC@thornhill.no> References: <4516186.LvFx2qVVIh@fedora> <83o7jvi2a0.fsf@gnu.org> Reply-To: Theodor Thornhill 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="29552"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64922@debbugs.gnu.org To: Eli Zaretskii , Vincenzo Pupillo , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 29 11:33:06 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 1qPgJt-0007Rn-BK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jul 2023 11:33:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPg1U-0003FS-JQ; Sat, 29 Jul 2023 05:14:04 -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 1qPg1S-0003FF-UK for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 05:14:02 -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 1qPg1S-0001sh-Kr for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 05:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPg1S-0003pX-GZ for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 05:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jul 2023 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64922 X-GNU-PR-Package: emacs Original-Received: via spool by 64922-submit@debbugs.gnu.org id=B64922.169062200114665 (code B ref 64922); Sat, 29 Jul 2023 09:14:02 +0000 Original-Received: (at 64922) by debbugs.gnu.org; 29 Jul 2023 09:13:21 +0000 Original-Received: from localhost ([127.0.0.1]:46436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPg0m-0003oT-TW for submit@debbugs.gnu.org; Sat, 29 Jul 2023 05:13:21 -0400 Original-Received: from out-64.mta1.migadu.com ([2001:41d0:203:375::40]:44003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPg0k-0003oJ-CG for 64922@debbugs.gnu.org; Sat, 29 Jul 2023 05:13:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1690621996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lT8nvFt9vUVchb2XUKHuXbhn7W3pQ/4nePBPW9QmPzQ=; b=AFUg7y0ZI56zb8gnI6e3zuLtDoGbA/weRfr8jWMUgSLkBfykNEYIr8RFp1dfWLbMRoWJqa HLv1lcmDChb08O9PTkW9Cx7dJ4iVd3+vBFWDPCJAq6bij4qx/XO57qXrzsSY/r+yRSTJOH LnIulNAx7fIbu1U+3tLv4tB/GMpv9Naor7hJkqNzl2l9X/OdZADR2GW4jClzLJtnkgUhxd h4bszNjxrEIMRDtR+WGE0zl6Nzb1dcNmi7a6rsVq6yzqJpyUsROHDsaq1wgi/WmoItp4M3 W9JAS+F5zKne4G/VcyCGCighdiPhmTRNWi8W0GIxL4tH02Kn/2p7JOF/a4YezQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83o7jvi2a0.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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:266319 Archived-At: On 29 July 2023 09:51:19 CEST, Eli Zaretskii wrote: >> From: Vincenzo Pupillo >> Date: Fri, 28 Jul 2023 22:59:27 +0200 >>=20 >> Hi, a recent commit (commit fe9b5e022950d53cb23959b76c240e1da27ff0a5) c= hanged=20 >> the definition of the cmake grammar, now there is a new node argument_l= ist used=20 >> to wrap nodes of type argument=2E=20 >> This causes the following error: >> Error during redisplay: (jit-lock-function 1) signaled (treesit-query-e= rror=20 >> "Structure error at" 19 "((foreach_command ((argument) @font-lock-const= ant- >> face (#match \"\\\\(?:^\\\\(?:I\\\\(?:N\\\\|TEMS\\\\)\\\\|LISTS\\\\|RAN= GE\\\\| >> ZIP_LISTS\\\\)$\\\\)\" @font-lock-constant-face)))) ((if_command ((argu= ment)=20 >> @font-lock-constant-face (#match \"\\\\(?:^\\\\(?:AND\\\\|COMMAND\\\\|D= EFINED\ >> \\\|E\\\\(?:QUAL\\\\|XISTS\\\\)\\\\|GREATER\\\\(?:_EQUAL\\\\)?\\\\|LESS= \\\\ >> (?:_EQUAL\\\\)?\\\\|MATCHES\\\\|NOT\\\\|OR\\\\|PATH_EQUAL\\\\|STR\\\\(?= :EQUAL\ >> \\\|GREATER\\\\(?:_EQUAL\\\\)?\\\\|LESS\\\\(?:_EQUAL\\\\)?\\\\)\\\\|VER= SION_\\ >> \\(?:EQUAL\\\\|GREATER\\\\(?:_EQUAL\\\\)?\\\\|LESS\\\\(?:_EQUAL\\\\)?\\= \\)\\\ >> \)$\\\\)\" @font-lock-constant-face))))" "Debug the query with `treesit= -query- >> validate'") >>=20 >> The attached patch supports both the old and the new grammar=2E > >Thanks=2E > >Theo, yuan: any comments to the patch? If okay, I'd like to install >this on the release branch ASAP=2E I'm not able to look at it until tonight, which is in 8-9 hours=2E If that= 's not asap enough, I trust your judgement more than mine anyways ;-) If that's not too late I'll take a look then and install if ok=2E Theo