From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: [SPAM UNSURE] Standardizing tree-sitter fontification features Date: Sat, 26 Nov 2022 14:05:50 -0800 Message-ID: <56491C4E-2055-431F-AEC8-B8CEAFC0EB7A@gmail.com> References: <86bkothkxl.fsf@stephe-leake.org> <8635a5hjqx.fsf@stephe-leake.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22825"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 26 23:06:13 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oz3JM-0005kA-TH for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 23:06:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz3J8-0006tg-Hr; Sat, 26 Nov 2022 17:05:58 -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 1oz3J4-0006sA-PH for emacs-devel@gnu.org; Sat, 26 Nov 2022 17:05:54 -0500 Original-Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oz3J3-0002LW-7G for emacs-devel@gnu.org; Sat, 26 Nov 2022 17:05:54 -0500 Original-Received: by mail-pg1-x52c.google.com with SMTP id q1so6682083pgl.11 for ; Sat, 26 Nov 2022 14:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=UWNXkyvv1TVZC2vsQVYZKkRxB+Cygfv7hgq9WP6Qflk=; b=UwazYURe7D1lJkMi+3PH6dRznZnACqQ4ZTM0Oo9Z17T6dLSfet9oJezzeh3AUXMXGn HqPsptn2QPkjrJAV1KlG0I9nft5Emffe5fjEjnlhwb/J0+/keTro0N+IJyl3Z2PF3H+I QEZNNuNPM/feJ+/ViIsXFnOXMQYZ/PmcxkpWLezMduZgeI+d3z4CmcBEVqteshIZx0kz 0L3vucQvhRySZep22414AwZ1vjNugho4iOOCRci2X5q8oxNfJBf7Poj3hs/t/ezelGPI y9qfpWtl65swjPPW0feoxemLCDw0P3ZPU833Ra+pYcsv5WafJNcR4XnemJ7FVeRtbrkX Khkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=UWNXkyvv1TVZC2vsQVYZKkRxB+Cygfv7hgq9WP6Qflk=; b=AT7M96/NP+otivAmtOXBiXi9nNs04WzbqivNZ+rM4T3pK9IaxCgQgoVN2NUnOXcZ1s KEob4hThfulMCtjis7LzAwv2iDwodhvSQC1mAYEpNH6fOtHxNmAF8jY4Fp97Womb5rmu TiSreNDfmcGyyyVkQqxCr8cDiioS29Cp0sZulW0v2yW+aycQHLvttyfZhmXYNnhwqeo9 sn7YBEoy+XXIN4bME63pkxLOqM0M2nM8cws3Q5hrmBEcXIBRq1GJEWlbxuB5iio0tR84 NfLiH8wbL3ST7yqY8rzjNHIK+RMto9puoxRqCXSm9n1vU2D3TbH5gYUzWVfT+EvDpgvm ZKuA== X-Gm-Message-State: ANoB5pmquYQmwOfohk+Y8U/uEPc7+TUvhkf7iak+nW5jcdr02LtrRlE7 E0hrbj9idbo2tUNpdWPlr89Xmj69n0UEag== X-Google-Smtp-Source: AA0mqf4TIuC7GCEIDhRxgXX8zgtc5DVG/W6aTGR+XJe6sUCqGlqMN0VkNHeq5ocfRq4++z2+0kk0/w== X-Received: by 2002:a63:d48:0:b0:474:6739:6a09 with SMTP id 8-20020a630d48000000b0047467396a09mr28596748pgn.292.1669500352069; Sat, 26 Nov 2022 14:05:52 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id d13-20020a170902cecd00b00177f25f8ab3sm5893801plg.89.2022.11.26.14.05.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2022 14:05:51 -0800 (PST) In-Reply-To: <8635a5hjqx.fsf@stephe-leake.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=casouri@gmail.com; helo=mail-pg1-x52c.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300598 Archived-At: > On Nov 26, 2022, at 6:29 AM, Stephen Leake = wrote: >=20 > Stephen Leake writes: >=20 >>=20 >> namespace would be useful; in some languages, like C++, the syntax >> namespace::namespace::object.member makes it clear which identifiers = are >> namespaces. In others, like Ada the syntax is >> namespace.namespace.object.member, so it's not clear. >=20 > Never mind; for Ada, this requires name resolution, which is beyond = what > tree-sitter can accomplish (same for the wisi parser). The > ada_language_server does do name resolution, so it can label namespace > accurately. Indeed, I glance at their types and modifiers, and they are very rich in = semantics, whereas we only have the syntax to work with. Yuan=