From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names. Date: Sat, 4 Feb 2023 22:54:04 +0200 Message-ID: <1879994d-43cb-87a2-6316-cc6c2805a82c@yandex.ru> References: <83leldtllg.fsf@gnu.org> <83h6w1tku0.fsf@gnu.org> <83edr5tkji.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7514"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 61275-done@debbugs.gnu.org To: Eli Zaretskii , acm@muc.de, Theodor Thornhill , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 04 21:55:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOPZE-0001m4-0d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 21:55:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOPYv-00067U-Bo; Sat, 04 Feb 2023 15:55:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOPYs-00066v-W4 for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 15:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOPYs-0002RS-Ee for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 15:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOPYr-0005vh-W2 for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 15:55:01 -0500 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Feb 2023 20:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61275 X-GNU-PR-Package: emacs Mail-Followup-To: 61275@debbugs.gnu.org, dgutov@yandex.ru, acm@muc.de Original-Received: via spool by 61275-done@debbugs.gnu.org id=D61275.167554405822735 (code D ref 61275); Sat, 04 Feb 2023 20:55:01 +0000 Original-Received: (at 61275-done) by debbugs.gnu.org; 4 Feb 2023 20:54:18 +0000 Original-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 Original-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 Original-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) Original-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) Content-Language: en-US In-Reply-To: <83edr5tkji.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254794 Archived-At: 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.