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: More Tree Sitter Questions / Problems. Date: Mon, 26 Dec 2022 18:28:59 +0200 Message-ID: <324dd5c8-1231-ea73-80b2-17ebe9fa8fe0@yandex.ru> References: <365D3BA2-298F-4B99-9707-FE8BC658701F@easesoftware.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="20478"; 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 To: Stefan Monnier , Perry Smith Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 26 17:29:27 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 1p9qLv-0005CN-7a for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Dec 2022 17:29:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9qLa-0006SJ-Db; Mon, 26 Dec 2022 11:29:06 -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 1p9qLY-0006Ru-TX for emacs-devel@gnu.org; Mon, 26 Dec 2022 11:29:04 -0500 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p9qLX-0002va-AK for emacs-devel@gnu.org; Mon, 26 Dec 2022 11:29:04 -0500 Original-Received: by mail-ej1-x62d.google.com with SMTP id jo4so26815817ejb.7 for ; Mon, 26 Dec 2022 08:29:02 -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=ifdvuQyfxGEL6ZgT5TiQrKnseEstmVia4W9+/xEFrzg=; b=K2GekEvpWsvKd63AQnBuhVogXeCp5hYAbeae6YrZkAXR51OmjaGPNwruLQ+8x1xzaL /Kg16yRsiVQLP6AHXp2lB1c+qusM3i5AXCcQPnhZQIuXb89kKnReQgJSfGcdwtXD6m8Q KUEX6O80sgWXcyM1nhMLf2hsb1yN8wcIzna8m+Ud9jA0agYXd+Ms/V0A/aqymZ78g7R2 xZKRWtwoXTn4LITR6M2zN6yZGp3EYWiBhLu9/rbC/WzJQcdN/tY+gOskxPu+kuTdbPeu sMIqn1FNLHixvPY6kGAtx9PEyxd6szAH6HuunfAEJ2HDqPzBrj+09juCleo4zcL3EL+P Nzhg== 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=ifdvuQyfxGEL6ZgT5TiQrKnseEstmVia4W9+/xEFrzg=; b=cixqe71ImNMJDRGTbzF3j+OP/3VFrCJdsbRpoog+bnl+kXs6wc9Ri1sQ7DkZafgulI hJqGkS55lft+3dWrGNh3Rlydt2a7Kd6FQ30SOyDmKDhm69PJ7gWS1L7UCJ+y6dlU5o37 3ReS+pQqYXB0L28y5pd8U4dSlSs+3QkPEcnwzUdJTwpvhbe7x3Ws6BQmiQdnjIkq0hzd SwcDCxNMeC4Fsrkv8oVfXrpKTPzFYQuBMKctBwGxwUqVH/MdvKKKMJUP0n+hW6d/odNI gam1ZiDbehy/6bYjRU4d/y2lZEdN0UrQF4YCcyyj6+hocgINOFIyrPh1A3IPlMsA7aOn qxow== X-Gm-Message-State: AFqh2koMKHO0QOEqIYM860wwnHovEvcFlzPzi1S5sjy0P5Yw+eHh/IGd 0I0L+BtPPSoIUTPs8SWwdWA= X-Google-Smtp-Source: AMrXdXv+okoCEAnMKn7M/9uybdlIaEDkOTwrv8YIneuTfzG9kChEhrw8p+ToZlR4Ft/tKcDa4PJY4g== X-Received: by 2002:a17:906:f6d7:b0:7c1:5169:3ed6 with SMTP id jo23-20020a170906f6d700b007c151693ed6mr17772915ejb.48.1672072141667; Mon, 26 Dec 2022 08:29:01 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id 18-20020a170906301200b007bf5250b515sm4948908ejz.29.2022.12.26.08.29.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Dec 2022 08:29:01 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=raaahh@gmail.com; helo=mail-ej1-x62d.google.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 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=-1.147, 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:301937 Archived-At: On 14/12/2022 23:15, Stefan Monnier wrote: > In the context of sh-mode, I've had requests to provide that kind of > "AST-oblivious" indentation. The result is controlled by > `sh-indent-after-continuation`. *-after-continuation is a cool naming example, would be nice to be able to reuse it. But in the case of Ruby it seems like we're choosing between AST-based indentation (where the indentation offset can reach arbitrary nesting after several continuation like breaks) and "continuation"-based indentation, where we basically have 0 or 1 levels of nesting, unless certain subexpressions are used (blocks or parentheses, mostly). OTOH, ruby-indent-simplified (the name of the option I used in https://debbugs.gnu.org/60186), is even less semantic.