History log of /src/tests/usr.bin/indent/lsym_preprocessing.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.15 16-Jun-2023 rillig

tests/indent: format stderr output as end-of-line comments

This generates fewer error markers in syntax-aware editors.


# 1.14 14-Jun-2023 rillig

indent: clean up the code, add a few tests


# 1.13 14-Jun-2023 rillig

tests/indent: separate stdout from stderr

Due to buffering, there was no guarantee that the output would be
exactly in the same order as written in the tests.


# 1.12 14-Jun-2023 rillig

indent: use correct preprocessing directive in error message


# 1.11 14-Jun-2023 rillig

indent: allow more than 5 levels of #if/#endif


# 1.10 13-May-2023 rillig

indent: preserve indentation of preprocessor directives


# 1.9 11-May-2023 rillig

tests/indent: test interaction between preprocessing and comments


# 1.8 11-May-2023 rillig

indent: don't touch comments in preprocessing lines

The indentation of multi-line comments was wrong, and the code for
handling them was too complicated.


# 1.7 11-May-2023 rillig

tests/indent: add more tests for preprocessing directives


# 1.6 11-May-2023 rillig

tests/indent: test multi-line comments in preprocessing lines


Revision tags: netbsd-10-1-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
# 1.5 24-Apr-2022 rillig

tests/indent: migrate token tests to other tests

In indent.h 1.49 from 2021-10-25, the enumeration token_type was split
into lexer_symbol and parser_symbol to more clearly express that these
tokens fall into completely different classes of usage patterns.


# 1.4 24-Apr-2022 rillig

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.


# 1.3 22-Apr-2022 rillig

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.


# 1.2 20-Nov-2021 rillig

tests/indent: clean up and extend tests


# 1.1 18-Nov-2021 rillig

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.