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#64922: treesit-query-error due to a recent change to tree-sitter-cmake grammar definition Date: Sat, 29 Jul 2023 10:51:19 +0300 Message-ID: <83o7jvi2a0.fsf@gnu.org> References: <4516186.LvFx2qVVIh@fedora> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64922@debbugs.gnu.org To: Vincenzo Pupillo , Theodor Thornhill , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 29 10:10:40 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 1qPf28-0001qR-Eg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jul 2023 10:10:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPejD-0003u1-DS; Sat, 29 Jul 2023 03:51:07 -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 1qPej8-0003te-DO for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 03:51:05 -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 1qPej8-0003e4-6C for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 03:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPej7-0001pV-L8 for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 03:51:01 -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, 29 Jul 2023 07:51:01 +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.16906170346998 (code B ref 64922); Sat, 29 Jul 2023 07:51:01 +0000 Original-Received: (at 64922) by debbugs.gnu.org; 29 Jul 2023 07:50:34 +0000 Original-Received: from localhost ([127.0.0.1]:46396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPeig-0001oo-3Z for submit@debbugs.gnu.org; Sat, 29 Jul 2023 03:50:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPeid-0001oZ-VS for 64922@debbugs.gnu.org; Sat, 29 Jul 2023 03:50:32 -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 1qPeiY-0003U5-2q; Sat, 29 Jul 2023 03:50:26 -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=0jeVIpImiWhGhcffWqR4PifN4/6zSby2hST1ViSSxI8=; b=d4GEgsxVcGwY FrBCHwPvnFdexr3Kr3OitXnwZIwVBnLTIKXCjrpxIdaRTRjLWnceyDgDyHGYVwHWNjZJjuBrOCD0/ GoAJ8szM1fS1gZ1PNI5TOX24GaPrCOVl7tVZqG9hWx45a2fbBQvUZ9CJl2GuDkaN7qScSqQZBVVyB RUHF1JrVrZfiSYWt55QfmTZkQEPE730T9ekJus+w/pmivTWZ5dV6My9RVsa35KenSYtepoggcM0Lp 7HJk+BDgUfoRE93CID7fL/1XYG2WFJ9xfcq8Lzq1/+T3tLha1HHs4JNZAli69N3x83vcYuMkqn4W0 3y/XQP4Nvoj5ch4HrSd1ww==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPeiX-0007uF-59; Sat, 29 Jul 2023 03:50:25 -0400 In-Reply-To: <4516186.LvFx2qVVIh@fedora> (message from Vincenzo Pupillo on Fri, 28 Jul 2023 22:59:27 +0200) 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:266316 Archived-At: > From: Vincenzo Pupillo > Date: Fri, 28 Jul 2023 22:59:27 +0200 > > Hi, a recent commit (commit fe9b5e022950d53cb23959b76c240e1da27ff0a5) changed > the definition of the cmake grammar, now there is a new node argument_list used > to wrap nodes of type argument. > This causes the following error: > Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error > "Structure error at" 19 "((foreach_command ((argument) @font-lock-constant- > face (#match \"\\\\(?:^\\\\(?:I\\\\(?:N\\\\|TEMS\\\\)\\\\|LISTS\\\\|RANGE\\\\| > ZIP_LISTS\\\\)$\\\\)\" @font-lock-constant-face)))) ((if_command ((argument) > @font-lock-constant-face (#match \"\\\\(?:^\\\\(?:AND\\\\|COMMAND\\\\|DEFINED\ > \\\|E\\\\(?:QUAL\\\\|XISTS\\\\)\\\\|GREATER\\\\(?:_EQUAL\\\\)?\\\\|LESS\\\\ > (?:_EQUAL\\\\)?\\\\|MATCHES\\\\|NOT\\\\|OR\\\\|PATH_EQUAL\\\\|STR\\\\(?:EQUAL\ > \\\|GREATER\\\\(?:_EQUAL\\\\)?\\\\|LESS\\\\(?:_EQUAL\\\\)?\\\\)\\\\|VERSION_\\ > \\(?:EQUAL\\\\|GREATER\\\\(?:_EQUAL\\\\)?\\\\|LESS\\\\(?:_EQUAL\\\\)?\\\\)\\\ > \)$\\\\)\" @font-lock-constant-face))))" "Debug the query with `treesit-query- > validate'") > > The attached patch supports both the old and the new grammar. Thanks. Theo, yuan: any comments to the patch? If okay, I'd like to install this on the release branch ASAP.