emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68297: closed ([PATCH] Support indented continuation lines in lua-ts


From: GNU bug Tracking System
Subject: bug#68297: closed ([PATCH] Support indented continuation lines in lua-ts-mode)
Date: Thu, 11 Jan 2024 20:53:02 +0000

Your message dated Thu, 11 Jan 2024 12:52:23 -0800
with message-id 
<CADwFkm=Q125AhJonkah6zwe4+yPBYMyBn-9gAdUZcH4AD=OKgw@mail.gmail.com>
and subject line Re: bug#68297: [PATCH] Support indented continuation lines in 
lua-ts-mode
has caused the debbugs.gnu.org bug report #68297,
regarding [PATCH] Support indented continuation lines in lua-ts-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
68297: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68297
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Support indented continuation lines in lua-ts-mode Date: Sat, 06 Jan 2024 12:56:17 -0600
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.



--- End Message ---
--- Begin Message --- Subject: Re: bug#68297: [PATCH] Support indented continuation lines in lua-ts-mode Date: Thu, 11 Jan 2024 12:52:23 -0800
john muhl <jm@pub.pink> writes:

> ...and now I see that only handled top-level statements. This
> one works with nested ifs and variables too.

Thanks, installed on master (43b4993d73b).


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]