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 support for C-like languages Date: Tue, 15 Nov 2022 14:30:51 +0200 Message-ID: <651f8825-c1d5-c5b3-0582-da9a2fdbd311@yandex.ru> References: <87tu36em9t.fsf@thornhill.no> <45FD2F78-F15B-488B-9348-A8E298D8AD35@gmail.com> <87v8nmyqqp.fsf@thornhill.no> <834jv4nz2g.fsf@gnu.org> <871qq8hsj1.fsf@thornhill.no> <83iljklzmo.fsf@gnu.org> <87v8nkgcqj.fsf@thornhill.no> <87sfiogcbm.fsf@thornhill.no> <83pmdrkyj7.fsf@gnu.org> <87v8njw5th.fsf@thornhill.no> <83leofkwjm.fsf@gnu.org> <9E9244D3-2EFB-4621-91E0-FC8B8C1C2D52@gmail.com> <09869DDB-2C3D-4064-81B0-0E6902C46396@gmail.com> <8d36534e-7fad-fde2-5cf0-ce7c42d4ee35@yandex.ru> <93F973AB-C5B5-4A0B-BF99-1253ADA21092@gmail.com> 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="38945"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Cc: Eli Zaretskii , Theodor Thornhill , emacs-devel , monnier@iro.umontreal.ca To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 15 13:35:08 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 1ouv9f-0009wV-Js for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Nov 2022 13:35:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouv64-0004v2-53; Tue, 15 Nov 2022 07:31:24 -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 1ouv5z-0004qa-Ts for emacs-devel@gnu.org; Tue, 15 Nov 2022 07:31:21 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouv5v-00089C-7E; Tue, 15 Nov 2022 07:31:17 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id h9so24029200wrt.0; Tue, 15 Nov 2022 04:30:56 -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=CuCjw28XovDL9IIi6ZlsR9mwOg3jXd7SF6S+TmYrVmw=; b=Ird5F6yKcThcScG7YkbFhdomCry2K73DNl1l2F+9M4aaLw8mpM3IP6nH09BxrflILd bEjwwdXpDTClx2PjkoJtv8ZSlp3DCFgeKlMXS81YpO2B/3yVMSEfwX2tiX8OIHK+NLZi jMPKTK8LgjvNUA/Vw6HSH3YBndOyF0rhPHVAvDiARlsbQkkUZdTh+eIYMTP8D2t80UUc eFPCBXznHkhHHRsmV9tmFJUBfAsHfRtjBmNUxTq3vDs7Fyn9/Nz7D0j6V3XQxiaa0uOS lrV59PUrf2hAlt7K9eWn8YabU2Hu4aQnJPJQAFF10NfN2PK7J8VGQTmhb5jfocdw78LI rOYg== 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=CuCjw28XovDL9IIi6ZlsR9mwOg3jXd7SF6S+TmYrVmw=; b=rQ23274oS3eFLXFIZHJW+zp+ZYTH8lJDrcXEnVVUXJppTrfKI+GC3FCHYPoeRfT0lH FIEt6PHqkTu+Yn2JIg29YrQmuHlGNxdf2vHLoflobl6jI+zU8OTcH1a1gG1JdkyCWO+O xR9DbYNCUp0HRfvp27OOFUX11EpT3k3Iu4sdRxvBy8jvGLonfbR4ywxwUdnMzZQ+sM3v bToQ6d3P2SjC3Ju9VlyhXWEp63ElKcGa8UvBJi7Rk/6WGB78US6mE29l5OeOb8ttGxWn tjGphZyupBWpabqJ/5EHI4l6QOvQso+MClpH58bHYqk8vxTZAg8MZtN9BhnRB8bsFfAm yWbg== X-Gm-Message-State: ANoB5pnmrACZKEa25UudJ6WblpgRDf+4nq8rR74GHuBoeg/QCXROCyYQ tXdM41HSxC2aNvycqsYYTHZ4GLIKLcw= X-Google-Smtp-Source: AA0mqf48bwf+LWsM6rpSw9/OvER4Kv5Hxzm4kvZcm65bn6TgQpxEMalYvr1l4LhMK1c7jLZxk+6Eaw== X-Received: by 2002:adf:d087:0:b0:236:4c79:7937 with SMTP id y7-20020adfd087000000b002364c797937mr10356015wrh.641.1668515454725; Tue, 15 Nov 2022 04:30:54 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id y10-20020adff14a000000b00236860e7e9esm12158253wro.98.2022.11.15.04.30.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 04:30:53 -0800 (PST) Content-Language: en-US In-Reply-To: <93F973AB-C5B5-4A0B-BF99-1253ADA21092@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.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.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:299845 Archived-At: On 15.11.2022 12:56, Yuan Fu wrote: >> Perhaps not in C/C++, but other langs could use them. >> >> Also (and here I'm really guessing, not sure what the limitations/benefits of TS grammars are) there might be other nodes which could change due to the user writing or deleting code on subsequent lines. > Yes, this is common for comments and multi-line strings. And we can correctly handle them now, yay (see my other message.) > Yay, thanks!