The NetBSD Project

CVS log for src/tests/usr.bin/indent/indent_off_on.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 4 22:20:04 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +22 -1 lines
Diff to previous 1.14 (colored) to selected 1.3 (colored)

tests/indent: cover code in lexi.c

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 3 21:44:08 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.3 (colored)

indent: fix indentation of adjacent '{'

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 21 10:18:44 2023 UTC (10 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.3 (colored)

tests/indent: fix outdated or wrong comments

Revision 1.12 / (download) - annotate - [select for diffs], Sat May 20 10:25:47 2023 UTC (10 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.11: +17 -1 lines
Diff to previous 1.11 (colored) to selected 1.3 (colored)

indent: ensure that no blank lines are inserted in INDENT OFF mode

No blank lines were inserted previously, but the code looked
suspicious as if that were possible.

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 16 08:04:04 2023 UTC (10 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.10: +12 -53 lines
Diff to previous 1.10 (colored) to selected 1.3 (colored)

indent: fix handling of INDENT OFF/ON comments

Previously, the 'INDENT OFF' comments were interpreted when the newline
token from the line above the comment was processed, which was earlier
than could be reasonably expected.

The 'INDENT ON' comments were interpreted equally early, which led to
the situation that the 'INDENT OFF' comments were preserved literally
but the 'INDENT ON' comments weren't.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 14 17:53:38 2023 UTC (10 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.9: +5 -4 lines
Diff to previous 1.9 (colored) to selected 1.3 (colored)

indent: fix handling of multiple block comments in a line

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 11 18:13:55 2023 UTC (10 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.8: +22 -3 lines
Diff to previous 1.8 (colored) to selected 1.3 (colored)

indent: remove broken code for handling blank lines

This fixes several bugs where blank lines were erroneously added or
removed, treating these old bugs for new bugs in different places.
These new bugs are expected to be easier to fix, as the old bugs will
not interfere anymore.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (23 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.7: +41 -41 lines
Diff to previous 1.7 (colored) to selected 1.3 (colored)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (23 months ago) by rillig
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored) to selected 1.3 (colored)

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 25 17:10:53 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.5: +7 -11 lines
Diff to previous 1.5 (colored) to selected 1.3 (colored)

indent: fix heuristic for declaration/definition to post-1990 reality

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 20 11:13:18 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored) to selected 1.3 (colored)

tests/indent: normalize empty lines in tests

Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 19 22:24:29 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.3: +53 -5 lines
Diff to previous 1.3 (colored)

tests/indent: refine and extend tests

Revision 1.3 / (download) - annotate - [selected], Tue Oct 19 21:21:07 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.2: +19 -1 lines
Diff to previous 1.2 (colored)

indent: use simpler code for copying the input buffer

In debug mode, this reduces the amount of debug output lines.

No functional change in default mode.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 19 20:41:42 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.1: +80 -1 lines
Diff to previous 1.1 (colored) to selected 1.3 (colored)

tests/indent: move tests for indent comments

The special INDENT ON and INDENT OFF comments look like ordinary
comments but are handled in inbuf_read_line. Implementing this feature
in the input function has several unintended side effects regarding
indentation of these comments, as demonstrated by the tests.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 19 20:20:25 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Diff to selected 1.3 (colored)

tests/indent: add test for INDENT OFF/ON comments

Just to prevent unintended side effects when fixing bugs in this area.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>