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 on feature/tree-sitter Date: Fri, 13 May 2022 17:04:32 -0700 Message-ID: <48543B75-CF59-407B-B6FE-C5CD0E0C418C@gmail.com> References: <87y1zabmbt.fsf@gmail.com> <5F186EBD-CD21-422B-8B4F-0D5424173334@gmail.com> <875ymdwf76.fsf@gmail.com> <011DA1A3-0FA8-4449-878A-FD6B336B0F1B@gmail.com> <8735hhw75p.fsf@gmail.com> <83czgks4ss.fsf@gnu.org> <87wnesuw63.fsf@gmail.com> <83pmkkqhft.fsf@gnu.org> <87tu9wukbt.fsf@gmail.com> <83ee10qbk7.fsf@gnu.org> <8F6A43D1-D1EA-4602-A245-627DB7960FC2@gmail.com> <838rr7qqhw.fsf@gnu.org> <87sfpekf6t.fsf@gmail.com> <838rr6pwjt.fsf@gnu.org> <87pmkik7x6.fsf@gmail.com> <83wneqoej5.fsf@gnu.org> <87mtfmk4oi.fsf@gmail.com> <83ee0yndor.fsf@gnu.org> <87fsldkdec.fsf@gmail.com> <8335hdogti.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.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="11848"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yoav Marco , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 14 02:07:04 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 1npfJH-0002rj-Gb for ged-emacs-devel@m.gmane-mx.org; Sat, 14 May 2022 02:07:03 +0200 Original-Received: from localhost ([::1]:57760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npfJF-00073X-R4 for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 20:07:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npfGw-0005Ym-00 for emacs-devel@gnu.org; Fri, 13 May 2022 20:04:38 -0400 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:46604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npfGu-0002oR-FZ; Fri, 13 May 2022 20:04:37 -0400 Original-Received: by mail-pl1-x634.google.com with SMTP id c11so9358396plg.13; Fri, 13 May 2022 17:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8+sa/pMcj0bij4HuS4nfcEQPHWDa9r6fK+DhCuniMog=; b=D7OFCfMqNRcF6ZI1VDh0oEfmDrBRKe65eNaFWhB3K2oNiazSmRvJaWTOh1QdqfA3L8 xk7/czQwfOgCJwYMddnYS2U2IfrMLQ0EJJkodm2ida92mg3v7boLjN1Inl7xrO9PEtdf 6oY5LNEgvGuuZiRIi8JxwFwrnV99P9S7p0l6srskk7jFf5R8MnV+tco+B2yZZcCTPYA3 qACqEu3i6hyX+uDF3ejifn5k+pTMhg9v8UfssGhtc/S4LsFpAGblyHdybk75wt3XmydA qeMcKfWSqGbzR76JHeJ3hoaXHceEs8kBbTk+Ab+dEVSMjIWAbRHXZrGprBIEmTW52tx5 UWMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8+sa/pMcj0bij4HuS4nfcEQPHWDa9r6fK+DhCuniMog=; b=ZzQSnfNH8wOVeGtb4z1mB9EF5UjxOnbMKdqI2VBhZJ9Wwz5ubNai6IK3xy76Ammibh fmEzkUoLKAlORsGNa2N9fMS1uE7kYismxVe+GhugbDOAQxBIccvkctDZSXn0ISguVO94 w9GLHoDFbk1eLOlnKjNnPZN4zIvk59oNSllB+Vlnp1gicTELGgaKpTAyhLqkF7WYpDYl w8hZWeNot8ltjjxQ6aAtceNzilJGnMhBL8HO27WssseAINFpNEZySlsLQtfYrsSHcO8A LvV0BQQMjiD1ARA2c6O6SRa9wIpGDqaBGazeefukk2/ip9QuaSG/QL3g4F7/PATG3Olh xTTg== X-Gm-Message-State: AOAM53105SfZsoI+m+9p1YKqVWntA69cL+3mhzJtSg4u6SiBc8M2J0Y+ OtzuFRLayWWRUoA6OLtwdmOVktY4rvSRbg== X-Google-Smtp-Source: ABdhPJwast9MQW5QomzWPNT+LxrBlDiD2AZuQYD4s+0jvCDbYFy8XiPRi0RVfqoIYH3gMXcPVm4xAQ== X-Received: by 2002:a17:90b:1c0e:b0:1dc:45b6:6392 with SMTP id oc14-20020a17090b1c0e00b001dc45b66392mr7195950pjb.236.1652486674473; Fri, 13 May 2022 17:04:34 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:c48:babf:bfaa:d815]) by smtp.gmail.com with ESMTPSA id a1-20020a170902900100b0015e8d4eb239sm2402862plp.131.2022.05.13.17.04.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 May 2022 17:04:33 -0700 (PDT) In-Reply-To: <8335hdogti.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=casouri@gmail.com; helo=mail-pl1-x634.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, T_SCC_BODY_TEXT_LINE=-0.01 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:289762 Archived-At: > On May 13, 2022, at 3:41 AM, Eli Zaretskii wrote: >=20 >> From: Yoav Marco >> Cc: casouri@gmail.com, emacs-devel@gnu.org >> Date: Fri, 13 May 2022 11:42:04 +0300 >>=20 >> Eli Zaretskii writes: >>=20 >>> Is it true that there's just one query for each PL mode, and it is >>> fixed (doesn't change) and doesn't depend on the buffer contents in >>> any way? If that is true, the major mode could compile the query >>> whenever it is initialized, and then reuse it in every buffer that = is >>> under that major mode. >>=20 >> It's correct, though there might be more than one if a mode wants to >> offer fontification options users can toggle. But yeah, the major = mode >> could compile its queries when initialized. I'm in favor of this too. >=20 > Then let's do that. Yuan, are there any issues with implementing > this? No, it=E2=80=99s fairly straightforward. Added to todo-list ;-) Yuan=