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#61205: 'function' in 3rd element of treesit-font-lock-feature-list Date: Fri, 3 Feb 2023 13:42:51 +0200 Message-ID: <1b8044bd-6855-fdc7-697d-70322a8349c0@yandex.ru> References: <837cwzw8j1.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="28814"; 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: 61205@debbugs.gnu.org, casouri@gmail.com, theo@thornhill.no, dev@rjt.dev To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 03 12:44:18 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 1pNuUL-0007H2-UL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Feb 2023 12:44:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNuU7-0008MU-Eu; Fri, 03 Feb 2023 06:44:03 -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 1pNuU6-0008Ki-Go for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 06:44:02 -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 1pNuU6-0002Wk-83 for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 06:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNuU5-0000KW-Jn for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2023 06:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2023 11:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61205 X-GNU-PR-Package: emacs Original-Received: via spool by 61205-submit@debbugs.gnu.org id=B61205.16754245821195 (code B ref 61205); Fri, 03 Feb 2023 11:44:01 +0000 Original-Received: (at 61205) by debbugs.gnu.org; 3 Feb 2023 11:43:02 +0000 Original-Received: from localhost ([127.0.0.1]:36616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNuT7-0000JD-S3 for submit@debbugs.gnu.org; Fri, 03 Feb 2023 06:43:02 -0500 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:41858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNuT6-0000Ik-8U for 61205@debbugs.gnu.org; Fri, 03 Feb 2023 06:43:01 -0500 Original-Received: by mail-ed1-f51.google.com with SMTP id v10so4883650edi.8 for <61205@debbugs.gnu.org>; Fri, 03 Feb 2023 03:43:00 -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=+xtexzu3ME3IRlFtotAIvLuNh7kDRhrtG9ku2MHYW7Y=; b=hVLnwBecGmh7cA6U5lZPbPIcsC0UpmTJXZTOmIVSHk6m1eh6PVOwWaOE2Re4DGDYIq uqVYjGH+H2eWCOr+J0hU4WsgD//+wpNqtj9AxofqwVeESCY2ZLXOoOqDTBgzkVMwefSm rhDSTbgcBwFqIlREtdwOsLJuqyyl4Q9vz+wjbrsL0GHuL84p9a96BL06hY1plTx+v3FM 6FiHn4BqK26Pf12AYK6KJHIOG9U+jIPWtupwDv/Sa3BE2VX61ueWIs9A92yn2EpqG/P9 Z1QSfzXEY9rxPWpjdStHvUqPI9uItL5Df0JZPxU/MCslzya7lzQ0UoAXm39BQ1JCmoxN J0Fw== 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=+xtexzu3ME3IRlFtotAIvLuNh7kDRhrtG9ku2MHYW7Y=; b=FFo+lS4FyFpWvfnO9cEGO0q/fjNIpnkw+Rg4rFvL3vIetjvfqT2/bRcsrD3hsZunso fUvuaVfksl4V5JqsTq0o1CpVmbi2MUIqh0S+oUkrAsqVgCJxdsX3MFq4ozw1MsbDhn39 owJDCzI0GoSc9/LYgt2SbYBXQ64TMMQ78z/Z5SL/YDznFEkN3LIB9IALlsx1AvUgfJZD Lv6OHyUZbuifYBeE5rRaDIQPgK8HmEiXGLqtnaKwvI14fjKsLd2+4czMrHOw62yk0WkS P0lD/FakYk7Ekv3SWWygTQ98rsLQqT1F4Xv1s37zE02bKCNvjJ4PXtQJniE+OhfXIscq rrjg== X-Gm-Message-State: AO0yUKVgKHmClKjn6WbksTtan06pFfexLAYQWz91LX3LJ1w6Sd5db4fO QHrkcOqn3Yav4sNEARrlYuU= X-Google-Smtp-Source: AK7set9sqvHHX0FFNr6DL0ZBnBD1108crWL80C9bYx8lSawf+bVq/ctnGF9RdTV14X2B/RGXOLMtrA== X-Received: by 2002:a05:6402:22a9:b0:4a2:4ed3:c14c with SMTP id cx9-20020a05640222a900b004a24ed3c14cmr8206663edb.39.1675424574254; Fri, 03 Feb 2023 03:42:54 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v21-20020a509555000000b004a9cb25d1eesm346960eda.87.2023.02.03.03.42.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Feb 2023 03:42:53 -0800 (PST) Content-Language: en-US In-Reply-To: <837cwzw8j1.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:254726 Archived-At: On 03/02/2023 08:46, Eli Zaretskii wrote: >> Cc:61205@debbugs.gnu.org, Theodor Thornhill, >> randy taylor >> Date: Thu, 2 Feb 2023 22:25:47 +0200 >> From: Dmitry Gutov >> >> On a related note: 'property' is in level 3 in c-ts-mode. >> >> Should it to go level 4? >> >> Also in typescript-ts-mode. > What is 'property' in those modes? In c-ts-mode, is 'property' the > name of a struct or enum member, as in foo.bar? Or is it something > else? It's the 'bar' in 'foo.bar', yes. Specifically in the cases where it's being looked up, rather than defined (in a type definition). Examples: it2.lnum_pixel_width = it.lnum_pixel_width; || (it.bidi_p && it.bidi_it.scan_dir == -1 'lnum_pixel_width', 'bidi_p', 'bidi_it' and 'scan_dir' are highlighted with font-lock-property-face. You can see it for yourself by trying c-ts-mode in any of our files.