[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Stylistic changes to tree-sitter code
From: |
Po Lu |
Subject: |
Stylistic changes to tree-sitter code |
Date: |
Thu, 27 Oct 2022 21:33:10 +0800 |
I tried to fix much of the broken style in treesit.c, mainly instances
of:
variable =
mumble (frob (bar), (foo () + bar ()) + (baz () + quux ()))
which should actually be
variable
= mumble (frob (bar), (foo () + bar ()) + (baz () + quux ()))
and
foo =
mumble (frob (bar), 0)
+ (foo () + bar ())
+ (baz () + quux ())
which should actually be
foo = (mumble (frob (bar), 0)
+ (foo () + bar ())
+ (baz () + quux ()))
I also changed many places to use FOR_EACH_TAIL and handle circular
lists in user input correctly.
Unfortunately, I don't have tree-sitter installed, so would someone
please do a smoke test on the changes before I install them?
In addition, I tried to improve the wording of the comments. But that's
not the important part.
0001-Stylistic-changes-to-tree-sitter-code.patch
Description: Text Data
- Stylistic changes to tree-sitter code,
Po Lu <=
- Re: Stylistic changes to tree-sitter code, Robert Pluim, 2022/10/27
- Re: Stylistic changes to tree-sitter code, Po Lu, 2022/10/27
- Re: Stylistic changes to tree-sitter code, Yuan Fu, 2022/10/28
- Re: Stylistic changes to tree-sitter code, Robert Pluim, 2022/10/28
- Re: Stylistic changes to tree-sitter code, Po Lu, 2022/10/28
- Re: Stylistic changes to tree-sitter code, Po Lu, 2022/10/28
- Re: Stylistic changes to tree-sitter code, Yuan Fu, 2022/10/29
- Re: Stylistic changes to tree-sitter code, Po Lu, 2022/10/29
- Re: Stylistic changes to tree-sitter code, Eli Zaretskii, 2022/10/29
- Re: Stylistic changes to tree-sitter code, Po Lu, 2022/10/29