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: Tree-sitter doc question Date: Thu, 08 Dec 2022 16:57:22 +0200 Message-ID: <835yem2bal.fsf@gnu.org> References: <20221208141247.36l2j3bxggslsykl.ref@Ergus> <20221208141247.36l2j3bxggslsykl@Ergus> <83a63y2c6m.fsf@gnu.org> <20221208145246.3iq7ehnxdii5xgqq@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5347"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 08 15:58:43 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 1p3IME-0001Cg-LX for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Dec 2022 15:58:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3ILW-0003wk-1p; Thu, 08 Dec 2022 09:57:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3ILU-0003sj-0X for emacs-devel@gnu.org; Thu, 08 Dec 2022 09:57:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3IL6-0001ML-5l; Thu, 08 Dec 2022 09:57:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=a24WxbZqNvO0iZQkGYWe4lxJEJYZjdhTSObsvYXpOqM=; b=lAydqn88R2+w 89rWpxOEJdZvIvkYT/4V/gsiHdyFR44m6wiYqZNUhRDtnKAhJoboq3zHta02dzOz089kPwz2UndWK JxIEHWzC6B8tjlRGDQZRoL6eqC4QNljNae0jVQ0B7OGs5VrE4p6MPeL+Zoln5Gd+vbSDomsY2Gopv I4+qEWB9T4ROOKNJlUfyyTgpcI8pnjV046U1PHS4jA4VvGZ7Ii+q9PoD0v7kN/P3sE6PhdPJ/uZQA GE2n2apbY097zwoIOQtdq94c7dNyBZVuAJEIYglgVUZ0EYZNXdLQuaPP7yw7KKv4W9ZReQzVe+sRq dZYDJ3lorTlQTDsSSXacWg==; Original-Received: from [87.69.77.57] (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 1p3IL5-0000AD-CM; Thu, 08 Dec 2022 09:57:31 -0500 In-Reply-To: <20221208145246.3iq7ehnxdii5xgqq@Ergus> (message from Ergus on Thu, 8 Dec 2022 15:52:46 +0100) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301038 Archived-At: > Date: Thu, 8 Dec 2022 15:52:46 +0100 > From: Ergus > > >The modes that rely on it know how to check that. > > > Yes, but as I was trying to use it in C I didn't know if it was actually > working or not as I don't see any change. You need to turn on c-ts-mode manually, it is an opt-in feature (and will probably remain like that in Emacs 29). > >The colors are our faces, so the answer is "neither". > > > I know; maybe I needed to be more specific. As I don't know if it is > working I don't know who was setting the syntax info. The faces are set based on the results of parsing by the tree-sitter library.