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: Tree-sitter integration in python.el Date: Wed, 12 Oct 2022 16:43:30 -0700 Message-ID: <6AAE43C1-DBE9-448C-9C76-9D2188EF5A91@gmail.com> References: <3A68545C-2E40-4BB4-8563-8041A5452634@gmail.com> <87y1twlr0v.fsf@gmail.com> <83czb8ycpo.fsf@gnu.org> <87tu4klfcw.fsf@gmail.com> <87ill0le20.fsf@gmail.com> <87y1ttfmj8.fsf@gmail.com> <19950F30-F4DB-4CE4-9257-24DA39594669@gmail.com> <87czb47jya.fsf@gmail.com> <87wn9c7xxd.fsf@gmail.com> <83wn9altdu.fsf@gnu.org> <8182363C-3BB3-4741-B916-09C78971CE30@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Augusto Stoffel , Matthias Meulien , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 13 01:44:48 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 1oilP5-0007jy-HS for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Oct 2022 01:44:47 +0200 Original-Received: from localhost ([::1]:41358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oilP4-00071z-2R for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 19:44:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oilNv-0006Es-W3 for emacs-devel@gnu.org; Wed, 12 Oct 2022 19:43:39 -0400 Original-Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:34718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oilNu-0006CN-5u; Wed, 12 Oct 2022 19:43:35 -0400 Original-Received: by mail-pl1-x62b.google.com with SMTP id n7so340758plp.1; Wed, 12 Oct 2022 16:43:33 -0700 (PDT) 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=rZ4f32Oj+jYESR72uKjgkwq1ZilwBUaK//vfQs4NkUE=; b=Slb5efXz8++kgQfXl3cV0OAit0vRL1eE/MKi1iIZJUHQ0NmSFmLGGcFlu2X6PZcDVh /TL9zLnZBGDeAAMsvsLHfBe07QuY6hrIc2U+fDTOppw863krZmu2m8PzAPwECMBQoVIc 0eBI6IQwZczdmm+YnOuGNnDOuXIqtFUc5ipsAH83fZVFK16ipNKqJU2DnfLCQjalECHw Yipxar47Jk+KrmYj7TdaCTUJLdyHrlnGCD5++ygvv23prCYgh91STYvQ1egyCpcI99AD UINCAGIY5j6w/THtAI4YN8Z2+zE1RBTHBjD9QO/rlAzBLWMGEPw/TkvvKXNgPWyYqH27 1VTg== 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=rZ4f32Oj+jYESR72uKjgkwq1ZilwBUaK//vfQs4NkUE=; b=xVskg4A4srA9a0fyIvk3OS3CL/Ql5rxr89IZmXicMAOCOpLlEKK5XwvllDTIWq26EO DdpMpowURL+VSlu9yseiXkrSFoqk07/Jew3vaeLxQlrzxw7nEvrQ1c2e+5cLgvN76tbZ nGDaimVmY2Xl1dSK+RI8y786JtZLJhA1hQu7QwTCOA4Jj8GCBRhvDf19dfRS5vIfY3J4 LI/DBmPAUnhSwPe+P56GXJ1xIevBsu63Nfn6SoVwo8ahSmIB9j721yg3OUSJ1HV0sseW bvQkyHkA0C/BrAEowa3MYNZDly1Q2+LfvaSNP2RfxQuRxBBE4K3ZK35eBBAYLH6ZHriw MHuA== X-Gm-Message-State: ACrzQf1y/Ttvg0h8yTeTOt9ujapkKI9oL4sLqciVrQyhTjUSS3W251NV sEQeSJY/rnVIXIVFJ3O+leg= X-Google-Smtp-Source: AMsMyM5n7h6FObPdUd6yhnnrv0QHziFgmhKjk5zE1uEznoK86BIVOSLoRHIaEaSGwhdrm/Gp/cQ+nQ== X-Received: by 2002:a17:90b:3e8d:b0:20d:2ab9:517f with SMTP id rj13-20020a17090b3e8d00b0020d2ab9517fmr7595846pjb.88.1665618212329; Wed, 12 Oct 2022 16:43:32 -0700 (PDT) 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 j19-20020a635513000000b00434651f9a96sm9864440pgb.15.2022.10.12.16.43.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2022 16:43:31 -0700 (PDT) In-Reply-To: <8182363C-3BB3-4741-B916-09C78971CE30@gmail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=casouri@gmail.com; helo=mail-pl1-x62b.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" Xref: news.gmane.io gmane.emacs.devel:297642 Archived-At: >>=20 >> I definitely prefer symbols to variables: this way they can use their >> own namespace and don't need the long package prefix and can be >> shared/reused between different modes without conflict. >>=20 >> And I would prefer not to include :level in the rules themselves and >> instead rely on a separate mapping between features and levels. >=20 > Sounds good! I can do that. >=20 > Yuan What are some suggestions for kind names? We could provide the common = ones in the doctoring so major modes use the same names for them. I can = think of: function, type, keyword, constant, builtin, = string-interpolation, escape, assignment-lhs, macro, preprocessor, = string, comment, hmmm=E2=80=A6 this list is extremely similar to = font-lock-faces=E2=80=A6 Yuan