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#64830: 30.0.50 C++ treesitter mode no coloration Date: Wed, 11 Sep 2024 15:09:09 +0300 Message-ID: <865xr2pf2y.fsf@gnu.org> References: <86h6bk5nnu.fsf@gnu.org> <3C502C2B-829D-42C3-A74A-2A783F5880CE@gmail.com> <868qwjjhq3.fsf@gnu.org> <78DD1528-A12B-4199-9822-157852080027@gmail.com> <86wmk2i2vp.fsf@gnu.org> <29FFAE70-8B01-47CF-A45A-D01C82C56247@gmail.com> <86wmk0hlnr.fsf@gnu.org> <86y14fg95n.fsf@gnu.org> <904ED5D6-11A2-4B54-A60C-F972AF3E91B4@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15041"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64830@debbugs.gnu.org, acm@muc.de, stefankangas@gmail.com To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 11 14:12:17 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 1soMCm-0003e6-Fm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Sep 2024 14:12:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soMCV-0001yj-5L; Wed, 11 Sep 2024 08:11:59 -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 1soMCT-0001tl-Uu for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2024 08:11:57 -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 1soMAV-0006OI-Nd for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2024 08:09:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=zZOqklCJqGWJgIgs2V/axFk7MfR8uWHr2ir0AP+U/ZY=; b=twkMabt7dMs9vyMwOWBfHwTIg0UeU6uNPbaaGA8M56qEhbWxwQfkcApHuCa0SRG+c86EA3dPGYaky1TnIEvDz/F4n3PJT4hqt24Eea9UfZ7Q2DB/iOw/euPf/9hYzR2EBPQXcbWzbeknE/8CrVlmJyHRMw4euc7nKL7K4Fwf2MzgdzoOhjsEr1Z/N9gNMiDad4r4BJtrlseXXCmplDGeZG3igIIjU01lWkHFCkFGfGJyyUZWvpN7DNLOv2e1kHEqrtBm8yZ2DNti/E9+MJUa3nuspgI9z+jNb8n7aua20n16oecBAQgnSjNh1IGWx79i7I4AjbAw/DSYV1hgV7HUtQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1soMAb-0006Te-W9 for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2024 08:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Sep 2024 12:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64830 X-GNU-PR-Package: emacs Original-Received: via spool by 64830-submit@debbugs.gnu.org id=B64830.172605656724835 (code B ref 64830); Wed, 11 Sep 2024 12:10:01 +0000 Original-Received: (at 64830) by debbugs.gnu.org; 11 Sep 2024 12:09:27 +0000 Original-Received: from localhost ([127.0.0.1]:37901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soMA2-0006SV-Qi for submit@debbugs.gnu.org; Wed, 11 Sep 2024 08:09:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soMA0-0006SG-Ux for 64830@debbugs.gnu.org; Wed, 11 Sep 2024 08:09:25 -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 1soM9o-0006LD-RM; Wed, 11 Sep 2024 08:09:12 -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=zZOqklCJqGWJgIgs2V/axFk7MfR8uWHr2ir0AP+U/ZY=; b=sQzK0j/AaVI5 eaNKwp5XLX7yGmK3LwiuaJogOGUDcWtBvL3Y4CbiVFP/dbFVvSEoOddGFuR6+J34NzCgRaZFJpfmQ 7WmIVwOyBtWcdTSv3y+V/phxe6AbDvxDu5kaWObQZhfpjpLzQZl1kJa+gSQXtRjzqZYONa/ejaX+J DGLl+JpxceDxEkJ2KGtLp0j4N3wiHyDQuG6jyD2A4oQ3Vdfe/Qrjkf4i1Br5SpEnkCb+xkiH27QPA q0Pt5L0sI/jnFwzJViXC2w1Uf9/lAIu2Mezvd8MEqxDIDZ/KsyIg1E9AHKLKeIe8fYVf5vMaBCXjA 8XwSPAVSJa+/bj4O9CFh0w==; In-Reply-To: <904ED5D6-11A2-4B54-A60C-F972AF3E91B4@gmail.com> (message from Yuan Fu on Tue, 10 Sep 2024 22:09:04 -0700) 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:291597 Archived-At: > From: Yuan Fu > Date: Tue, 10 Sep 2024 22:09:04 -0700 > Cc: stefankangas@gmail.com, > acm@muc.de, > 64830@debbugs.gnu.org > > Done. Please take a look at the latest patch, thanks! LGTM, but... > +struct treesit_loaded_lang > +{ > + /* The language object. */ > + TSLanguage *lang; > + /* The path to the shared library. */ > + const char *filename; > +}; > + ..."path" again. > +DEFUN ("treesit-grammar-location", Ftreesit_grammar_location, > + Streesit_grammar_location, > + 1, 1, 0, > + doc: /* Return the absolute file name of the grammar file for LANGUAGE. > + > +If LANGUAGE isn't loaded yet, load it first. If the langauge can't be ^^^^^^^^ A typo.