From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Yates Newsgroups: gmane.emacs.devel Subject: Re: parser error recovery algorithm vs treesit indentation "blinking" Date: Tue, 4 Apr 2023 08:01:07 -0400 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> Mime-Version: 1.0 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="21634"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Yuan Fu , Eli Zaretskii , theodor thornhill , geza.herman@gmail.com, Daniel Colascione , emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 04 14:03:24 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 1pjfNk-0005OV-4L for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Apr 2023 14:03:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjfME-0006WH-RJ; Tue, 04 Apr 2023 08:01:51 -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 1pjfLs-0005sO-GF for emacs-devel@gnu.org; Tue, 04 Apr 2023 08:01:32 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjfLn-0000tn-EY; Tue, 04 Apr 2023 08:01:25 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id eh3so129512200edb.11; Tue, 04 Apr 2023 05:01:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680609679; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YkoXXAPU9bBD7SF2dtpHJDd6h0OYJk4afvweHU0bU08=; b=XfjR5oRw8unTfDReKDjhkSU774oS0MJFvfSS6/xuLo1KkGzHLYHQ0FE0C28lD6VWlk sLYzOnd8oSuTMmUFtZo+zZKGH+Fwj2qnL38ziFeCWE8mZHYpNTgRtE8H4BwChbuU09z7 P50hzXns4G754/UzmBAz8xmzJMoWK8fTw36NMGKwXRqlYe08uNVN0iFxCzm1lWO/gFKJ AtGWboLZP73pTj6irJpwUjmvdM2Mv1pAFoxkWLuxMuznDQEj4WVEQLlu9V1A1WtyXFGP NMwjFNMGtyL09EljdwS2fZF+NvnmB3exlqjxLH5ao2B6+tlIXpS1gxll1rIbQoes3b6T npTw== X-Gm-Message-State: AAQBX9eIcUwDEPD/BBQ6VuGIF8Dm3MC/i5nVSoMtcplnqsVBYiOXqeKm wR8N7BCQ4RZNuTLKh1pvHkucMeNjLdyiL6fHfBk= X-Google-Smtp-Source: AKy350aLOo11wKkLXQk+OayiCUPvxceFIjo0vmGddiyKbhF03Zhnx5831OMGEY63l1bl877hnziDkcGKpd/COt63LDM= X-Received: by 2002:a17:906:a5a:b0:946:a095:b314 with SMTP id x26-20020a1709060a5a00b00946a095b314mr1066581ejf.2.1680609679324; Tue, 04 Apr 2023 05:01:19 -0700 (PDT) In-Reply-To: <868rf8vdse.fsf_-_@stephe-leake.org> Received-SPF: pass client-ip=209.85.208.52; envelope-from=john.yates.sheets@gmail.com; helo=mail-ed1-f52.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:305100 Archived-At: On Mon, Apr 3, 2023 at 5:49=E2=80=AFPM Stephen Leake wrote: > > That's because the tree-sitter > algorithm does not insert symbols, it only skips them. Is this a fundamental architectural limitation of tree-sitter's parsing scheme? Was it a design decision that trying insertions would be too costly? Or is it an improvement that should be explored? Has this been discussed in the wider tree-sitter community? I would be surprised if emacs is the first to encounter this weakness.