From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jun 2023 12:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 63840@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16857079118328 (code B ref -1); Fri, 02 Jun 2023 12:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jun 2023 12:11:51 +0000 Received: from localhost ([127.0.0.1]:39247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q53dG-0002AG-K2 for submit@debbugs.gnu.org; Fri, 02 Jun 2023 08:11:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:56008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q53dF-00028k-5O for submit@debbugs.gnu.org; Fri, 02 Jun 2023 08:11:49 -0400 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 1q53dE-0003qU-VJ for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 08:11:48 -0400 Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q53dC-0004gZ-RK for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 08:11:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685707903; bh=d+xJMd2nJ9pKpGBT832S90CdYYOT+8v/r9BZTwPTL/w=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=C1BmcEGwcwdaFrBR9JebFzYKLoLS7AONx25UYIT3nk8rIPW5vbd7a1gFRZK3y+JmtvtAiebI/05BVIZfyx04efpZf/3FXamlCWSel5ttHIYpdZG567dgcqNyZVssI4G8V9R9JBo6V5dEnlyrWowssJkmhdFy5mF/9BjCYl3z247dXk+wbDzVH+0dI+rLzeM1lZIsTp4vqKKVlCrRTF8j4iLdLSxmgWR3x/e9Gx/XsyvLcuwV2YG5FE4VVznTnTJP6WLPr91MpkwUCYD6UQwmFQzNSu9NFA2B85YA8atDAiC1NbnsXSnG7GnQAwNfY7CpKcpx9enOcS2bHEBgwv5rDQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685707903; bh=6HMS4OE5ipZeITqD3oYD+WuDLiyaJp4Ls+nVMSSgyeP=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=iphpPp3tfVG8ikQtXiGHwqp+ETMqEdecoQlOv41EOjw2nwLdrzOuWfufknu+4CuPTnqUKjVphEpQuJoD8NxAMXCoGsZLM9+sy8Cd3dC9fraiGMBrqVfre4vC63btevJCkSyvccio+MlZwGjN6ydvObf2s0Gsd2ZIaG2C3ttSJtdT8hEK0Ecf/NpexwuzM/oIikOWCWFuigm9dmldFDRe9bD/LQb61JjDZGjHIyDKUqaRSlzV3bgwVQ9LSD+vN9m/v6vfxpH9UtJ8dGHW0XDwKZLrz5AayeJlgX7lXV5gay7Oc0s85JihK4y3lcthA4bgJmN6wwjKA4ddgScPysbFZw== X-YMail-OSG: BpyPNe0VM1nNyLHooTfeR.ZVt7wTrMwm67HmSgwaSyN5m6nKiN7P1wZr.Ihxxzy Fl9nmuMA2rZa__LctGp_s_7COSxkXoQei.5SX7X9o8ujue6cU.Ud.46VMtFWSxTvkMgI6m_FJkPW T16nUridpHQ9lUTI9ufZhkcYVIQn_YTEuNAIloVFwS280oJi80y4_QoxNRB13Vmwll4dat6Gv8_h nAPPQYZ0Prv3Ir48cqxGvhdzZnXyXWbLG.r3v3qYzz9RtD2mu8m9.L.fdMh8JFhp6oHEeRSWcBHZ xJcxg6tnqg7lPYLaFW4kqsNU0skKHaLFKBasvbq5t3d3tP.3.Ee7DEMPTFAPLQ9tf7qwWKNsTkJ1 .6G7CNBALzEFfNdeVIyMq7qSsDfflJMQMNIDqXSz2qd2WSU9Q.Jox7Do5eIiLjpmxbRO66BjUuc2 aB4SE8.SKeXZVIK7LjRL_2oRHVWpbsnGGPw.PWAYDaTAdKE.dAIzQpM96hbzwX300L8shA.esga. Ji_dZEFQl0oX_ZAhcKZrQ36vFfDD3kUBQs0p5dmQFo1yc6EhpeJgqj9zUhgz.TgUz55WyjnJVeh. x30p9KZKwmnIieu7g35hzI9acxWl8H8jpwppN_XnrIjb6fNtJn7NR0iZjnbq0Rwj6vS5EbcSqfHH OmbGpit3UVkrJhV3P2_wgbHj40uG9nj7TtwlHNJ3_3rT1xBSbqHemse8NJDXdZ0FojhKv843HLQo FAj0O9T27QOhHo5_ObZ5BUrnMWOCJpNa5QYH8pG8.b979EG4sMBXePyiHccazg2n94pulFXgYQnB sJ60T3uLt5JceGt6C8rwXIbOtnFXRo5AvpDXxFSmo4NK6QEujUqNMsJpp2CqFMzCppgtZIDUEwxe 9AqpfB2MyNPIownGbp2aOddN9IjmrvH31ABLwGO5AydFKHW3maM30UnDB0eEhv0aEe_YkA66cRsK veZtv1mUUCfSKKM5UGFwJAeL7PjD6Ds.l6U.0I_lsAg1J9SmRaqKZ.b8Tyy5N4i4mi6qi8lGyI7T qP29m4FOifoBu6rxMTrkmmlKvQzNpIBOeXHz.2sUG7qLLj_SoIbHU9hPDpvdBdMfLhYuByZF5guJ p3U_EJDxbHYqSkkosY6j6r60qQdXAMk_B4GfszN4550ahJtC.en8AznHVO0EwuybwnxRbt5f6B2w eZ77Z.aTciO4EGK_AaZC509awB25_zMNclOWt7SAqtjjazBYsEY2YyOj_zPRdUG0pTZw6.L.3mXF AdO7nP4IRs2S_VtgRu79Z_ZWtVc4nFqxwz7SeZQvgps978A.u3MCe7QWiUNa_aMFLmcYcWKdFv8q O7aXFudqFzkLnJ39Gk.I.CRCYhiAja0LRmF.EtHphMLPRQhVvvjBNlgTF5vgXh94UmVrWVSISGuW S32jaGW3HRvgjMZ1jaTsqc1g5pbKrsHprJT7rY0bNmaQ0LWKTqLiuUwWN1_DWCW5RFr6Z5eyXHX. r0u64m.1ON043E5IrO9RbLW4ULRTF4ybEN7ZUeUd1pFhdHRRqbNU5pasXlzZJKOVtiNdQcOQ1hIi m.ic1Z1O0OCrgdsHNF69cdGAj34LbQWZaQgdxtW61dKPHKdHXeHr_BMN6ZXCHSU_fwLhVLgkF9VM 7E9tZ9r33760CeuyWdE6QObYyTlT2nLcWNw77yntww4p0dz.9MKZaRc0ioyAnKv0fqdc0fcKT1aV 6eCsTM0Zeo5A2EL7NMoXG9.FN1ZN.VjI8ooDW4g0D4bpMq43Kogml8nua.YWViXk9vKZX.FLJIE4 pBNMWgnM8Jjo6MMeRzZXstaTuEDU1l0.zuPbyXuqH7EQpwWy93.hpVjJgls_mf7Q4A_zxIZjevOu nI6No.wAMjaed_CLjZa36KE7r_Vlg3fMTYVO0cu2rtp516OchMQ068EeOl89OwFWN35G4ibdvdG0 Os7H6HV_z_NpdGOBFGLiuEXwP1.EqpUol73hrx4qsobQnwfRQmhjt7QUcZvvZtf1kKhk7iOz7AE6 nOuL9Cco7FQsiSBW3oJ6.qo9sx5p1PDfZOVVFBwGQcJScPBwARL8FHVVSmGQEtvuD7lyiMCOXWKK ghPEw_5xXwnEoDelfabslGmwb7sJ5MtronqyAn9VsYoupl_fbKDIiujR8XTev_AhtsAg5xPFHuFc F8C.yBM18suuqSfizleSEFYa7BiB_AIgSqhv9DF7e0ghyUgQjp40ubAoQkjERUYwKcxhwow3ogFm qP7fR0L0pOJ7BALQgtpgD8sGyPHnS7teFT5H_NDmdvjKXhAtJ X-Sonic-MF: X-Sonic-ID: d49f4a38-227e-41dc-943e-8d61e226053f Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Fri, 2 Jun 2023 12:11:43 +0000 Received: by hermes--production-sg3-748897c457-ppt9c (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bc9389eb49334fa7c677318ab7bcb098; Fri, 02 Jun 2023 12:11:39 +0000 (UTC) From: Po Lu Date: Fri, 02 Jun 2023 20:11:33 +0800 Message-ID: <87fs7anjwq.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain References: <87fs7anjwq.fsf.ref@yahoo.com> X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1013 Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) A common extension to the C language is the use of the `$' sign inside external identifier names. This is permitted by GNU CC on most systems it supports, and also supported by CC Mode. However, it does not work on c-ts-mode: sl$loadarena () { struct FAB fab; register int status; extern char *sl$dfname; fab = cc$rms_fab; fab.fab$b_fac = FAB$M_BIO | FAB$M_GET; fab.fab$l_fna = sl$dfname; fab.fab$b_fns = strlen (sl$dfname); status = sys$open (&fab); if (status != RMS$_NORMAL) return status; /* More code below. */ } in the identifier name of this function declarator, `sl' is fontified as a type. `$' is not fontified at all. `loadarena' is fontified as an identifier name, as it should be. In: extern char *sl$defname; only `dfname' is fontified as a variable name; in CC Mode, all fontification is correct. This should be a simple change in c-ts-mode's identifier fontifying regexp to include `$', right? I don't know enough about tree-sitter to fix it myself. Thanks. From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jun 2023 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu , Yuan Fu , Theodor Thornhill Cc: 63840@debbugs.gnu.org Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.1685710335648 (code B ref 63840); Fri, 02 Jun 2023 12:53:02 +0000 Received: (at 63840) by debbugs.gnu.org; 2 Jun 2023 12:52:15 +0000 Received: from localhost ([127.0.0.1]:39313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q54GN-0000AO-2N for submit@debbugs.gnu.org; Fri, 02 Jun 2023 08:52:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q54GL-0000A8-N9 for 63840@debbugs.gnu.org; Fri, 02 Jun 2023 08:52:14 -0400 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 1q54GF-0004zL-Pd; Fri, 02 Jun 2023 08:52:08 -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=PCndJi9pBkxobbQFtg+NZuAud5feOwV0P9wdv1Weots=; b=kAzcQHlCdRss Agq5ZO9UbdDu15FX2H0/530YT4397UMhe1dKhr7JifhIjvmT/H+bbKWYLAMcVxUnyB4I2p8xRxDFc uWVoGtriiVq1N0vuNx9ZpGCnAqDa8jMqtX5jdISYrQHbafudNV0+ntyBscdeooBT6TDvfXvL9Z46f HEzeCLYRlPaZtMjmrMw6FTVx0Qofih+1jRdE57KDpr4oAxcmQdVzJXXP+up4zXVNYjYZ28IjkZswD 9Pf13YZeyHJ/T8F9sGxYFUvGj+ECi3agxDD35HDxsV8c0fOGBeNTyUeYK7xsrcFYZrYD8Ywl/EcK1 xWf4bTsXCjLyiC2R0IDXiQ==; 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 1q54FK-0000Sm-1s; Fri, 02 Jun 2023 08:51:32 -0400 Date: Fri, 02 Jun 2023 15:51:53 +0300 Message-Id: <835y86auxi.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87fs7anjwq.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 02 Jun 2023 20:11:33 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > A common extension to the C language is the use of the `$' sign inside > external identifier names. > > This is permitted by GNU CC on most systems it supports, and also > supported by CC Mode. However, it does not work on c-ts-mode: > > sl$loadarena () > { > struct FAB fab; > register int status; > extern char *sl$dfname; > > fab = cc$rms_fab; > fab.fab$b_fac = FAB$M_BIO | FAB$M_GET; > fab.fab$l_fna = sl$dfname; > fab.fab$b_fns = strlen (sl$dfname); > status = sys$open (&fab); > if (status != RMS$_NORMAL) > return status; > /* More code below. */ > } > > in the identifier name of this function declarator, `sl' is fontified as > a type. `$' is not fontified at all. `loadarena' is fontified as an > identifier name, as it should be. In: > > extern char *sl$defname; > > only `dfname' is fontified as a variable name; in CC Mode, all > fontification is correct. > > This should be a simple change in c-ts-mode's identifier fontifying > regexp to include `$', right? I don't know enough about tree-sitter to > fix it myself. I'm not sure this can be fixed unless the tree-sitter's C grammar supports such identifiers, but if we can fix it in our code, we should. Yuan and Theo, can you please look into this? From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2023 07:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Po Lu , 63840@debbugs.gnu.org, Theodor Thornhill Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168620871815016 (code B ref 63840); Thu, 08 Jun 2023 07:19:02 +0000 Received: (at 63840) by debbugs.gnu.org; 8 Jun 2023 07:18:38 +0000 Received: from localhost ([127.0.0.1]:55541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q79uo-0003u8-7Y for submit@debbugs.gnu.org; Thu, 08 Jun 2023 03:18:38 -0400 Received: from mail-il1-f169.google.com ([209.85.166.169]:54655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q79um-0003tq-2z for 63840@debbugs.gnu.org; Thu, 08 Jun 2023 03:18:36 -0400 Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-33cb82122c7so623595ab.1 for <63840@debbugs.gnu.org>; Thu, 08 Jun 2023 00:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686208710; x=1688800710; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=D7g1IyMSq3t5V4sFuDcumA+li16TDjaw0oU1PNjUey0=; b=aCNR6o/okbmLzIlrvmL7iCHu0a+2vKtCaOs9/0QA0UuFklU2QJZ6EZpCG0uBmPWGig XYh52Dhy1sjoJcTJT3qFf9lq+fstg0BEfU4gIo44CcEWvgPCtRpJi8lrdIHvGMrr0kK/ s4WEh4TYvoQUUOZsnft0glVvOBwni7DDsxRNurXP0Hqsp02i+AWgOWUbFRYPk+q1YL+P Y/y9ulDXoRSecCXq9PbSjVEEw03HyDRAvL7QmBb64vM9laCL32iiRo1vOU1gSkx/yhEm BzAla/4azIYOP3jNPc6bdxYlWj82PHtFHMVnkx0JcmWC0Fe7+VZ7PkSUa60TRTtcokxl GJuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686208710; x=1688800710; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D7g1IyMSq3t5V4sFuDcumA+li16TDjaw0oU1PNjUey0=; b=PcnT2wpG2qWYZyXBAj8eTFaUUDREw5jb4SyZzIZXyn9gPDsc8/NexByhsmGGBEMleX /eZNjSsy0bVQhiGWsEhMt+Bgw8oExXnE/xaf2M9nYGbeTPZ84agxF2e7qIoREUMwxqgT 6GCou2/f8hrpcazwh6DmQst3TtYDiZApVyq3EeWifp7p2mjruYT7NScvwI1EO6y2nB9w Hq69XMlfat5ovpHKfwKxXgq/9qOHTAIaqie4qfm/YehCnoIxs/OqXr/O3kGaYurTG6tl 6Xp7YvfAVKYWMoJDXV5uycIThT+aoFw7Yv9BtSGcHd+/PLLJVN3fbd4KqDs8vg6kNX7M kZ1Q== X-Gm-Message-State: AC+VfDxISOR3BunUGdInb3trdbS1Oio2sgteDdKJiiGzcdzVpJubtxLU jklzKupidz9UCGuyKbw7OwE= X-Google-Smtp-Source: ACHHUZ7xlbxkDVls+Va4JoVDNJUt9+tQo9fN8PxpzB6v5FwB7chy571vpfNgGrlAcC5ZThwX7O9UgA== X-Received: by 2002:a92:c08c:0:b0:33e:7540:1bb7 with SMTP id h12-20020a92c08c000000b0033e75401bb7mr847187ile.7.1686208710177; Thu, 08 Jun 2023 00:18:30 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id bv24-20020a17090af19800b00253239144c5sm604190pjb.42.2023.06.08.00.18.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2023 00:18:29 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) From: Yuan Fu In-Reply-To: <835y86auxi.fsf@gnu.org> Date: Thu, 8 Jun 2023 00:18:17 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jun 2, 2023, at 5:51 AM, Eli Zaretskii wrote: >=20 >> Date: Fri, 02 Jun 2023 20:11:33 +0800 >> From: Po Lu via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> A common extension to the C language is the use of the `$' sign = inside >> external identifier names. >>=20 >> This is permitted by GNU CC on most systems it supports, and also >> supported by CC Mode. However, it does not work on c-ts-mode: >>=20 >> sl$loadarena () >> { >> struct FAB fab; >> register int status; >> extern char *sl$dfname; >>=20 >> fab =3D cc$rms_fab; >> fab.fab$b_fac =3D FAB$M_BIO | FAB$M_GET; >> fab.fab$l_fna =3D sl$dfname; >> fab.fab$b_fns =3D strlen (sl$dfname); >> status =3D sys$open (&fab); >> if (status !=3D RMS$_NORMAL) >> return status; >> /* More code below. */ >> } >>=20 >> in the identifier name of this function declarator, `sl' is fontified = as >> a type. `$' is not fontified at all. `loadarena' is fontified as an >> identifier name, as it should be. In: >>=20 >> extern char *sl$defname; >>=20 >> only `dfname' is fontified as a variable name; in CC Mode, all >> fontification is correct. >>=20 >> This should be a simple change in c-ts-mode's identifier fontifying >> regexp to include `$', right? I don't know enough about tree-sitter = to >> fix it myself. >=20 > I'm not sure this can be fixed unless the tree-sitter's C grammar > supports such identifiers, but if we can fix it in our code, we > should. >=20 > Yuan and Theo, can you please look into this? Yeah. So is this the only way $ is used in C? Could it appear in = contexts other than identifiers? Yuan= From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2023 08:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: 63840@debbugs.gnu.org, Eli Zaretskii , Theodor Thornhill Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168621424224837 (code B ref 63840); Thu, 08 Jun 2023 08:51:02 +0000 Received: (at 63840) by debbugs.gnu.org; 8 Jun 2023 08:50:42 +0000 Received: from localhost ([127.0.0.1]:55654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7BLt-0006SW-L8 for submit@debbugs.gnu.org; Thu, 08 Jun 2023 04:50:41 -0400 Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:45543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7BLr-0006SH-55 for 63840@debbugs.gnu.org; Thu, 08 Jun 2023 04:50:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1686214233; bh=5LHWofkyf4k1qaYopTr8WVgSZQL1cnNUdzDLte8WjHo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=sdKqhPpX/lSVaKNTeTlcUU07lV0/sSM0NPcoo+7KV90G7GcMo8eFA+Fpz9NoKYEXb203FGJMBsOwHwQGDG/t2qoWZgEwkpHgIBtMSgSqd9jQJcQ4UFkM6/1nzVDmrtBRZrZcyHC/w15kIigiydivxzF3zyriy8G9S5JymEhtwS5Hz/+TPIJPBKus5VpN6wuAmxtnyMdHJAePmZ9lkaROimDu3kkyBALd2qPmIJzWEuNdVrIsQZOm0kvSgW+kUwA/cMfgaJ6Q4FGWWoa3qJGZxEW55za+sgOU6tPMVlWFVMxE7TNPcLrCiF7BcF5AA1zZV5qPhXHWaRXVdO09mnLZ1A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1686214233; bh=Dfgjuxw2rSsm4Y9oVkwMpOnHPn5i6MsshQaPeQgRIMU=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Yv5WgLagqp9m00j6st1scRUTRaJ6EuFfIliWqzktDPrPLg4WETTONYgFxoSuXtfdS5uJeezNsuf17MRiP6Jq62L3uXgCrzm9nTXcwamlBLkm3fKynWzpubLq5xb7g8qHeYD/wH44zgITFbR9ewPcu+Sul+pZ1G3V/HzcaNgHE1IRMzzVdJYORW6dnbQ5wCq3ut5gtQ9alTOwrz8h1v8k4HwqwFaXqs0Y75h3O18J2oFcrqfz0JM9p+inWOCTz3GLB5r0oLJ/gNXmpszIIRzCGAIuCqydvpdVyD9XhtOIIz6DlbcJ4po1OV6omCX1RcfHUZQZ5kk7dtb6SpTHNhfDrg== X-YMail-OSG: lnL5aDgVM1mOdE4OQ3XbtGjdORgv3wt7QaW.n4HcfdKMQsOzI7ZTMb0U7OJMlwN DQums2yFMZggm_u1MkG5DClx0OHIjhLz6XowzyqIMFL7gO6ZF3LMXj6pznza2mqD05yXCeSHHjy8 E3SFv67x1JvRgLJS3OBmF_BxeZzO07RJenqajOQrXkj.ddvuTKciqeMernYg4UogTKBi9ethcju3 .46agVHAd6JtQPJQBtrGlRhMdijZaIJuKm7CDBnNdxYL6fQ5B7R2Sd3OKOp7LlPMDjuo4Y2gy447 pY3rUUvX8zVCxfL4pWCholgn7PBR8mmO.DSTvgwbQy.1nY7ls6X9WPHLX6YKV9dsi7gKiXonBZkq 3GQdWNW3RXuIlutYO77wbzUnmLoWh3efuvXjk8whaDRFXD_EwHsw2_mMjEaOZucXuqShMCUYBpSl i9tHm50rneDRS4rtAnk2Fx7Cu8j7QbshcX80pKwACIJwIqJanKFJJj3hss8EG7.YQv_wIa97VmM9 Iw488eOoIu.p40BOaVWZZKnF1ij0Lp7nNpfmy4UIwA8XIjRsWO4Oc9LQNCujC1osKcC47ZubFumG ILODhkBpUVTjWpIDC8vc15.H.0NXqZ4ZK9.iCQd61hPpA_U7.CFe0P6YzIWckA0ev7iSC_oc6oLG PX1kaQU.o6LhKz8aGRwZ4dP9U1W2UGU_pHAQFhZBh7.ulnHQoUB2PO.jWtvdIMzOg5FQFky_tzuM nD.gBGfWDSSwewlK3LLsurVA9hu09T0vrYESOKmcdAUnoIsI.9h2gYJPfSgctXCfxZQDHDrzv8G6 7_AEdOI1v40USUQSz49dG7U5LSoNhdhrbah0MFsA6XA1UUDUTlQlIsT8KCZLtUK2lyW86E22X_1C skwRCQoJEzT0EauDHZ.jrqdQBulwVwewda9mndZQRMDmDaYKSUZDPDXsSEO3iAhKmv6c0YF99QF7 ZrwEbRxLfoHYgG.F_8mHVtopWyvmPFZ9P1ht747DnriBublr_4D9RcbFhbFiPvrlMF.24iIxCKbu a0JbWZkkp0ZHzSzsvJOT_MVUcwvc4uMExS.tV8kr5ibq90H2sjYiG.Ek22fJM6MsKAEFLpzG9Ny8 4c2VG_Ebe87MyFU9jbvaAUrPvdIHtHC.2zK96Nt1VOH7xon4CPOpDcraN4OPtGZQ6pO7yDTX1hPJ QaJjnAMR1Kpu11NIlgSmP_IZpb9LhLIIQ5oxElZ4IFE_acYEY7QMGITK3LQPJFq5lf5nTkDZWW9i LCVKuGg4WhyFDqH0v4qjiCzPZMZCaUxeKV1WqVuMjcQ6Ll2hhVZoxvVg.LaW6uSEdVNLZEBrcsjz aEu073FBquI4p91qCn249YRO8XI.0JxY9ze_SCicJJrUsXKKovFrsfWVnxpmyID0HXP1xOwi5wXL Ca2rieqAFantVq0Fmix38XqUJf0kUkWeUGPLXvtlujwzMehCtBFXyEgEnC0r_KTZNVnutI0j21vZ vw6B.ivNrLUmYirrUuf5Sy8gRgwQR4rJBT3xyNbQPCKN5sScJQYesmr6q86qom.7y4th9VlxHF6E Tj_6GtQTcpZsHaKdndy3wYyED3rMjoAyK5E0EyI_L1gw1eQkGRkghZj87P5lUBZ72vYMKJ5zHhVz RQWOaZcqNWrqvP4rOEagYp7hh.F3EXrVGibfKqLI17A6F60oTWS_gnV6Vx76j6bgoXJs.oci29Wp OB4chuknnYdxaHHbEGkA2BdKN8FVbj_E4BRepFrtvVwUWdQjlsdVMo2N65shXKCIlk1il0nIBuWg YydXBxa8raz1KOl8kpxfviEdg6WQgk3vfdjK4K5RcpxcmBGgwivtA8m.b13YSuqH7p8RPqlAjQSz X8P1pAObLNZXJX8hhXXClYs0WB08_To9vyxrZFn6KZCY.i9RnbcW_K_wmilN4.GyiX3ozYUl013E xIFoF2eZNcX7bQeAb5iQo4m1b.ts3RshA6CoUqw_7UgwKv63GRvj.NoYGH2_U3SW3TjcPxRyQ2Qw ZUUlSFWLUIRL.W7KdXyPCtw3VLutiLQkrK.CqJmH0d3jHYwoLCDijh1m_.vhvw2.MFfhzvovQaQf UU0tnHrLSbhY320xKkegzKy3bzCryiVVLDYXI2CTUpsmBzsioBeU7VS3ILOkAcGzQ7RtVM_KCrcO uqzjEU.P3ZF4_gH2e.RuTGMAM.E87L7p23Av1d6Ry2FM1aB7nqxZdcmjANfR2TO8hR096M_PfUZd z7U.2IcUR.nym.DlVUocxVsfPbwzSq7r7L9xMPpGavYF1SwYBRlmUXW38s29q.gA.Gw-- X-Sonic-MF: X-Sonic-ID: 620cbfde-3ab1-4dc6-9f97-7484e9af4158 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 8 Jun 2023 08:50:33 +0000 Received: by hermes--production-sg3-748897c457-rqcgt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 36d3efa94ff52b3c0ebc2172aad52609; Thu, 08 Jun 2023 08:50:26 +0000 (UTC) From: Po Lu In-Reply-To: <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> (Yuan Fu's message of "Thu, 8 Jun 2023 00:18:17 -0700") References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> Date: Thu, 08 Jun 2023 16:50:21 +0800 Message-ID: <873532jq2a.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21516 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 151 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yuan Fu writes: > Yeah. So is this the only way $ is used in C? Yes. > Could it appear in contexts other than identifiers? No. From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2023 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: casouri@gmail.com, theo@thornhill.no Cc: Po Lu , 63840@debbugs.gnu.org Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168680856926103 (code B ref 63840); Thu, 15 Jun 2023 05:57:02 +0000 Received: (at 63840) by debbugs.gnu.org; 15 Jun 2023 05:56:09 +0000 Received: from localhost ([127.0.0.1]:45982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9fxp-0006mw-4B for submit@debbugs.gnu.org; Thu, 15 Jun 2023 01:56:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9fxn-0006ma-8z for 63840@debbugs.gnu.org; Thu, 15 Jun 2023 01:56:07 -0400 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 1q9fxg-0004lZ-VL; Thu, 15 Jun 2023 01:56:01 -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=vDdOriZbBf1rUYP4HR3bQhW2Vq76SEl65BOqpXnnFlU=; b=YqfVTjdUIIHy OGCMzqbMgp7FTWJrA4gRuuIV/aaXt4UvIVHG8yZQ9u/OV1r8uKh8NIoO5e9rVbC5sAGqidxt4ZhmQ cqbNMgNwxq7JO4GfupjEIm/tTMw7AyDPztLgpxNUsjt2o4pJL7Hdipkx7zC2ROtI2w+n0j+xM172C rij9ZRBbGjnmRFiOpRlYhC+entKXaIDMbHttGuD2JC5CDLbResUzAxLmWS52bcxUJlbgorRR9/9jp dz5cq8JGErIa12cHQLatKvjrSzyPo7/UKf4dV9JiozgobYyvfztbnBkk1j9Gg887eIQuQ5nmqkB4y 9DIWHatBObjlF0HN8IlfmA==; 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 1q9fxg-0002Rn-Em; Thu, 15 Jun 2023 01:56:00 -0400 Date: Thu, 15 Jun 2023 08:56:22 +0300 Message-Id: <83zg51tgjd.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <873532jq2a.fsf@yahoo.com> (message from Po Lu on Thu, 08 Jun 2023 16:50:21 +0800) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Po Lu > Cc: Eli Zaretskii , Theodor Thornhill , > 63840@debbugs.gnu.org > Date: Thu, 08 Jun 2023 16:50:21 +0800 > > Yuan Fu writes: > > > Yeah. So is this the only way $ is used in C? > > Yes. > > > Could it appear in contexts other than identifiers? > > No. Ping! Any progress with this? From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2023 05:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Po Lu , 63840@debbugs.gnu.org, Theodor Thornhill Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168689195810448 (code B ref 63840); Fri, 16 Jun 2023 05:06:01 +0000 Received: (at 63840) by debbugs.gnu.org; 16 Jun 2023 05:05:58 +0000 Received: from localhost ([127.0.0.1]:48408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA1en-0002iS-Jo for submit@debbugs.gnu.org; Fri, 16 Jun 2023 01:05:57 -0400 Received: from mail-pl1-f175.google.com ([209.85.214.175]:60688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA1ei-0002iB-EW for 63840@debbugs.gnu.org; Fri, 16 Jun 2023 01:05:56 -0400 Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1b5251e5774so2289295ad.1 for <63840@debbugs.gnu.org>; Thu, 15 Jun 2023 22:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686891946; x=1689483946; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=juSoDYb8M4d8h846z30NwDTWygYXy829zHcI9YsnQfQ=; b=kfJBwKnug17r5CegpRTKhetUy0LqDCJaOX+uFku6lN/h/3Xn5FHJaMbQ/dLF6dE8Ma +X5oeVXi9b80dJun9lRAjJ+tYzptwGsmmavw/Lji+9C35pRzuoFYgPBsdBcT07yYHobO mJa9HC94Tz34fih4k6Qt4fwvCSCs/6eweqx95uOc6uvv1qnmFJySjynp6Y9DIwpLZXm2 BzvPk85wK8Da/t7l0aOjqxOUUZ0tsv3mTVv3Q0ryaS0mh7X1NxgHG3WYsN07dLF7tioa vPPuRbbCc6PsrT1w+CS1iPeBTK7sayKUrq70wWONZsatKNNHZHER4pNeZtbgJVqOdzc3 ZddA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686891946; x=1689483946; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=juSoDYb8M4d8h846z30NwDTWygYXy829zHcI9YsnQfQ=; b=LkWbil8qsWHlq/vOnrYe5ouPqQXtZBZCJMUCgG5x/IuBbTJdTWbAE5V5vi/1zsf9hA enZfMBlzzByw3A/FEHAgyXYBEBtLG5JNz3NkiiTMMv8GuZRVXIpPLR4KtxWHo5rE3Zkw zv4lizAcLrywe0lLTOj56FXN8rJLYmhoO9xnZ/diV0bL28iXxwkBZDNNv3vFtNbOtZ0m fniYI5mIK8574oloE6/YPBn4iGXwJaEfP5fEsGRW6T8lzAdFK2Ftxn1SemNFKgjYASG7 WnUwKZdlj2jhTPqO9jPMHkpduc8T1ET0HOcM6uvQEblxL3TY5fud/K+d48EP79GKtzfc pctg== X-Gm-Message-State: AC+VfDwNWXy6sKs87lT2p4GnJQG+gXAx4Gzg3MJBNjxoxCpddD2Waflj T5YNpDF+hhpsl6FemOefEg4= X-Google-Smtp-Source: ACHHUZ5H9jtL3zdZ1XVtyCSynsasv/OuiAnKIv/0gUVOGfrvR3V3YMwGf8J6xj/ZENOREtovp7QmJw== X-Received: by 2002:a17:902:db05:b0:1b2:499f:672c with SMTP id m5-20020a170902db0500b001b2499f672cmr887765plx.33.1686891946472; Thu, 15 Jun 2023 22:05:46 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id iz22-20020a170902ef9600b001b3f809e7e4sm3260775plb.36.2023.06.15.22.05.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2023 22:05:46 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) From: Yuan Fu In-Reply-To: <83zg51tgjd.fsf@gnu.org> Date: Thu, 15 Jun 2023 22:05:33 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jun 14, 2023, at 10:56 PM, Eli Zaretskii wrote: >=20 >> From: Po Lu >> Cc: Eli Zaretskii , Theodor Thornhill = , >> 63840@debbugs.gnu.org >> Date: Thu, 08 Jun 2023 16:50:21 +0800 >>=20 >> Yuan Fu writes: >>=20 >>> Yeah. So is this the only way $ is used in C? >>=20 >> Yes. >>=20 >>> Could it appear in contexts other than identifiers? >>=20 >> No. >=20 > Ping! Any progress with this? The best option is to ask tree-sitter-c to recognize $. I see a PR for = it but the author closed it shortly after posting, not sure what was = going on[1]. Fixing it ourselves involves checking every identifier during = fontification. Is that something we want to do? [1] https://github.com/tree-sitter/tree-sitter-c/pull/114 Yuan= From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2023 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168689708529652 (code B ref 63840); Fri, 16 Jun 2023 06:32:02 +0000 Received: (at 63840) by debbugs.gnu.org; 16 Jun 2023 06:31:25 +0000 Received: from localhost ([127.0.0.1]:48514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA2zV-0007iB-F7 for submit@debbugs.gnu.org; Fri, 16 Jun 2023 02:31:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA2zU-0007i0-5S for 63840@debbugs.gnu.org; Fri, 16 Jun 2023 02:31:24 -0400 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 1qA2zO-0003WC-CE; Fri, 16 Jun 2023 02:31:18 -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=G/AsM9d1v7Oh15BTBGe+vqIz8SXCfCh2LedTD/pIJPM=; b=MoFm2m/ifynu WbLGHU3vpy+k+6YI0TJdhgj4nxtCuPpz5xHEVEoVfaj/5bQsMTSMqiFd9ksGE7eYyEY5r3DYlSK2g 1mX/8tEuX7lneY9dI6/lJpalHgAnvHMrgTqXCG7jX66K85br1wxL9CULdP8UOtdTbG0y/cspdBBHB qo3Xnid7fUULqpNGDeXLkLcnKTywkbEIUTOP5Z9Ab85epQDJtfTAaQoYWh0w/wru78onx/Ypj6gKj O5Uqz/VoLAcrn3KrD13aE0apclzHY3nvYieui4vbLnXvcJxqmq2qEJ6Eoa7TrghBfybYp2a9Gp5B6 zuJRraEoYIk4IqM8MSRe9Q==; 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 1qA2zK-0006zW-36; Fri, 16 Jun 2023 02:31:15 -0400 Date: Fri, 16 Jun 2023 09:31:38 +0300 Message-Id: <834jn7uddh.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> (message from Yuan Fu on Thu, 15 Jun 2023 22:05:33 -0700) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Yuan Fu > Date: Thu, 15 Jun 2023 22:05:33 -0700 > Cc: Theodor Thornhill , > Po Lu , > 63840@debbugs.gnu.org > > > Ping! Any progress with this? > > The best option is to ask tree-sitter-c to recognize $. I see a PR for it but the author closed it shortly after posting, not sure what was going on[1]. Any hope of re-opening it, or at least asking why it was closed without fixing? > Fixing it ourselves involves checking every identifier during fontification. Is that something we want to do? How would that work? Can you describe how could this be implemented? It is hard to decide whether it's something we want to do without knowing the implications. From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 06:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Po Lu , 63840@debbugs.gnu.org, Theodor Thornhill Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168715705219898 (code B ref 63840); Mon, 19 Jun 2023 06:45:01 +0000 Received: (at 63840) by debbugs.gnu.org; 19 Jun 2023 06:44:12 +0000 Received: from localhost ([127.0.0.1]:55416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB8cW-0005Ar-7r for submit@debbugs.gnu.org; Mon, 19 Jun 2023 02:44:12 -0400 Received: from mail-pg1-f179.google.com ([209.85.215.179]:51388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB8cU-0005Ae-0b for 63840@debbugs.gnu.org; Mon, 19 Jun 2023 02:44:10 -0400 Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-51452556acdso1066258a12.2 for <63840@debbugs.gnu.org>; Sun, 18 Jun 2023 23:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687157044; x=1689749044; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wcFO5KJ91c8n8YNWnhOAeHuWWLarwZ5OfPmEER6T0ag=; b=JZ4S8Ga33kT6Xmld9ZOQ4qARLe5Bg4sIofssYUav8Gnw3DG2VxyCJEAvQqpjccw0T3 RhuBAg1Eyjqvmb5VwprvuNP0WsWHcCUq9xp2O2o3YBkm/2L0n0EOImN5vlqJVcER8boG 9iAIaBCuAhpA5cKYW9ojWt9TDL1DbVBalXQhmQrG9M5YaQOSYzBnFL3kRNggPSgTNfbX rPSvwddzYz5pYhHeknOwzDsBDA0iaFWrHdeGQSZR68L7qFcbhrzWIaWkcAP7kJagQoEb hU/+snFDBSeCx6mGz6gyJ2rBucUXdFhKb+Hrh8rcSDrFu+/9easOQPj8RllQ6k18tUx1 2jQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687157044; x=1689749044; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wcFO5KJ91c8n8YNWnhOAeHuWWLarwZ5OfPmEER6T0ag=; b=N67BYtb0zmsDFh3N7ZAPPL0uZ1EFnMgFSt4U9KFykQG0cbtZMr9WhsHL5V/+8Qc/hQ OR64Fh8b++/SWWNGFM6FFtFs4bjUiiIimrQ9/UhWjDgLBF2F/Oqj8DvGZGeXUOwvXfgf tQLBdCaD/6PsqO8ZGy+/isAaTMcD70Je+4Rz1eWordiRYzDyB/2mMdi+AG82RJzA18F/ R6jBDtZCUapnJCr+W/k9VMRy4T4P47yiMil+Cr/bGR+MZ/igxQmsTRSUhVn1bWhWGMJl l8UojcTKRHFd4HbHfPTBvhB3hpDhSbbCcQQdXUSK0sTFak2NOf0UjvWjG0IGoI8pUrrL 04PQ== X-Gm-Message-State: AC+VfDwUxST7dIEpm3SuYNhwUaU6ZIn0rcZ5ugV5HCpfaTZ2417WYR2P uCAHoGIEkfm4qgfjCmY9O4I= X-Google-Smtp-Source: ACHHUZ6viDREF/xmdkt/YsWpwYBvnM3hin2IWrXS6I8h0mjC+V1uzVeUPaqsSXZrwIDaW9SaYWbvFQ== X-Received: by 2002:a05:6a20:e68d:b0:114:28dc:2d93 with SMTP id mz13-20020a056a20e68d00b0011428dc2d93mr5079031pzb.17.1687157043721; Sun, 18 Jun 2023 23:44:03 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id r21-20020a170902ea5500b0019309be03e7sm19682343plg.66.2023.06.18.23.44.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jun 2023 23:44:03 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) From: Yuan Fu In-Reply-To: <834jn7uddh.fsf@gnu.org> Date: Sun, 18 Jun 2023 23:43:51 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jun 15, 2023, at 11:31 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 15 Jun 2023 22:05:33 -0700 >> Cc: Theodor Thornhill , >> Po Lu , >> 63840@debbugs.gnu.org >>=20 >>> Ping! Any progress with this? >>=20 >> The best option is to ask tree-sitter-c to recognize $. I see a PR = for it but the author closed it shortly after posting, not sure what was = going on[1]. >=20 > Any hope of re-opening it, or at least asking why it was closed > without fixing? I asked on GitHub. >=20 >> Fixing it ourselves involves checking every identifier during = fontification. Is that something we want to do? >=20 > How would that work? Can you describe how could this be implemented? > It is hard to decide whether it's something we want to do without > knowing the implications. I was going to write a demo implementation, but that actually would = change quite some lines. So let me just describe it for now. In = c-ts-mode--font-lock-settings, I would replace all the different types = of faces used for all the identifiers to a function. (If you search for = identifier in c-ts-mode--font-lock-settings, there are quite a few of = them.) This function would obviously receive the beg and end of the = identifier tree-sitter detects, and it would check if there are $ right = before or after the given range, if there is, it would extend the range = fontified. For example, for a code like abc$de, tree-sitter might consider abc as = an identifier, and $ de to be error. The function I mentioned would look = at abc=E2=80=99s beg and end, and see that c is immediately followed by = a $, so it would extend the fontification range to include abc$de. Yuan= From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168719183517045 (code B ref 63840); Mon, 19 Jun 2023 16:24:02 +0000 Received: (at 63840) by debbugs.gnu.org; 19 Jun 2023 16:23:55 +0000 Received: from localhost ([127.0.0.1]:57115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBHfX-0004Qp-9m for submit@debbugs.gnu.org; Mon, 19 Jun 2023 12:23:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBHfU-0004Qc-Ra for 63840@debbugs.gnu.org; Mon, 19 Jun 2023 12:23:53 -0400 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 1qBHfP-0004U6-Bq; Mon, 19 Jun 2023 12:23:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=cWMr10W/RsjvVG7zq8Az/LjlxpoJ+0Zfhy2OHESERDc=; b=PiitrajIbyy+8IZp+P9F N/5epJcKAi26qrgThRc60VEfTTJenD4zZW3YYFfso3puktktc856pVpSdQVWEk71m5LWlTDBwCWiW 7bNtbro3iXA3bo3wFyGSy2eHEDZI+N2sYgYo1PRofr6DErBah/7nCLwdNZcWGLhq1JTviaR2vfopc +nJrx2JfGtjsH1dp1Nma1KBth4Wq/zoOMTapY8K3OfhIPchVOUpk0S901WBGUnXnqLRcxjJGD9YM8 s/8TshVBQ7xHgIfBb8X2TM0ohRD/eJypinpQvOiaNkA5B9oIkZTq//1NTpsYUtSnB123ri/vFhRny /asDwmhQaqPRhQ==; 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 1qBHfO-0002eu-Mp; Mon, 19 Jun 2023 12:23:47 -0400 Date: Mon, 19 Jun 2023 19:23:51 +0300 Message-Id: <835y7j8lpk.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> (message from Yuan Fu on Sun, 18 Jun 2023 23:43:51 -0700) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Yuan Fu > Date: Sun, 18 Jun 2023 23:43:51 -0700 > Cc: Theodor Thornhill , > Po Lu , > 63840@debbugs.gnu.org > > > On Jun 15, 2023, at 11:31 PM, Eli Zaretskii wrote: > > > >> From: Yuan Fu > >> Date: Thu, 15 Jun 2023 22:05:33 -0700 > >> Cc: Theodor Thornhill , > >> Po Lu , > >> 63840@debbugs.gnu.org > >> > >>> Ping! Any progress with this? > >> > >> The best option is to ask tree-sitter-c to recognize $. I see a PR for it but the author closed it shortly after posting, not sure what was going on[1]. > > > > Any hope of re-opening it, or at least asking why it was closed > > without fixing? > > I asked on GitHub. > > > > >> Fixing it ourselves involves checking every identifier during fontification. Is that something we want to do? > > > > How would that work? Can you describe how could this be implemented? > > It is hard to decide whether it's something we want to do without > > knowing the implications. > > I was going to write a demo implementation, but that actually would change quite some lines. So let me just describe it for now. In c-ts-mode--font-lock-settings, I would replace all the different types of faces used for all the identifiers to a function. (If you search for identifier in c-ts-mode--font-lock-settings, there are quite a few of them.) This function would obviously receive the beg and end of the identifier tree-sitter detects, and it would check if there are $ right before or after the given range, if there is, it would extend the range fontified. > > For example, for a code like abc$de, tree-sitter might consider abc as an identifier, and $ de to be error. The function I mentioned would look at abc’s beg and end, and see that c is immediately followed by a $, so it would extend the fontification range to include abc$de. Thanks. This sounds like a lot of hair, so let's first see how the developers of the tree-sitter-c grammar respond. From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jun 2023 05:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Po Lu , 63840@debbugs.gnu.org, Theodor Thornhill Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168784527820365 (code B ref 63840); Tue, 27 Jun 2023 05:55:02 +0000 Received: (at 63840) by debbugs.gnu.org; 27 Jun 2023 05:54:38 +0000 Received: from localhost ([127.0.0.1]:47435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE1ev-0005IP-PX for submit@debbugs.gnu.org; Tue, 27 Jun 2023 01:54:38 -0400 Received: from mail-pf1-f170.google.com ([209.85.210.170]:59490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE1et-0005I9-7W for 63840@debbugs.gnu.org; Tue, 27 Jun 2023 01:54:37 -0400 Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-666ecf9a081so3796211b3a.2 for <63840@debbugs.gnu.org>; Mon, 26 Jun 2023 22:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687845269; x=1690437269; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MAxCYprVO0YBScKpX9EZp5HDDYttf6MkHSdCvXUcHeM=; b=c8kxDILZy9oTrtvG06qxS4Ow1GXZiDFNDmz0lltnOiKdgu9UFJw+IPsB5hrI037Qjl 8W/XdNXfQdFqIWkesUS89EYpiQu83oyvmQL/DwMm9ee6AM9zgScBU+VRxaOALcB9gunG 0Qid19VFVsjuvbYtIkf0N01CNTSkoqJdy6I7gMrepNpxYywdlI2/K30Oxl/ErsozjfLa b/HgDa8+aFfu9NoSG8TncEIRbRLsggCh9A+FyQQ6+7s6MtjCNj+JkvI0riPn73elv+F9 wLwN74bg/WYJQ+RTicAVC4ihETkKTyvzFLmgs1rqG3x79UqNoRZccBaztzz1KnJME/SO rmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687845269; x=1690437269; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MAxCYprVO0YBScKpX9EZp5HDDYttf6MkHSdCvXUcHeM=; b=QrqVnhn1oUWYoPM48nFOVuh3tQijANcHh+MCH7vxkJX2vJqaEkS0MJQ+uKhF43i6Lv vKI4QhwZ3IJ6/DEE0AMb689ZLlYvye+p1mk6/z/g3z2TE+QmMvI89nKwY2F5ZegdvREn RXZmvHLrTSPMejbCuoaNWSgyBKTMHplpog2i6dPqOswIglr9fo070K16pwh9W0vrRB1g cCWMwR6iH73OdQ9vN4xjxHBrp5so/1q0/QNmktnPhijabcgGQOy3C/ax6a4TiWbYFaDe 5FWE2H7VJ24vvRsM05bay3bnAc7od9H/T7sJ1p11a1RhbbAQcGxa8jOpcda02g2jR9Ra BaOg== X-Gm-Message-State: AC+VfDxHGyakAY6jVT762WpAIQ+ZFsADUXjXGZYSBE2ur+z7oyR3nhu0 pHVFamJ04RRjf0IvEGD2H10= X-Google-Smtp-Source: ACHHUZ49bXSE5xzUTLgfLs1wLxWZCen7FW9eTmVzpHBuClLL0bP9/NqyE0FQd24rMcGFZl0599Jm7w== X-Received: by 2002:a05:6a20:7f84:b0:112:1e0d:14ae with SMTP id d4-20020a056a207f8400b001121e0d14aemr39658078pzj.7.1687845268799; Mon, 26 Jun 2023 22:54:28 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id a9-20020aa780c9000000b0064d45eea573sm4626960pfn.41.2023.06.26.22.54.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2023 22:54:28 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) From: Yuan Fu In-Reply-To: <835y7j8lpk.fsf@gnu.org> Date: Mon, 26 Jun 2023 22:54:16 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jun 19, 2023, at 9:23 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sun, 18 Jun 2023 23:43:51 -0700 >> Cc: Theodor Thornhill , >> Po Lu , >> 63840@debbugs.gnu.org >>=20 >>> On Jun 15, 2023, at 11:31 PM, Eli Zaretskii wrote: >>>=20 >>>> From: Yuan Fu >>>> Date: Thu, 15 Jun 2023 22:05:33 -0700 >>>> Cc: Theodor Thornhill , >>>> Po Lu , >>>> 63840@debbugs.gnu.org >>>>=20 >>>>> Ping! Any progress with this? >>>>=20 >>>> The best option is to ask tree-sitter-c to recognize $. I see a PR = for it but the author closed it shortly after posting, not sure what was = going on[1]. >>>=20 >>> Any hope of re-opening it, or at least asking why it was closed >>> without fixing? >>=20 >> I asked on GitHub. >>=20 >>>=20 >>>> Fixing it ourselves involves checking every identifier during = fontification. Is that something we want to do? >>>=20 >>> How would that work? Can you describe how could this be = implemented? >>> It is hard to decide whether it's something we want to do without >>> knowing the implications. >>=20 >> I was going to write a demo implementation, but that actually would = change quite some lines. So let me just describe it for now. In = c-ts-mode--font-lock-settings, I would replace all the different types = of faces used for all the identifiers to a function. (If you search for = identifier in c-ts-mode--font-lock-settings, there are quite a few of = them.) This function would obviously receive the beg and end of the = identifier tree-sitter detects, and it would check if there are $ right = before or after the given range, if there is, it would extend the range = fontified. >>=20 >> For example, for a code like abc$de, tree-sitter might consider abc = as an identifier, and $ de to be error. The function I mentioned would = look at abc=E2=80=99s beg and end, and see that c is immediately = followed by a $, so it would extend the fontification range to include = abc$de. >=20 > Thanks. This sounds like a lot of hair, so let's first see how the > developers of the tree-sitter-c grammar respond. Cool. (Not surprisingly) I didn=E2=80=99t get any reply on GitHub as for = now. It would be nice if tree-sitter-c (and other grammars) can have a = separate maintainer other than tree-sitter=E2=80=99s author. He seems to = be heavily overloaded right now (tree-sitter, a dozen grammars, Zed = editor). Yuan From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jun 2023 11:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168786391630494 (code B ref 63840); Tue, 27 Jun 2023 11:06:02 +0000 Received: (at 63840) by debbugs.gnu.org; 27 Jun 2023 11:05:16 +0000 Received: from localhost ([127.0.0.1]:47741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE6VY-0007vm-D4 for submit@debbugs.gnu.org; Tue, 27 Jun 2023 07:05:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE6VW-0007vZ-V1 for 63840@debbugs.gnu.org; Tue, 27 Jun 2023 07:05:15 -0400 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 1qE6VQ-000264-HK; Tue, 27 Jun 2023 07:05:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=eDfxvmrzjje2+Gaobn8Jjsq2kvNK/z6p4AWFLnMB/6Q=; b=GJCM1VPLVuWqMLoXNSX0 2xDx+6WAnQM5HrqGgeEpVkmjpVAj6Eb9fekaOL/FzChHkYJLdgJCIILRLJeIdPGBqa4eRf8O1ig2l V2ZCXKSEReSJ1cFfKAIDJGIfWDP5JmPG8Oh6yRtO69mwpqr5DFJQ83/sXzei4QFg2LBLvABx6QCNG /Nrae3mAYH2YK8EKR0kta4yTWZaasuOd1PXl+upJY//FbuglWSwd93DF35lqBhRlARTG3eZF5OgCf F7Xo66nXQ9vZRJV2MDdayZF8uw+8drrM3PUVD/pcmlAfH4STOtV459wVL/P+ve5hdwLjUfLf7Yv7n Y1L0u5TRCo/iBw==; 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 1qE6VN-0000EP-8n; Tue, 27 Jun 2023 07:05:07 -0400 Date: Tue, 27 Jun 2023 14:05:28 +0300 Message-Id: <83ilb9w4g7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> (message from Yuan Fu on Mon, 26 Jun 2023 22:54:16 -0700) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Yuan Fu > Date: Mon, 26 Jun 2023 22:54:16 -0700 > Cc: Theodor Thornhill , > Po Lu , > 63840@debbugs.gnu.org > > > > > On Jun 19, 2023, at 9:23 AM, Eli Zaretskii wrote: > > > >> From: Yuan Fu > >> Date: Sun, 18 Jun 2023 23:43:51 -0700 > >> Cc: Theodor Thornhill , > >> Po Lu , > >> 63840@debbugs.gnu.org > >> > >>> On Jun 15, 2023, at 11:31 PM, Eli Zaretskii wrote: > >>> > >>>> From: Yuan Fu > >>>> Date: Thu, 15 Jun 2023 22:05:33 -0700 > >>>> Cc: Theodor Thornhill , > >>>> Po Lu , > >>>> 63840@debbugs.gnu.org > >>>> > >>>>> Ping! Any progress with this? > >>>> > >>>> The best option is to ask tree-sitter-c to recognize $. I see a PR for it but the author closed it shortly after posting, not sure what was going on[1]. > >>> > >>> Any hope of re-opening it, or at least asking why it was closed > >>> without fixing? > >> > >> I asked on GitHub. > >> > >>> > >>>> Fixing it ourselves involves checking every identifier during fontification. Is that something we want to do? > >>> > >>> How would that work? Can you describe how could this be implemented? > >>> It is hard to decide whether it's something we want to do without > >>> knowing the implications. > >> > >> I was going to write a demo implementation, but that actually would change quite some lines. So let me just describe it for now. In c-ts-mode--font-lock-settings, I would replace all the different types of faces used for all the identifiers to a function. (If you search for identifier in c-ts-mode--font-lock-settings, there are quite a few of them.) This function would obviously receive the beg and end of the identifier tree-sitter detects, and it would check if there are $ right before or after the given range, if there is, it would extend the range fontified. > >> > >> For example, for a code like abc$de, tree-sitter might consider abc as an identifier, and $ de to be error. The function I mentioned would look at abc’s beg and end, and see that c is immediately followed by a $, so it would extend the fontification range to include abc$de. > > > > Thanks. This sounds like a lot of hair, so let's first see how the > > developers of the tree-sitter-c grammar respond. > > Cool. (Not surprisingly) I didn’t get any reply on GitHub as for now. It would be nice if tree-sitter-c (and other grammars) can have a separate maintainer other than tree-sitter’s author. He seems to be heavily overloaded right now (tree-sitter, a dozen grammars, Zed editor). Would it be possible for you or someone else of the interested Emacs users to submit a patch for the grammar library to support $, either as an option or as an extension? IOW, is it hard to modify the TS grammar definitions for such relatively simple and straightforward extensions? From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 01:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Po Lu , 63840@debbugs.gnu.org, Theodor Thornhill Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.16879168059208 (code B ref 63840); Wed, 28 Jun 2023 01:47:01 +0000 Received: (at 63840) by debbugs.gnu.org; 28 Jun 2023 01:46:45 +0000 Received: from localhost ([127.0.0.1]:49756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEKGa-0002OS-S9 for submit@debbugs.gnu.org; Tue, 27 Jun 2023 21:46:45 -0400 Received: from mail-pf1-f169.google.com ([209.85.210.169]:47412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEKGY-0002OE-UM for 63840@debbugs.gnu.org; Tue, 27 Jun 2023 21:46:44 -0400 Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6682909acadso2834458b3a.3 for <63840@debbugs.gnu.org>; Tue, 27 Jun 2023 18:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687916797; x=1690508797; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Q+TyyDg5S41eROleEuWu3h9ytLwVRLzgAFrBjK79nqs=; b=dSzVuaO8iQcD1QFc2T5u80uQjRV629tf+/ocEexrXAKFGRExdtj5NCthjGPq6WWyX1 jJLOsF+0SB6CWSkh9NMJ+6Q4hQgIzMhYRQplE5vlL056HW7c4T5CH9LNglNPQQDyMeWq eOqw2jbnmYfCzs7cx/050bLTJRJPcXVVfr8LKcfcQS7Rrv0eYITVhFpLw0TgoQrnk1nB X05yYiFgwce0q1j4ukSIBSQ7iaWwq3F+XKecnHV0JEpbJncXHb7jerQ+aYSBI9rogAqM N1p/LtGYLVDawIZzCb2pVzUyipYP98bvvUqQ8RsdtJYKlHVirC/OcYAmipfuATtdueee aL3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687916797; x=1690508797; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q+TyyDg5S41eROleEuWu3h9ytLwVRLzgAFrBjK79nqs=; b=krWfdpFxewdAH4VApXFCz7V/t2tgnpcRzpAwJpXUkeE+wG7IhtGb5vF41BhvY0n1aW w5DvqEHVzFOf4qOOAIOorr6m9pGmRW+qn5KIu7OYgrye8r5ArR9Az8lcjJk8WEIdC5Yh JwJnCnYh6I3xRpDbnt4nlP7oVKaZIbm86FjduXyAriNrQrQhGZ8nHOpAKHjVDMotad8u WIa0A/DZdIS4mDanE+qcRa500/H/WN32x2FYn3kT6xbG3sr9zepytCk2aBIXE15a6tqf vrZScgsdInu3QLs3GR4yUdg5f8Qn19F42Nbeqhf1/g+VcItrbSb4U2EBCGMWxCJ+CAHT s1nA== X-Gm-Message-State: AC+VfDzwqa/AbKFAKLotkyWD6e+C5DBnPyycMVK9jwgaxzbxgv7CidTb 6yir4GPuMYvp4OxYjDmtflU= X-Google-Smtp-Source: ACHHUZ6vthpEOTMS5PZ9s5gq+RgiZebqgqdrVoMuCq9TS4imWKfLjtuyUPggt5nuUKli88qpW1faow== X-Received: by 2002:a05:6a20:a103:b0:127:8784:8e5b with SMTP id q3-20020a056a20a10300b0012787848e5bmr5678659pzk.31.1687916796681; Tue, 27 Jun 2023 18:46:36 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id m18-20020a170902db1200b001ac8e0ea157sm6553581plx.144.2023.06.27.18.46.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2023 18:46:36 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) From: Yuan Fu In-Reply-To: <83ilb9w4g7.fsf@gnu.org> Date: Tue, 27 Jun 2023 18:46:24 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> <83ilb9w4g7.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jun 27, 2023, at 4:05 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Mon, 26 Jun 2023 22:54:16 -0700 >> Cc: Theodor Thornhill , >> Po Lu , >> 63840@debbugs.gnu.org >>=20 >>=20 >>=20 >>> On Jun 19, 2023, at 9:23 AM, Eli Zaretskii wrote: >>>=20 >>>> From: Yuan Fu >>>> Date: Sun, 18 Jun 2023 23:43:51 -0700 >>>> Cc: Theodor Thornhill , >>>> Po Lu , >>>> 63840@debbugs.gnu.org >>>>=20 >>>>> On Jun 15, 2023, at 11:31 PM, Eli Zaretskii wrote: >>>>>=20 >>>>>> From: Yuan Fu >>>>>> Date: Thu, 15 Jun 2023 22:05:33 -0700 >>>>>> Cc: Theodor Thornhill , >>>>>> Po Lu , >>>>>> 63840@debbugs.gnu.org >>>>>>=20 >>>>>>> Ping! Any progress with this? >>>>>>=20 >>>>>> The best option is to ask tree-sitter-c to recognize $. I see a = PR for it but the author closed it shortly after posting, not sure what = was going on[1]. >>>>>=20 >>>>> Any hope of re-opening it, or at least asking why it was closed >>>>> without fixing? >>>>=20 >>>> I asked on GitHub. >>>>=20 >>>>>=20 >>>>>> Fixing it ourselves involves checking every identifier during = fontification. Is that something we want to do? >>>>>=20 >>>>> How would that work? Can you describe how could this be = implemented? >>>>> It is hard to decide whether it's something we want to do without >>>>> knowing the implications. >>>>=20 >>>> I was going to write a demo implementation, but that actually would = change quite some lines. So let me just describe it for now. In = c-ts-mode--font-lock-settings, I would replace all the different types = of faces used for all the identifiers to a function. (If you search for = identifier in c-ts-mode--font-lock-settings, there are quite a few of = them.) This function would obviously receive the beg and end of the = identifier tree-sitter detects, and it would check if there are $ right = before or after the given range, if there is, it would extend the range = fontified. >>>>=20 >>>> For example, for a code like abc$de, tree-sitter might consider abc = as an identifier, and $ de to be error. The function I mentioned would = look at abc=E2=80=99s beg and end, and see that c is immediately = followed by a $, so it would extend the fontification range to include = abc$de. >>>=20 >>> Thanks. This sounds like a lot of hair, so let's first see how the >>> developers of the tree-sitter-c grammar respond. >>=20 >> Cool. (Not surprisingly) I didn=E2=80=99t get any reply on GitHub as = for now. It would be nice if tree-sitter-c (and other grammars) can have = a separate maintainer other than tree-sitter=E2=80=99s author. He seems = to be heavily overloaded right now (tree-sitter, a dozen grammars, Zed = editor). >=20 > Would it be possible for you or someone else of the interested Emacs > users to submit a patch for the grammar library to support $, either > as an option or as an extension? IOW, is it hard to modify the > TS grammar definitions for such relatively simple and straightforward > extensions? There is a PR for it on GitHub (under which I left a comment). Judging = from the PR, it=E2=80=99s simple to add support for $. Yuan= From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 02:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.168791961114422 (code B ref 63840); Wed, 28 Jun 2023 02:34:01 +0000 Received: (at 63840) by debbugs.gnu.org; 28 Jun 2023 02:33:31 +0000 Received: from localhost ([127.0.0.1]:49775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEKzq-0003kY-Rg for submit@debbugs.gnu.org; Tue, 27 Jun 2023 22:33:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEKzm-0003kC-CE for 63840@debbugs.gnu.org; Tue, 27 Jun 2023 22:33:30 -0400 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 1qEKzd-0003kI-No; Tue, 27 Jun 2023 22:33:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Zf8kUXonxHXI/0v4fjDw7uCxf7L6LTQj96vErk5Pufk=; b=sgqMmPSIsY1monMtw1jq 03o+oVT3RUvk6feGc0vYux1R9GkyX+3gLJT7scw8Hw+GW0wnan2zg8X7BmR9OxtgRR/KvgeE6PDOx ia30dTNDF2SCORm9zFg8j9AoDmgiKiaKxkcRuQgwpoXkFwZmqH/LBiEHEW0dXgjWdU6JKewbOw2Bw Fh/WA5n/0UtOUdXtlIQBfp3DF91hTFkizJaxwAU99PqQI7yO7j72IXyYRYOZCKxa5czEirTPiJ1+2 sw2RDnddNbICCz1K4R+ZBtLEShwTBTlWIHRYxLjMk8UBY7IoFqD39TKIShU41s/vYETquva73ScXn aTX2lYO/z3lecQ==; 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 1qEKzd-00065u-7j; Tue, 27 Jun 2023 22:33:17 -0400 Date: Wed, 28 Jun 2023 05:33:41 +0300 Message-Id: <83ttusuxh6.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Yuan Fu on Tue, 27 Jun 2023 18:46:24 -0700) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> <83ilb9w4g7.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Yuan Fu > Date: Tue, 27 Jun 2023 18:46:24 -0700 > Cc: Theodor Thornhill , > Po Lu , > 63840@debbugs.gnu.org > > > Would it be possible for you or someone else of the interested Emacs > > users to submit a patch for the grammar library to support $, either > > as an option or as an extension? IOW, is it hard to modify the > > TS grammar definitions for such relatively simple and straightforward > > extensions? > > There is a PR for it on GitHub (under which I left a comment). Judging from the PR, it’s simple to add support for $. If so, perhaps just pinging about it from time to time is all that should be done. From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Oct 2023 21:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Yuan Fu Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.169619464032332 (code B ref 63840); Sun, 01 Oct 2023 21:11:02 +0000 Received: (at 63840) by debbugs.gnu.org; 1 Oct 2023 21:10:40 +0000 Received: from localhost ([127.0.0.1]:35511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qn3i4-0008PP-8L for submit@debbugs.gnu.org; Sun, 01 Oct 2023 17:10:40 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:45454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qn3i2-0008PB-Fn for 63840@debbugs.gnu.org; Sun, 01 Oct 2023 17:10:39 -0400 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c131ddfeb8so237893301fa.3 for <63840@debbugs.gnu.org>; Sun, 01 Oct 2023 14:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696194616; x=1696799416; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=jMH9Dlr+yt3jWD2dLn7Qpz8ung7qbDpX9XpuNhbdaMc=; b=LxbdAU7BjeaRk+odv6/C1oQub3alk+uLm89C/ZM4Zz0bGTk8ORT1WyWPclasfCP2L1 bdj+BZj4wuN9m87ipl3nMIkfuF7TKr+JbzmuMsZhA3gS/SCFxR2+oBoiYVPRAwYgco3A N1DJSDmJLnQrxI1d34DzXwBirCKjxNmwA+FI6+mQjhyVBHfbbh6TIij6t0twSenE1Rd7 NZAnOgKGut7iIoeEyKOEbOHCQjWW1sTafav/QW3QvXu8M0G3H24RTtlMZO8Ra9awbI2j XRIEfMWKEqDwzI6zl0noOAp3ZAKtNDQfc6EdZ70QB0s3R2Fl5m2xzuh1F1o3DS5NmjIT /EIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696194616; x=1696799416; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=jMH9Dlr+yt3jWD2dLn7Qpz8ung7qbDpX9XpuNhbdaMc=; b=BZgcsOhvcngRicNx2wwrl33wBiQAeFcvz8jkTf3Y02YjFFcNMzsq3aC8WgSmZMKw1G KLTNBJFkN45ufmwXdy+C1Ihg0iH8cJL/y0bRD9KmJlr0DyCZjLZHNa8poUEeREOst8S8 BbX3H8u5veN7EWW7Uhku7ibhPbxCMLHkrVawGbcp9y/Xwmov8LUzVCB+YGA5ltBsypD/ RnVDW34ABrlb28KoBC3yvTYll7DvJhnz+dyEPGTe3o5i3mCV1UxmAIpXSMNfNLRIoCwY 00URzKYy03XrFz7QMk5kSknZ7imr3uSCBh8GjfZ3ev7rlnOMebtiwEQpqtSbemGcoaIX 7bEQ== X-Gm-Message-State: AOJu0YwN1LHemg8asG7aEAMiS2NdjGc3/oCmhcR2ppj0hoj3/dkR5wM6 78+eDcMH/RO8Qma4JZp9bC+W5BbRh9WD2UAg95Y= X-Google-Smtp-Source: AGHT+IGVfH//CA+yRtb9R33mpTYBL9Qvvntl9C9EIcI6uPxspqSDzStb5+OZOqU3R0R8UsxlBDnVB6ZtuC1DZz71fs4= X-Received: by 2002:a2e:9c07:0:b0:2bc:ce85:2de2 with SMTP id s7-20020a2e9c07000000b002bcce852de2mr7611136lji.37.1696194616036; Sun, 01 Oct 2023 14:10:16 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 1 Oct 2023 14:10:15 -0700 From: Stefan Kangas In-Reply-To: <83ttusuxh6.fsf@gnu.org> References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> <83ilb9w4g7.fsf@gnu.org> <83ttusuxh6.fsf@gnu.org> MIME-Version: 1.0 Date: Sun, 1 Oct 2023 14:10:15 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Yuan Fu >> Date: Tue, 27 Jun 2023 18:46:24 -0700 >> Cc: Theodor Thornhill , >> Po Lu , >> 63840@debbugs.gnu.org >> >> > Would it be possible for you or someone else of the interested Emacs >> > users to submit a patch for the grammar library to support $, either >> > as an option or as an extension? IOW, is it hard to modify the >> > TS grammar definitions for such relatively simple and straightforward >> > extensions? >> >> There is a PR for it on GitHub (under which I left a comment). Judging f= rom the PR, it=E2=80=99s simple to add support for $. > > If so, perhaps just pinging about it from time to time is all that > should be done. Does it make sense to keep this bug open on our side if we only intend to wait for upstream support? Or should we close it as wontfix? From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Oct 2023 05:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, casouri@gmail.com, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.169622613817825 (code B ref 63840); Mon, 02 Oct 2023 05:56:01 +0000 Received: (at 63840) by debbugs.gnu.org; 2 Oct 2023 05:55:38 +0000 Received: from localhost ([127.0.0.1]:35759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnBu6-0004dP-0O for submit@debbugs.gnu.org; Mon, 02 Oct 2023 01:55:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnBtu-0004cy-Ue for 63840@debbugs.gnu.org; Mon, 02 Oct 2023 01:55:36 -0400 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 1qnBtY-0001XH-Ve; Mon, 02 Oct 2023 01:55:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=YE/h14dwNwTeS2ZAuxi45rHfU9/PkoZZGsc7H2EelTg=; b=jGSXzwpz4k9iEYZ7h8iv 8s5KGEF7YBjnz/S3kB46z8AH77+2wbTBGg91o8IxaYPRWATs4A1FjCs565AatYAUo2bsoHAWn4xzp hpDMcgFJQzssKprF6Wi+Pfu6gTEMAcDCctES+tTq75nf3loHub8j+JjGx+AgbRkh6O5fd0MDEAZuH UHuHbu5lqwo9dvKfmcWflIXTm1R0a477GlvKqJ79reu4JyXMeU/7lveAcorTzr3VBD8c1ZcXdujt9 vgQX4YzOTaV1usovBI0YpJzytcJILxP6Mc8LnJHNvbbPs04qtZR+fgt+b7lVz3Zg3QdHPpuZRnHeE 1QpJ+ZPGvzWoyA==; Date: Mon, 02 Oct 2023 08:55:01 +0300 Message-Id: <835y3p8t6y.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Stefan Kangas on Sun, 1 Oct 2023 14:10:15 -0700) References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> <83ilb9w4g7.fsf@gnu.org> <83ttusuxh6.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Kangas > Date: Sun, 1 Oct 2023 14:10:15 -0700 > Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, theo@thornhill.no > > Eli Zaretskii writes: > > >> From: Yuan Fu > >> Date: Tue, 27 Jun 2023 18:46:24 -0700 > >> Cc: Theodor Thornhill , > >> Po Lu , > >> 63840@debbugs.gnu.org > >> > >> > Would it be possible for you or someone else of the interested Emacs > >> > users to submit a patch for the grammar library to support $, either > >> > as an option or as an extension? IOW, is it hard to modify the > >> > TS grammar definitions for such relatively simple and straightforward > >> > extensions? > >> > >> There is a PR for it on GitHub (under which I left a comment). Judging from the PR, it’s simple to add support for $. > > > > If so, perhaps just pinging about it from time to time is all that > > should be done. > > Does it make sense to keep this bug open on our side if we only intend > to wait for upstream support? Or should we close it as wontfix? We could indeed close it. From unknown Sun Jun 22 17:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Oct 2023 06:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: luangruo@yahoo.com, 63840@debbugs.gnu.org, casouri@gmail.com, theo@thornhill.no Received: via spool by 63840-submit@debbugs.gnu.org id=B63840.169622907523031 (code B ref 63840); Mon, 02 Oct 2023 06:45:01 +0000 Received: (at 63840) by debbugs.gnu.org; 2 Oct 2023 06:44:35 +0000 Received: from localhost ([127.0.0.1]:35780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnCfT-0005zO-1F for submit@debbugs.gnu.org; Mon, 02 Oct 2023 02:44:35 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:54433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnCfQ-0005yv-7u for 63840@debbugs.gnu.org; Mon, 02 Oct 2023 02:44:33 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bff776fe0bso255492301fa.0 for <63840@debbugs.gnu.org>; Sun, 01 Oct 2023 23:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696229050; x=1696833850; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=yCZeUH/lzk+Coz33sPWF+4vWnBS4It6IIfg2DqFVxtc=; b=MhMNDBQrsh5eBu9JKCsRtsMRPYNOoyVTr8QsS7YeoVoe5rmRPlxyW9s/Gj8NTHV8j1 oKosC+Yu29s8wDhioHdmBH72Ycqyql+Rqk3nI6232IYHKDmEBn8b8pNY/iPRl3g+ltVE nPzDAtn2thEtvvmq7xbaBpJ9+pK5jxxJVU7/759B3tTwwQeSYsM7MmGpeyit0pnxlDTw mMnodFxiI5JodeAl+WaAmv8FVH6K7oQEcjxJ8SeNvaldrrnXML8GrtHcV8iX45sOBryo 5SmO3CDAlhqscXDiRWhaPdfAi2GHuV+wdrXot9hKlwPr/zsFC1Fv+N7oUtCRowIvcYnv 8mVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696229050; x=1696833850; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yCZeUH/lzk+Coz33sPWF+4vWnBS4It6IIfg2DqFVxtc=; b=hIU5H3J7m1bMpOhq9rJBDAeYobmA5q+UNSu21XkL5/bSossHrJdWrRgC09AGWWJsso d9ZumU/9+hA6kKf2/H9ZhkPkbnAi5Ava7FbDQYbKVe13I9nOsP2usY9sf2rqS+omT3Zx alD5XUjFmDPjdXLEwf4LrG9RwnekMXcN6AbhWYifatTJEPND744mdvHn7C6l28yJNqiz +Yl0664k6u72iHQVDdUvk88PewUNwCFFdi+yYaVqqZYzQxmdnZOw6DWo3lQPSAPpH6qA zrNHRYULJ4SQE6yKzrAWis8EAIZgUmi9yNMKeox2wIpoIVFc+WEEsFTpRVWYQbKKl8Cu qJQg== X-Gm-Message-State: AOJu0YxTI0hF+5Cr9jVC5vpNmiqcMjNx+g2IClTsG8+a9tlTMli+5GZA mrlPjb80w0QKcVHfVSeBTOacn7v+L/Zp5vlI/L8= X-Google-Smtp-Source: AGHT+IFZ+brf0i76jEKdvQQigRNLgeS0n9gOvp9j/9NsPxI3Pe62qtMg5ovTNwx6PO5yVDARUlqkhqdcuNYzuj7IZXM= X-Received: by 2002:a2e:978b:0:b0:2bc:b46b:686b with SMTP id y11-20020a2e978b000000b002bcb46b686bmr8684770lji.34.1696229049590; Sun, 01 Oct 2023 23:44:09 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 1 Oct 2023 23:44:08 -0700 From: Stefan Kangas In-Reply-To: <835y3p8t6y.fsf@gnu.org> References: <87fs7anjwq.fsf.ref@yahoo.com> <87fs7anjwq.fsf@yahoo.com> <835y86auxi.fsf@gnu.org> <692BAB16-A7DD-4080-871A-FB541329CCFC@gmail.com> <873532jq2a.fsf@yahoo.com> <83zg51tgjd.fsf@gnu.org> <868C5538-F021-4EF8-9730-0828FC9BD801@gmail.com> <834jn7uddh.fsf@gnu.org> <6871B1D5-9B52-47C0-BB6F-5C41655CD33B@gmail.com> <835y7j8lpk.fsf@gnu.org> <4CB53EB5-CFBE-40F4-A303-353B3D891FA5@gmail.com> <83ilb9w4g7.fsf@gnu.org> <83ttusuxh6.fsf@gnu.org> <835y3p8t6y.fsf@gnu.org> MIME-Version: 1.0 Date: Sun, 1 Oct 2023 23:44:08 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 63840 notabug close 63840 thanks Eli Zaretskii writes: >> Does it make sense to keep this bug open on our side if we only intend >> to wait for upstream support? Or should we close it as wontfix? > > We could indeed close it. Done.