From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Fri, 04 Jun 2021 13:22:38 +0300 Message-ID: <83zgw6udxt.fsf@gnu.org> References: <831r9iw473.fsf@gnu.org> <2d6d1cb0-2e8f-ceea-cb83-3bb840b65115@dancol.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 04 12:23:28 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 1lp6z9-0002r4-Vm for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 12:23:27 +0200 Original-Received: from localhost ([::1]:44968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp6z9-0004oS-2D for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 06:23:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp6yY-00049M-DP for emacs-devel@gnu.org; Fri, 04 Jun 2021 06:22:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44504) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp6yV-0004j4-SK; Fri, 04 Jun 2021 06:22:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4436 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp6yV-0005Yt-Dz; Fri, 04 Jun 2021 06:22:47 -0400 In-Reply-To: <2d6d1cb0-2e8f-ceea-cb83-3bb840b65115@dancol.org> (message from Daniel Colascione on Fri, 4 Jun 2021 03:05:53 -0700) 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:270368 Archived-At: > From: Daniel Colascione > Date: Fri, 4 Jun 2021 03:05:53 -0700 > Cc: emacs-devel@gnu.org > > We could just vendor tree-sitter. Sorry, I don't understand what that means. My problem is that I know of now package that integrates tree-sitter into Emacs with architecture that makes sense to me. The ones I saw all send the entire buffer to tree-sitter using buffer-string (and failing to encode it), which doesn't scale.