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 support for C-like languages Date: Wed, 16 Nov 2022 12:58:41 -0800 Message-ID: References: <87tu36em9t.fsf@thornhill.no> <33EE9B30-C6EC-48D1-BEAF-ABAA1350C870@gmail.com> <87tu2y4qhq.fsf@thornhill.no> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.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="23415"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 16 21:59:34 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 1ovPVO-0005vA-9Z for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Nov 2022 21:59:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovPUg-0000zY-S1; Wed, 16 Nov 2022 15:58:50 -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 1ovPUe-0000z2-Ui for emacs-devel@gnu.org; Wed, 16 Nov 2022 15:58:48 -0500 Original-Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovPUd-0008JT-J0 for emacs-devel@gnu.org; Wed, 16 Nov 2022 15:58:48 -0500 Original-Received: by mail-pl1-x62f.google.com with SMTP id d20so17551668plr.10 for ; Wed, 16 Nov 2022 12:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F2AbK/fHhMOPAeOTvRB6zlAoBcqzXNEM90pjdOUifcI=; b=Ibyv0aXzQV9kvXQwsGQ18xml2oonfC046LI+07TzTl0umpau5ZUwXJLaU2+wbTqerF rseUyVga443T5iK+RPGFtIUsd/+L4Jce9xHESTMoklCsq7PQ0v1ZxjEtwBFBm/fhQRft 1T/qPO/GlSCh5q063lJ9J8higb2mB1DuYo5+2KAG0VT85vpZeHzmrcHqnzxJt+S7iQqF iI6nr/5gmDlT2YZ5IBwJsY8pEp/WszoZNQuBkXVi/HE6Resk6U9bZP+gXzVUhisXRi5e 38IiF8ptDJwVIN9I1vS7XH7Fe0U03IADYKBLZO/+Q/jKhS6mo26Z5NdjzNKV9ZKzQa9e Nyuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F2AbK/fHhMOPAeOTvRB6zlAoBcqzXNEM90pjdOUifcI=; b=zweVujNtmcjtu1WeIIQyWMydBuhCAj3u4M1nQoAWXCEv1mVrvFlnS6FOxrVURlqFWf DhkB8YjTg3FVsaND1fJ4mZ+Ykos42Bv6UuB7szRDa6Zy/VJelvxxwLyk+pk48fxUxox8 44fpaq/rpZfIgHUOELxJArN9JEhDcUno3DdX3gQFDTpcXbj7g9I7nktuDqUEWprPcFkl pCRXEIqYcPhBF267cRSQ/JLyGwHweFvh6r2YaG8xeKXGgbfZnwIrUNto/hC2bUHk9P3i dD8u0CoQTkOTfAcR3fsvq/P39WqJQzmIVjLreqX6VL+B+LWVs2mCGnOy/r3DBowHGwbV bLWg== X-Gm-Message-State: ANoB5pnFJahGxXaqR5Z6dVVRdU6sXsQZgY0VkiZbl0bJQfmGt0Ye5Z4Y ZrTAqed6rKIe/IuJYlnTvng= X-Google-Smtp-Source: AA0mqf41meQSDNKTkEAFsTqf3LCl3HYnjl1L98YitdYdgQ5REOAoUHaWx04TNhiMVcejxBZHl3UNiA== X-Received: by 2002:a17:902:9046:b0:186:a2e3:7032 with SMTP id w6-20020a170902904600b00186a2e37032mr10658915plz.159.1668632326047; Wed, 16 Nov 2022 12:58:46 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id ix10-20020a170902f80a00b00186b549cdc2sm12701367plb.157.2022.11.16.12.58.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2022 12:58:45 -0800 (PST) In-Reply-To: <87tu2y4qhq.fsf@thornhill.no> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=casouri@gmail.com; helo=mail-pl1-x62f.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 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299989 Archived-At: >>=20 >> :language mode >> :override t >> :feature 'statement >> '((expression_statement (identifier) @font-lock-variable-name-face) >> (labeled_statement >> label: (statement_identifier) @font-lock-type-face)) >>=20 >=20 > stuff like: > ``` > add_edge: // <- this thing > gx +=3D WINDOW_LEFT_EDGE_X (w); > gy +=3D WINDOW_TOP_EDGE_Y (w); >=20 > store_rect: // <- and this thing > STORE_NATIVE_RECT (*rect, gx, gy, width, height); >=20 > ``` What=E2=80=99s the intention of this query? (expression_statement (identifier) @font-lock-variable-name-face) It seems to match statements like var; ? Yuan=