History log of /netbsd-src/tests/usr.bin/indent/fmt_else_comment.c (Results 1 – 6 of 6)
Revision Date Author Comments
# f7b95e49 23-Jun-2023 rillig <rillig@NetBSD.org>

tests/indent: fix comments


# 37331766 11-May-2023 rillig <rillig@NetBSD.org>

indent: remove buggy code for swapping tokens

It is not the job of an indenter to swap tokens, even if it's only about
placing comments elsewhere. The code that swapped the tokens was
complicated,

indent: remove buggy code for swapping tokens

It is not the job of an indenter to swap tokens, even if it's only about
placing comments elsewhere. The code that swapped the tokens was
complicated, buggy and impossible to understand.

In -br (brace right) mode, indent no longer moves a '{' from the
beginning of a line to the end of the previous line, as that was handled
by the token swapping code as well. This change is unintended, but it
will be easier to re-add that now that the code is simpler.

show more ...


# 47306038 24-Apr-2022 rillig <rillig@NetBSD.org>

tests/indent: change directive from '#' to '//'

Using a '//' instead of '#' turns the directives into well-formed C
code, resulting in fewer error markers in the editor.


# 53e024a7 22-Apr-2022 rillig <rillig@NetBSD.org>

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.


# 6c6e6473 19-Nov-2021 rillig <rillig@NetBSD.org>

tests/indent: refine and extend tests


# 8c1e5e02 22-Oct-2021 rillig <rillig@NetBSD.org>

tests/indent: migrate a few more tests to t_options