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: parser error recovery algorithm vs treesit indentation "blinking" Date: Tue, 4 Apr 2023 17:05:57 +0300 Message-ID: References: <87lejgsf0m.fsf@gmail.com> <83pm8s70o3.fsf@gnu.org> <83mt3u65vw.fsf@gnu.org> <87y1newqus.fsf@gmail.com> <83bkka5z7w.fsf@gnu.org> <871ql6a4d4.fsf@gmail.com> <83jzyy4776.fsf@gnu.org> <9F152CAA-6326-459F-84FF-87988B3A92B6@gmail.com> <868rf8vdse.fsf_-_@stephe-leake.org> <864jpvvjrt.fsf@stephe-leake.org> 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="29982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Cc: Alan Mackenzie , Yuan Fu , Eli Zaretskii , theodor thornhill , geza.herman@gmail.com, Daniel Colascione , emacs-devel@gnu.org To: Stephen Leake , John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 04 16:06:48 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 1pjhJ8-0007cD-58 for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Apr 2023 16:06:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjhIZ-0007uo-1H; Tue, 04 Apr 2023 10:06:11 -0400 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 1pjhIV-0007pm-3s for emacs-devel@gnu.org; Tue, 04 Apr 2023 10:06:07 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjhIQ-0007kI-3g; Tue, 04 Apr 2023 10:06:06 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id p34so19089273wms.3; Tue, 04 Apr 2023 07:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680617160; 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=FQEj+Zo5Fruox5SfQYOJqsR4QLpIS/V3mWrfJ5UW5MA=; b=JhkoBtdo6oJ7TMofRMB9DVGf9rL41LFDl7j+QVjKUHEI93qFP3KTckHInVPqrDHmi3 Alr7JwKJfDhR9e8qgxGEmoNkHRl6jB49/iF+UfG33Or0Bylq6WFoMTTxb5hDq0sVjAvV uf83CJruMgVJBmJ3Dozjt2Sm9o04Tt544jpLd4kaJDfNQ2OgxBjFtEBChWMe/NmQKUpX LsCEA46wSMYCCOECq2o+6Vxb+365aLvcyE7xPeAipU41Uzzo9Uj5qlM6HtqsWKU9h78O r1uLvGfa8XKKxG93dMHcWvvncN1HCGu+D0Nan/9fmk0rVH4BWtECg55oc0Bd080t2w3a 7wVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680617160; 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=FQEj+Zo5Fruox5SfQYOJqsR4QLpIS/V3mWrfJ5UW5MA=; b=EagMB5bdssUT9yl6TINIBrNd/AbnWvfCoR4Z1UA0/MA/YrO+yeGNmU0R+SyRM/slfD X51TJLqMq9mxy9/uZSc8BwrGkxZDvjWGddRpWc2SOTxnEaHUhXBjeNy2laY972CHGxlB d6kvxUcYFp4WJRxGOCRGN2JNe4LwwFY3Y3zu5Un+uYJPJfkIuqX9fcdxoYp+JYWIvyqB DTCVYLkC+W92YP8DtMYqOVwNw5AgWP4R+l0cS8MVElP9kTkUynC3ltbUsc1NJpm/IEdU 5CbZUCTJR/rVM+3aBTxK52A3OrI1SFE0lEGzmYci1G2xMao+2sjP0cdYnwuUSnQrkiqC mzhA== X-Gm-Message-State: AAQBX9d01X/uGJNjbADjjXYqUT+N5nwqXSBfWws0ENa5LNQGq9ezy6t2 VAHB5i1WuCpuWK1e3pOrIHs= X-Google-Smtp-Source: AKy350auqSIUF2PBSxI3ialxdNB67D/CVPc3ofBvGwGoXgYYRNo82yKBeSuPSAu1IYA2UaKa+E1QSA== X-Received: by 2002:a1c:4b04:0:b0:3ed:2f1a:883c with SMTP id y4-20020a1c4b04000000b003ed2f1a883cmr2320292wma.14.1680617159974; Tue, 04 Apr 2023 07:05:59 -0700 (PDT) Original-Received: from [192.168.1.2] ([31.216.80.60]) by smtp.googlemail.com with ESMTPSA id r16-20020a05600c459000b003f03d483966sm17467445wmo.44.2023.04.04.07.05.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 07:05:59 -0700 (PDT) Content-Language: en-US In-Reply-To: <864jpvvjrt.fsf@stephe-leake.org> Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=raaahh@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.925, 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:305108 Archived-At: On 04/04/2023 16:50, Stephen Leake wrote: >> Has this been discussed in the wider tree-sitter community? I would >> be surprised if emacs is the first to encounter this weakness. > I raised it a couple times; the only response I got was "tree-sitter has > excellent error correction". > > Perhaps other users of tree-sitter don't use it for indenting complex > languages. This one also looks relevant: https://github.com/tree-sitter/tree-sitter/issues/1870