From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Sat, 07 May 2022 17:24:34 -0400 Message-ID: References: <9E6D13F6-7E50-44EE-A357-C971A11A3636@gmail.com> <837d6xzpac.fsf@gnu.org> <7B1F29B4-045A-420E-8FD7-C7C72FF14DDC@gmail.com> <837d6xxjpv.fsf@gnu.org> <834k21xhzd.fsf@gnu.org> <26ADA626-793E-4E21-9502-63675A7ED16B@gmail.com> <871qx5je4q.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11208"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Yuan Fu , Eli Zaretskii , emacs-devel@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 07 23:26:17 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 1nnRwP-0002iY-6C for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 23:26:17 +0200 Original-Received: from localhost ([::1]:37596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnRwN-00006b-NN for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 17:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnRut-0007qT-90 for emacs-devel@gnu.org; Sat, 07 May 2022 17:24:43 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnRup-0003H5-Cw; Sat, 07 May 2022 17:24:40 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C4CED441521; Sat, 7 May 2022 17:24:36 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A0A5A441517; Sat, 7 May 2022 17:24:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651958675; bh=LJ5Pea2ZN2m+7RDx/YQPsuXTQ8L0dMt5Ea4xCwAApn4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=pe+nPwf3qKQn+VOkX1QQoDco1DOet8cFaXVmk5yTcgdDpYnasSoZR/xmj7TL6wHFV G9ascqqCM6nstLxj5sJPdrFKwU8SBet5c6MP918Tcar8BWXEGbND5xXvnnfm1PVDhX A0RvkADrDAGDHqqC8f/WDYQ33OGtwchyO9ehTqP8i4gK3pkMp2bstQ5K+FJPTwxbtL 8DsED6XbVPZo+5Kbm/fQ9YcO7cfI1Aey7zZ8dJXiy8EgOPINEy1pCz18ue+TM/Bm88 V81IVJFiKyhxXlhR7xG5BmZwIDNhCh2tvxXxUS6PvVXvDopF8dPrUG42XDpf+jOJBL 7OziZFkmjPDfQ== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6B9F61207A6; Sat, 7 May 2022 17:24:35 -0400 (EDT) In-Reply-To: <871qx5je4q.fsf@thornhill.no> (Theodor Thornhill's message of "Sat, 07 May 2022 22:12:37 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:289434 Archived-At: BTW, a bit part of the font-lock and indentation rules is highly dependent on the grammar being used and in addition to that, they're likely mostly agnostic to the design of `indent-line-function` of `font-lock.el`. So it would make a lot of sense to try and work with other editors to try and design an editor-agnostic way to provide that info, such that it doesn't need to be re-done for each and every editor out there. IOW I suggest looking at how Neovim/Atom/etc... specify that information and see if/how we can reuse it. And if their format is not convenient for us, try to work with them to design a format that can be convenient for everyone. Stefan