From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Abin Simon Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Wed, 29 Jun 2022 22:21:01 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006f53f405e298f7db" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18486"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, eliz@gnu.org, theo@thornhill.no, monnier@iro.umontreal.ca, dancol@dancol.org, emacs-devel@gnu.org To: yoavm448@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 29 19:25:55 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 1o6bRr-0004e7-8H for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jun 2022 19:25:55 +0200 Original-Received: from localhost ([::1]:44822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6bRp-0001CZ-O4 for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jun 2022 13:25:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6auw-0000J7-Ac for emacs-devel@gnu.org; Wed, 29 Jun 2022 12:51:54 -0400 Original-Received: from mail-vk1-xa33.google.com ([2607:f8b0:4864:20::a33]:47067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6auj-0000w7-VD; Wed, 29 Jun 2022 12:51:54 -0400 Original-Received: by mail-vk1-xa33.google.com with SMTP id 15so7731106vko.13; Wed, 29 Jun 2022 09:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=5ytWXXKy97UHW0M2YuU5WHLIAhPw4f5vPKNj9rDgd0g=; b=HlHGI7HLo06z81u6yxqYET+mpHrpkrOqQ0BFpOJW7NQr2wxnQylU/PuZhRqC0Wvwwo n/rVIvUbVa1fgzo1Z9RPOxbFJXSJF1SHG3csI7Gh1N2nDFjqBMb+hrDNdClArrRDDwb3 9jdkU39f7bPA5nIDK5ctjAF7mqx79rqgZCY98i+xPTvDIGaRkRMFNtxUJKPkDGk9tYfb Wxoqt6o6vGEvwlQID8EiC87Uxr3acYuT5EsQ+aiuCvmOe2ePKMM/ij//8zyS11OChyIZ XV3PaCnYZUzPHFqJClJOxmQJ6UolSG1oE2BF9rSeiaHoY2X/+eZ5/jYbJ1ba4+qFpQsr h2DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=5ytWXXKy97UHW0M2YuU5WHLIAhPw4f5vPKNj9rDgd0g=; b=UiS38vUxokdcZYV6VMG2bbRJYrduQJscMELajoe7JKxcapfwSYV7fdB0U0L8K3UVOE fjAVXyfM/ozCdvuFBrfK0tMLSxqkfy39GOGbCbKiSH9GuVoe80a58sXDbiYCFFHseTD0 gkPf6I9purVY9i3IVvgVk9qpNUyNGiixvjmeBd/WI2Pbs+Ah43a5SDOL+xNt60TY4NRa nVExj5H3qRCWbriR1Y0/X9HeOMvZwHfSntPrUVdCrdRWTdCjZSdeFzpZPwMGz5xnRM9V 0J9Qk7KDWUWnH2EY6OFWBU2zXc2etjLz//lACTTHS86HSq5u5mRHhA58QR0vCrQjFyut S4Rw== X-Gm-Message-State: AJIora/yuh7qhuzIxJJ+HhUHQLSgs53HyfX9ES37S4BGjwr3p2YdVnDw CD+Z0ZXA9yZfFP64qFDkXXQLVfWIbjaxnHjtLNg= X-Google-Smtp-Source: AGRyM1t5WtzYqKqKFQC5kgj73zxhK4xy3gtAj02HM5CpdHpb7PFJlPYWmt078Oru/74Vv7h7UPXrqU3IqtMJJwLx3X0= X-Received: by 2002:a1f:b254:0:b0:345:87e4:17fb with SMTP id b81-20020a1fb254000000b0034587e417fbmr5713106vkf.25.1656521497726; Wed, 29 Jun 2022 09:51:37 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::a33; envelope-from=abinsimon10@gmail.com; helo=mail-vk1-xa33.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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-Mailman-Approved-At: Wed, 29 Jun 2022 13:24:21 -0400 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:291721 Archived-At: --0000000000006f53f405e298f7db Content-Type: text/plain; charset="UTF-8" Yoav Marco writes: > I could try to make a self-updating repo or something with CI - > https://github.com/meain/evil-textobj-tree-sitter for example pulls > highlights.scm changes from nvim's repo weeky. Just wanted to give a heads up that neovim has non standard items in their queries. For example you will find things like `vim-match` and `lua-match` in the queries. https://github.com/nvim-treesitter/nvim-treesitter/blob/989c75046c46d2ed96bb65c5badd6b8f785e7f09/queries/go/highlights.scm#L19 I ran into similar issues in the meain/evil-textobj-tree-sitter and had to write scritps to convert them to something that works in emacs. ref: https://github.com/meain/evil-textobj-tree-sitter/issues/33 --0000000000006f53f405e298f7db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Yoav Marco <y= oavm448@gmail.com> writes:

> I could try to make a self-up= dating repo or something with CI -
> https://github.com/meain/evil-textobj-tree-si= tter for example pulls
> highlights.scm changes from nvim's r= epo weeky.

Just wanted to give a heads up that neovim has non standa= rd items in
their queries. For example you will find things like `vim-ma= tch` and
`lua-match` in the queries.

https://github.com/nvim-treesitter/nvim= -treesitter/blob/989c75046c46d2ed96bb65c5badd6b8f785e7f09/queries/go/highli= ghts.scm#L19

I ran into similar issues in the meain/evil-textobj= -tree-sitter and had
to write scritps to convert them to something that = works in emacs.

ref: https://github.com/meain/evil-textobj-tree-sitter/= issues/33
--0000000000006f53f405e298f7db--