History log of /netbsd/tests/usr.bin/indent/lsym_period.c (Results 1 – 5 of 5)
Revision Date Author Comments
# b2d78a8e 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 ...


# a7c73139 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.


# e96f62ab 23-Apr-2022 rillig <rillig@NetBSD.org>

tests/indent: migrate tests for the tokens '{' and '.'


# 0dbe4b88 22-Apr-2022 rillig <rillig@NetBSD.org>

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.


# 2a001ffd 18-Nov-2021 rillig <rillig@NetBSD.org>

tests/indent: add skeletons for testing tokens and parser symbols

The constants that were previously defined in indent_codes.h were a wild
mixture of tokens from the lexer and symbols on the parser

tests/indent: add skeletons for testing tokens and parser symbols

The constants that were previously defined in indent_codes.h were a wild
mixture of tokens from the lexer and symbols on the parser stack. They
were split into separate types starting at indent.h 1.49 from 2021-10-25
and finishing at 1.73 from 2021-10-31.

To match the tests with the new token names, the old tests need to be
migrated to the newly added tests. This will take some time so first
add the skeletons and migrate them in smaller steps, cleaning them up
and extending them on the way.

show more ...