From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Sat, 12 Jun 2021 01:03:03 -0700 Message-ID: <179ff3ee6d8.2816.cc5b3318d7e9908e2c46732289705cb0@dancol.org> References: <83o8cge4lg.fsf@gnu.org> <62e438b5-d27f-1d3c-69c6-11fe29a76d74@dancol.org> <83fsxsdxhu.fsf@gnu.org> <83pmwudgw3.fsf@gnu.org> <20210610151647.qtt7pqbjhdtp6coe@Ergus> <20210611202130.j35q6k4utjivzuen@Ergus> <9e76076e-636d-9271-03e2-98c7614e3cf1@dancol.org> <83v96j8tsl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: AquaMail/1.29.2-1810 (build: 102900008) Cc: acm@muc.de, spacibba@aol.com, emacs-devel@gnu.org, rms@gnu.org, rudalics@gmx.at To: Eli Zaretskii , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 12 10:05:48 2021 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 1lryeJ-0006s3-1E for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 10:05:47 +0200 Original-Received: from localhost ([::1]:40770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lryeH-0001sF-Bu for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 04:05:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrybm-0000Y4-6a for emacs-devel@gnu.org; Sat, 12 Jun 2021 04:03:10 -0400 Original-Received: from dancol.org ([2600:3c01:e000:3d8::1]:56926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrybk-0003aE-AK; Sat, 12 Jun 2021 04:03:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:Date:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JT9QfEcsCF6S27tnBw5EaZIAbHrOFrivxxpqUsqPO7I=; b=av66I7/T9WMZ0V1rBIk21ed3rd HibQWLbZ/6GKSdvd/XyPsWJUkuN/AUeN1syIOCDhF4iQPn2rkQ0fziyZnofwe24lCFnGye9fbzQp+ ZMpRR89kEmTjEHOfHD/E+4tpj4Tq/JyUk7NU44jmeMWnBaj0o6sxfslpJCH9RMt+0jtL1glJwWSpS y7Fm6IeFtIJ4Qzi8+ljDWg54YwRUb9wMFNf46f5y853GwXQsuaULUn0Bx0UJXjwcGdE56Gygm67tx QJpEmiBiuCnk02PgjO0wLQ42t4e1FyE+qN4NazHuRMhAPWfuQXzUxmzQtHBp8bJTO4pBmAYZQX+2A 02GDQ9JQ==; Original-Received: from 112.sub-174-194-194.myvzw.com ([174.194.194.112]:4393 helo=[100.112.62.55]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.89) (envelope-from ) id 1lrybi-0003rN-9o; Sat, 12 Jun 2021 01:03:06 -0700 In-Reply-To: <83v96j8tsl.fsf@gnu.org> Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.org 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, SPF_HELO_PASS=-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.23 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:270745 Archived-At: On June 11, 2021 11:46:18 PM Eli Zaretskii wrote: >> From: Stefan Monnier >> Cc: Ergus , Alan Mackenzie , Eli Zaretskii >> , rudalics@gmx.at, rms@gnu.org, emacs-devel@gnu.org >> Date: Fri, 11 Jun 2021 16:52:37 -0400 >> >>> Another problem with stock tree-sitter is that it makes Emacs less >>> self-hosting. Tree-sitter grammars are written in JavaScript. >> >> Yes, there are some technical disadvantages to tree-sitter, indeed. >> None of them make it unusable, but they do make it less convenient for >> ELisp hackers and Emacs users. So it's not a perfect solution, but >> I don't think that should mean we don't want it in our toolbox. > > I agree that these issues shouldn't prevent us from trying to use TS, > at least as an option. Sure, but it'd be nice to package TS in such a way that it becomes more idiomatically lispy, at least if TS becomes the primary fontification engine for some modes. At the very least, it should be possible for users to apply ad hoc fontification on top of whatever TS supports. And how could something like TS work with, say, bison and flex files without fully general multi-mode support (which we also lack)?