Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.11, Sun Apr 24 08:48:17 2022 UTC (9 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1
lines
FILE REMOVED
tests/indent: migrate tests for parentheses, brackets, braces
Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (9 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.9: +1 -2
lines
Diff to previous 1.9 (colored)
indent: remove FreeBSD IDs Most of the IDs were empty anyway.
Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 29 17:50:37 2021 UTC (15 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.8: +3 -3
lines
Diff to previous 1.8 (colored)
indent: use prev/curr/next to refer to the current token The word 'last' just didn't match with 'next'. No functional change.
Revision 1.8 / (download) - annotate - [select for diffs], Fri Oct 29 16:54:51 2021 UTC (15 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
indent: spell 'parentheses' properly in messages and comments
Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 25 20:16:16 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.6: +10 -49
lines
Diff to previous 1.6 (colored)
tests/indent: clean up test for lbrace After splitting token_type into separate types, want_blank_before_lparen cannot depend on a parser_symbol anymore.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 24 22:44:13 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +5 -4
lines
Diff to previous 1.5 (colored)
indent: rename form_feed to tt_lex_form_feed No functional change.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 24 22:28:06 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.4: +9 -9
lines
Diff to previous 1.4 (colored)
indent: split kw_do_or_else into separate constants It was unnecessarily confusing to have the token types keyword_do_else, keyword_do and keyword_else at the same time, without any hint in what they differed. Some of the token types seem to be used by the lexer while others are used in the parse stack. Maybe all token types can be partitioned into these groups, which would suggest to use two different types for them. And if not, it's still clearer to have this distinction in the names of the constants. No functional change.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 24 17:19:49 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
indent: clean up format of warnings and errors Previously, warnings and errors had the form of C block comments. Before NetBSD io.c 1.20 from 2019-10-19, this format made sense because the diagnostics could end up in the same output stream as the formatted output. Since NetBSD io.c 1.20 from 2019-10-19, all diagnostics are redirected to stderr. This change was not mentioned in the commit message back then, it makes sense nevertheless. Since stdout and stderr now are properly separated, there is no need anymore to keep the weird format for warnings and errors. Switch to the standard 'error: file:line' format. Move the function 'diag' to indent.c to have access to the name of the current input file.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 24 16:38:00 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.2: +43 -27
lines
Diff to previous 1.2 (colored)
tests/indent: document actually reachable token combinations with '('
Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 24 15:44:13 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +126 -1
lines
Diff to previous 1.1 (colored)
tests/indent: test want_blank_before_lparen
Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 18 22:30:34 2021 UTC (15 months, 3 weeks ago) by rillig
Branch: MAIN
tests/indent: condense the token tests This reduces the number of files in the test directory. It also allows the tests to be read from top to bottom, looking at only a single file. Since t_options.awk complains about files that don't have any test case at all, add some test for each token kind. Most of the tests had previously been effectively empty.