From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: john muhl via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68297: [PATCH] Support indented continuation lines in lua-ts-mode Date: Sat, 06 Jan 2024 12:56:17 -0600 Message-ID: <8734vaglxp.fsf@pub.pink> Reply-To: john muhl Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5152"; mail-complaints-to="usenet@ciao.gmane.io" To: 68297@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 06 23:03:18 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rMElC-00016L-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jan 2024 23:03:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMEkt-0007rA-TP; Sat, 06 Jan 2024 17:02:59 -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 1rMEkr-0007qi-Hz for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 17:02:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMEkr-0003wl-9e for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 17:02:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMEkw-0002yd-47 for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 17:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jan 2024 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170457857111425 (code B ref -1); Sat, 06 Jan 2024 22:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jan 2024 22:02:51 +0000 Original-Received: from localhost ([127.0.0.1]:60370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMEkl-0002yD-7x for submit@debbugs.gnu.org; Sat, 06 Jan 2024 17:02:51 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:59278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMEkh-0002xz-Sl for submit@debbugs.gnu.org; Sat, 06 Jan 2024 17:02:49 -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 1rMEkX-0007kj-5H for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 17:02:37 -0500 Original-Received: from out-174.mta1.migadu.com ([2001:41d0:203:375::ae]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMEkV-0003to-57 for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2024 17:02:36 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1704578550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=7z4ogKJR2/NscYdPDuPUOdH9uCHo5jKMFRvfQ4w8Z7o=; b=niqgmY2RyPGSm+8Zo5ee4mRfssPMIOAWoeOgrWmaYHmf/0VW7cq7kU5SVguV5R6L7T/IQU m3DWFpaehKxlaWyXnS24gvZzWqNcZiLJfq/VfuXKzUVAvzb2UuvfvgTbBcB4QOAGfQeB/L 2ea9Fnv2ywKtzJB75TaPIFM7VL3fJZE= X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:203:375::ae; envelope-from=jm@pub.pink; helo=out-174.mta1.migadu.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277478 Archived-At: Add rules for indenting multi-line variables and if/elseif statements, e.g.: local very_long_variable_name = "ABC".. "XYZ" local v = 123 * 456 + 789 if a and b or c then print(1) elseif b and c or a then print(0) end The lua-ts-indent-continuation-lines option can be set to nil to keep if statements flush left: if a and b or c then print(1) elseif b and c or a then print(0) end The option controlling this behavior in the EmmyLua code formatter does not affect multi-line variables so neither does lua-ts-indent-continuation-lines.