From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 11:27:23 2023 Received: (at submit) by debbugs.gnu.org; 4 Feb 2023 16:27:23 +0000 Received: from localhost ([127.0.0.1]:43290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLNr-0007Zq-7m for submit@debbugs.gnu.org; Sat, 04 Feb 2023 11:27:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:39148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLNo-0007Zf-1G for submit@debbugs.gnu.org; Sat, 04 Feb 2023 11:27:21 -0500 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 1pOLNn-00047A-QK for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 11:27:19 -0500 Received: from mx3.muc.de ([193.149.48.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOLNl-0001g8-Tw for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 11:27:19 -0500 Received: (qmail 87651 invoked by uid 3782); 4 Feb 2023 17:27:14 +0100 Received: from acm.muc.de (p4fe158f1.dip0.t-ipconnect.de [79.225.88.241]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 04 Feb 2023 17:27:14 +0100 Received: (qmail 13486 invoked by uid 1000); 4 Feb 2023 16:27:13 -0000 Date: Sat, 4 Feb 2023 16:27:13 +0000 To: bug-gnu-emacs@gnu.org Subject: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.5; envelope-from=acm@muc.de; helo=mx3.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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: -2.4 (--) Hello, Emacs. In master (or probably the release branch), setting treesit-font-lock-level to 2 for c-ts-mode fontifies variable definitions, but not the parameter definitions of a C function. For example, in int foo (int bar) { int baz; baz = bar; return baz; } , the definition of bar is not fontified, but that of baz is. There doesn't appear to be a (documented) way to get something similar to C Mode's fontification, where the declarations of variables and parameters were fontified, but not their use. This is a fontification detail I would very much like to have. In long straggling C functions, variables are frequently declared in the middle of the functions, and having the declarations stand out makes it easy to search for them with the eye. It is less easy if parameters aren't also fontified. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 11:57:23 2023 Received: (at 61275) by debbugs.gnu.org; 4 Feb 2023 16:57:23 +0000 Received: from localhost ([127.0.0.1]:43316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLqt-0008Np-0C for submit@debbugs.gnu.org; Sat, 04 Feb 2023 11:57:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLqq-0008Nb-O6 for 61275@debbugs.gnu.org; Sat, 04 Feb 2023 11:57:21 -0500 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 1pOLql-0006TV-Bf; Sat, 04 Feb 2023 11:57:15 -0500 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=fHmTPchk6WoINQjJ2Go0KcuBcXqTKcnpA4Ypl99WW2k=; b=QOPDUeOJ9H7N nJNORYtaxCbkiiAI5Esxee4m1xN2V3tLfmWBZ8DjR+3co4+Ljo15b6yK1Wuf0I+iwXNR6fd1tBEhF MBsjKLXq2CwfCt9tjRmHz/twt495T9Q9nbeQGO8xCyg1HvYmK92+UCBWDGEzxezOXe2mX3zW1RPLw 4SnPEb2KVvuEHYpIUXftgLAZ7u8QCfJ+tmR+S3Qgu6QYXozHm5k8lCKmryyB7byHDF6tPtRa5xQC9 KWelP4tpmpOwRYnGVyfAhhVfZOvFvXqIpHoxLTnrkMtshKFMRRrwRUkPR8jo3TJSHnyqKfl5/e7BW mjjH8ocDCh7MWTPi+9FHqg==; 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 1pOLqd-00010Z-HU; Sat, 04 Feb 2023 11:57:14 -0500 Date: Sat, 04 Feb 2023 18:57:15 +0200 Message-Id: <83leldtllg.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-Reply-To: (message from Alan Mackenzie on Sat, 4 Feb 2023 16:27:13 +0000) Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61275 Cc: 61275@debbugs.gnu.org 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: Sat, 4 Feb 2023 16:27:13 +0000 > From: Alan Mackenzie > > int foo (int bar) > { > int baz; > > baz = bar; > return baz; > } > > , the definition of bar is not fontified, but that of baz is. By "the definition of bar", do you mean this: int foo (int bar) ^^^ or do you mean something else? From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 12:00:55 2023 Received: (at 61275) by debbugs.gnu.org; 4 Feb 2023 17:00:55 +0000 Received: from localhost ([127.0.0.1]:43328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLuJ-0008Ul-9S for submit@debbugs.gnu.org; Sat, 04 Feb 2023 12:00:55 -0500 Received: from mx3.muc.de ([193.149.48.5]:49478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLuH-0008UX-4T for 61275@debbugs.gnu.org; Sat, 04 Feb 2023 12:00:53 -0500 Received: (qmail 98250 invoked by uid 3782); 4 Feb 2023 18:00:46 +0100 Received: from acm.muc.de (p4fe158f1.dip0.t-ipconnect.de [79.225.88.241]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 04 Feb 2023 18:00:46 +0100 Received: (qmail 13755 invoked by uid 1000); 4 Feb 2023 17:00:45 -0000 Date: Sat, 4 Feb 2023 17:00:45 +0000 To: Eli Zaretskii Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. Message-ID: References: <83leldtllg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83leldtllg.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61275 Cc: 61275@debbugs.gnu.org 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 (-) Hello, Eli. On Sat, Feb 04, 2023 at 18:57:15 +0200, Eli Zaretskii wrote: > > Date: Sat, 4 Feb 2023 16:27:13 +0000 > > From: Alan Mackenzie > > int foo (int bar) > > { > > int baz; > > baz = bar; > > return baz; > > } > > , the definition of bar is not fontified, but that of baz is. > By "the definition of bar", do you mean this: > int foo (int bar) > ^^^ Yes, that's precisely what I meant. > or do you mean something else? No. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 12:13:48 2023 Received: (at 61275) by debbugs.gnu.org; 4 Feb 2023 17:13:48 +0000 Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOM6m-0000Ml-H8 for submit@debbugs.gnu.org; Sat, 04 Feb 2023 12:13:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOM6k-0000MQ-0I for 61275@debbugs.gnu.org; Sat, 04 Feb 2023 12:13:47 -0500 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 1pOM6d-0000nc-R4; Sat, 04 Feb 2023 12:13:39 -0500 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=9wGYGwu9awAjih1xipBpt/xJTYuwMwQpYAaFYaYIwYI=; b=X5D7i9l2CJV5 Boc7/2dqGkptRiMEGW63rtm7zJF/054xdV8LqKXwZ+nGGl9UhZqLJTEOce2s3D73wBX7MOeXgPkSB I9BX0Rl0Lf1GXOixq/ou3Kfx5UZLjqfsBVcvRFPbNnaYj+Gg3FdTYIayEiQMvRgXH/AbjakrRqAn7 OMINnAriRPzJ7o2KnEn9hF+uVmZ90e8hxF4oB9O82T2bxg551AdkLfhqgxXFylKXt0yBhjDiNuy57 Mud7j48qnyw0J5mvynt8wzQS1E9uo6A8t9oHNUHFl2spLJSO5/GekevJ2Ukk2KAk7m3W4hHFaajdU ZjZrAfHzH2mricyMwulD7Q==; 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 1pOM6Z-00068O-QL; Sat, 04 Feb 2023 12:13:38 -0500 Date: Sat, 04 Feb 2023 19:13:43 +0200 Message-Id: <83h6w1tku0.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-Reply-To: (message from Alan Mackenzie on Sat, 4 Feb 2023 17:00:45 +0000) Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. References: <83leldtllg.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61275 Cc: 61275@debbugs.gnu.org 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: Sat, 4 Feb 2023 17:00:45 +0000 > Cc: 61275@debbugs.gnu.org > From: Alan Mackenzie > > > By "the definition of bar", do you mean this: > > > int foo (int bar) > > ^^^ > > Yes, that's precisely what I meant. I believe this is known as "parameter declaration". From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 12:20:04 2023 Received: (at 61275) by debbugs.gnu.org; 4 Feb 2023 17:20:05 +0000 Received: from localhost ([127.0.0.1]:43357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOMCq-0000Y1-K1 for submit@debbugs.gnu.org; Sat, 04 Feb 2023 12:20:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOMCm-0000XO-27 for 61275@debbugs.gnu.org; Sat, 04 Feb 2023 12:20:02 -0500 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 1pOMCf-0001p0-Sd; Sat, 04 Feb 2023 12:19:53 -0500 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=xRtWFCDf4LbIWFj16YykwAYzo2QZDjkTvOqyYAXoJrQ=; b=qTvOmBZbpYCo 1Cht/TjVUqOJRDiDpyIHuAMF2jAwgZFde64sqFM6qCfP5MFV/vkLwjOZOBtnFhAd9RJEg9pPl3pl9 l405DbcBW3q951JMMkZxLk32x8fje+ijGSlQ0MM3r2un7FD9+MGP9PT58TlrApKnHG0vTroFXDJC5 8UifgZxKqVGle+C8WakWJj9Do25YIdCTv50ElykfSydyoAJa5vGWieOSpJLhcVxqxZt0EtaKhX3Zu L6Fd07ivycoDwXjYDNwy0TVl7cD/DUTKdO1h+gYqbUS9EMxRunfNMDjEfnGOzIwMJjLkVdZ24KeFJ XXql/v4lNtGN8s5S51VAAQ==; 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 1pOMCe-0006ot-Ok; Sat, 04 Feb 2023 12:19:53 -0500 Date: Sat, 04 Feb 2023 19:20:01 +0200 Message-Id: <83edr5tkji.fsf@gnu.org> From: Eli Zaretskii To: acm@muc.de, Theodor Thornhill , Yuan Fu In-Reply-To: <83h6w1tku0.fsf@gnu.org> (message from Eli Zaretskii on Sat, 04 Feb 2023 19:13:43 +0200) Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. References: <83leldtllg.fsf@gnu.org> <83h6w1tku0.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61275 Cc: 61275@debbugs.gnu.org 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 (---) > Cc: 61275@debbugs.gnu.org > Date: Sat, 04 Feb 2023 19:13:43 +0200 > From: Eli Zaretskii > > > Date: Sat, 4 Feb 2023 17:00:45 +0000 > > Cc: 61275@debbugs.gnu.org > > From: Alan Mackenzie > > > > > By "the definition of bar", do you mean this: > > > > > int foo (int bar) > > > ^^^ > > > > Yes, that's precisely what I meant. > > I believe this is known as "parameter declaration". More accurately, you want the parameter identifiers which are part of parameter declarations to be fontified using the font-lock-variable-name-face. I hope Yuan or Theo could look into this soon. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 15:54:18 2023 Received: (at 61275-done) by debbugs.gnu.org; 4 Feb 2023 20:54:18 +0000 Received: from localhost ([127.0.0.1]:43534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOPY9-0005uc-Ov for submit@debbugs.gnu.org; Sat, 04 Feb 2023 15:54:18 -0500 Received: from mail-ej1-f41.google.com ([209.85.218.41]:35641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOPY5-0005uO-Cn for 61275-done@debbugs.gnu.org; Sat, 04 Feb 2023 15:54:16 -0500 Received: by mail-ej1-f41.google.com with SMTP id qw12so24337902ejc.2 for <61275-done@debbugs.gnu.org>; Sat, 04 Feb 2023 12:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=D1Q3cqn4yiD19CpP9gMUyyfi7A5OyjgB9d7O38V3nRc=; b=WTLVuar4mEJfDbAoCWVoy4gXYFRBGtzdnqkDqQklw4iNgEUCBE50nAvYFAkpN1OjLi JLtbB1WIzNOvaekCJ2m9QKo4WqY9v0cT++qcnJVIVYxxEilEEW+f9tn7j4/SkBJRjyAb Q7xfDGExW3gAh/hy1iAe8iP+DzsP6/DxphU5wloYRuFcFHAtNJf+x2jSgi8U8fuNG0K4 TBxfzNC7dDefUcGzXyIIOzWB8y99XOfqmtM4sIpXyX2HkH4lBvIzj/6C8KkPdCJXS+Hx RgsQT+FJHvgIaCliyzy9jedPjWEv3xyH5rOL8JqA9iPssSQm3LEsUJ9fVt6FAspqbMx1 uGGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D1Q3cqn4yiD19CpP9gMUyyfi7A5OyjgB9d7O38V3nRc=; b=UWoRPN2sEmg5Dlo40+P7K9n9Xw5wUqA5ov3dUKD4+NGjMsTDdgA9ezlftq03hqAMXH rBUKdtnZzTAc468vYCJ6kHgmyYB8DaPT7eOg6LQTVgxCn7zyXs0YpJs4G/uwvbal3Axa 0PlNaHXjfPwERySp3LwnobcTxxYEMjXrnfNHT3g9/nDNXLCcRFotufBgWIIbs++J1wCY uGVEGiwSyNABv8+J77TLn85L7i8Pm4j2RkvzlJ7QMzS9Ddlj9kUnRoDwpLArysosq399 uDnGlxhbq1wsXzUkeQ5vMLh4H77Fiks1Yxz6c3UBrOLsoukndWuGEA9IvDtBrxz9LkDg R97w== X-Gm-Message-State: AO0yUKUxftoLY1ajemTtcmk61oMcuMHgwGZqKJ1wZEVi7ZbqoEeRQOIW vl2vnK1rW9IDsbB4mlsImmw= X-Google-Smtp-Source: AK7set+P9NtR4WiyPWLSC0C0oGM9HuXLagwE8gA+zV01JCrUxAT/wJziHrFB+wmML0K2fImWuyp44Q== X-Received: by 2002:a17:906:3ca1:b0:86f:ae1f:9234 with SMTP id b1-20020a1709063ca100b0086fae1f9234mr13993324ejh.7.1675544047209; Sat, 04 Feb 2023 12:54:07 -0800 (PST) Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id k11-20020a1709063e0b00b00889a77458dbsm3233749eji.21.2023.02.04.12.54.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Feb 2023 12:54:06 -0800 (PST) Message-ID: <1879994d-43cb-87a2-6316-cc6c2805a82c@yandex.ru> Date: Sat, 4 Feb 2023 22:54:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. Content-Language: en-US To: Eli Zaretskii , acm@muc.de, Theodor Thornhill , Yuan Fu References: <83leldtllg.fsf@gnu.org> <83h6w1tku0.fsf@gnu.org> <83edr5tkji.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83edr5tkji.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 61275-done Cc: 61275-done@debbugs.gnu.org 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.9 (-) Version: 29.1 On 04/02/2023 19:20, Eli Zaretskii wrote: >> Cc:61275@debbugs.gnu.org >> Date: Sat, 04 Feb 2023 19:13:43 +0200 >> From: Eli Zaretskii >> >>> Date: Sat, 4 Feb 2023 17:00:45 +0000 >>> Cc:61275@debbugs.gnu.org >>> From: Alan Mackenzie >>> >>>> By "the definition of bar", do you mean this: >>>> int foo (int bar) >>>> ^^^ >>> Yes, that's precisely what I meant. >> I believe this is known as "parameter declaration". > More accurately, you want the parameter identifiers which are part of > parameter declarations to be fontified using the > font-lock-variable-name-face. > > I hope Yuan or Theo could look into this soon. I've installed the patch previously posted to emacs-devel. It should take care of c-ts-mode and c++-ts-mode. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 15:59:32 2023 Received: (at 61275) by debbugs.gnu.org; 4 Feb 2023 20:59:32 +0000 Received: from localhost ([127.0.0.1]:43541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOPdE-00062A-JQ for submit@debbugs.gnu.org; Sat, 04 Feb 2023 15:59:32 -0500 Received: from mx3.muc.de ([193.149.48.5]:56449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOPdB-00061v-Fw for 61275@debbugs.gnu.org; Sat, 04 Feb 2023 15:59:31 -0500 Received: (qmail 14227 invoked by uid 3782); 4 Feb 2023 21:59:23 +0100 Received: from acm.muc.de (p4fe158f1.dip0.t-ipconnect.de [79.225.88.241]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 04 Feb 2023 21:59:22 +0100 Received: (qmail 16908 invoked by uid 1000); 4 Feb 2023 20:59:20 -0000 Date: Sat, 4 Feb 2023 20:59:20 +0000 To: Dmitry Gutov Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. Message-ID: References: <83leldtllg.fsf@gnu.org> <83h6w1tku0.fsf@gnu.org> <83edr5tkji.fsf@gnu.org> <1879994d-43cb-87a2-6316-cc6c2805a82c@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1879994d-43cb-87a2-6316-cc6c2805a82c@yandex.ru> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61275 Cc: 61275@debbugs.gnu.org, Eli Zaretskii , Theodor Thornhill , Yuan Fu 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 (-) Hello, Dmitry. On Sat, Feb 04, 2023 at 22:54:04 +0200, Dmitry Gutov wrote: > Version: 29.1 [ .... ] > I've installed the patch previously posted to emacs-devel. It should > take care of c-ts-mode and c++-ts-mode. Thanks! -- Alan Mackenzie (Nuremberg, Germany). From unknown Tue Jun 17 22:29:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Mar 2023 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator