From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: tree-sitter: conceptional problem solvable at Emacs' level? Date: Thu, 9 Feb 2023 22:09:05 +0200 Message-ID: <06865b3b-9998-8152-1a53-691f0fa0651f@yandex.ru> References: <20230209162559.dclnxg7j5bckx6db@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15869"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: Emacs-devel@gnu.org To: Ergus , Holger Schurig Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 09 21:09:54 2023 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 1pQDEv-0003zb-N7 for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Feb 2023 21:09:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQDEK-0001qb-RV; Thu, 09 Feb 2023 15:09:16 -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 1pQDEI-0001qI-6C for Emacs-devel@gnu.org; Thu, 09 Feb 2023 15:09:14 -0500 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQDEF-0002qo-9P for Emacs-devel@gnu.org; Thu, 09 Feb 2023 15:09:13 -0500 Original-Received: by mail-wr1-x433.google.com with SMTP id r2so2991064wrv.7 for ; Thu, 09 Feb 2023 12:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vrVXHCEQ6dw1rXnXW25vrT8GiL3oa3axtvOB6ywoFSA=; b=e72ARw0vSEWJW0fFRWmCdZhr0xsdxwwhCGzq0/bo/2Wi25BUQcEGKaGfKXU3ln+TlM DaNEbC8dqv5T/QX9WE1IG33JDh5dZSA6Ww5q7mkO7R238Q7hBAjkBGpIxjtbr22XP3CT N9Fbf6jzS68FnaHVsR0ndDNArT8UosJ5qQv0TCwt50nzZbfjZu11yOIIcC+xJdbqNrwB PURTw64REo1/cALY8LVTFMOOv1PQaWc2rDnOLfdgx5FrbA4WoDgi/xWMcleZU8aecili id3MtwL74fdEHncuVzc32HK7lwF6PJ2s8hGfPW7FY2jFg17U3VjM6vhZiAWiD5wftVvU MZDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vrVXHCEQ6dw1rXnXW25vrT8GiL3oa3axtvOB6ywoFSA=; b=0emvcYpB4vnBDwOCjQ/235I3surNaz0BWRvsBTfgvwMnHihwmokdPtkiAih18qxQap Xzl05M9Rkfh3d1tJ5IK8QmURDfn45fuLbyv3sFV40Eyv306uT0r2MaDKwEuM7KmTmzjS PxBf2p8kEasIEsiKuzD54ZCPAqS7IXCVrmJhvHcsz88DPFnY85Te8XcxlwGzL2eYrZ4+ FNmNWlagHwYRiQaOjwz0HEr1ctYoMCNv9rlP8Z9dpby0Svwzvy+hHlDfwUHd0vDJYucf RaFosKDVsPeznkwG4KRMoUUvgZ05orisH84FH98DxA2ReKxkb4Ls0gICJFQ4OdtZ62dF vwiQ== X-Gm-Message-State: AO0yUKWXQx+A4xec1rNEUGX6yMQPTYR0SN05TUxkWLaW03AD2dFdwlBe +Wq1G5NH0mFp9CcIdnUjhZ8= X-Google-Smtp-Source: AK7set8o1uuDcrIkMx2xWbXcGYJt0oIJ/tp2R95exxAKL/HAVkbmUnsyFDb/nleS6yZsy7R0MzY55Q== X-Received: by 2002:a05:6000:12cb:b0:2c3:ddd2:feda with SMTP id l11-20020a05600012cb00b002c3ddd2fedamr12392184wrx.63.1675973348328; Thu, 09 Feb 2023 12:09:08 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f4-20020a5d6644000000b002bc7e5a1171sm1954373wrw.116.2023.02.09.12.09.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 12:09:07 -0800 (PST) Content-Language: en-US In-Reply-To: <20230209162559.dclnxg7j5bckx6db@Ergus> Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=raaahh@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-1.148, 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:303086 Archived-At: On 09/02/2023 18:25, Ergus wrote: > Hi: > > Probably I a saying the obvious, but, did you tried to share this in the > treesit syntax repository issues? > > https://github.com/tree-sitter/tree-sitter-cpp/issues > > Maybe they could give a native better solution... and fix it there, so > we won't need to reinvennt the wheel. These might be relevant: https://github.com/tree-sitter/tree-sitter-cpp/issues/85 https://github.com/tree-sitter/tree-sitter-cpp/issues/40 https://github.com/tree-sitter/tree-sitter-cpp/issues/146