You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Indent backslash continuation lines according to style guide (#218)
Close#180
* Indent backslash continuation lines according to style guide
From gdscript style guide[^1]:
> Use 2 indent levels to distinguish continuation lines from regular code blocks.
Currently the formatter indents continuation lines to the same level as
the first line:
```gdscript
func test(thing):
thing.calling(1) \
.a(12314) \
.long() \
.chain("a string breaks things") \
.of() \
.functions()
```
With this change, continuation lines (joined with a backslash) are
formatted with double indention:
```gdscript
func test(thing):
thing.calling(1) \
.a(12314) \
.long() \
.chain("a string breaks things") \
.of() \
.functions()
```
fixes#180
[^1]: https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_styleguide.html#indentation
* Use queries to narrow and address the indent backslash continuation line issue
---------
Co-authored-by: Nathan Lovato <12694995+NathanLovato@users.noreply.github.com>
0 commit comments