OpenGrok
Cross Reference: indent_off_on.c
xref
: /
src
/
tests
/
usr.bin
/
indent
/
indent_off_on.c
Home
|
History
|
Annotate
|
Download
|
only in
indent
History log of
/src/tests/usr.bin/indent/indent_off_on.c
Revision
Date
Author
Comments
1.15
04-Jun-2023
rillig
tests/indent: cover code in lexi.c
1.14
03-Jun-2023
rillig
indent: fix indentation of adjacent '{'
1.13
21-May-2023
rillig
tests/indent: fix outdated or wrong comments
1.12
20-May-2023
rillig
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.
1.11
16-May-2023
rillig
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.
1.10
14-May-2023
rillig
indent: fix handling of multiple block comments in a line
1.9
11-May-2023
rillig
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.
1.8
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.7
22-Apr-2022
rillig
indent: remove FreeBSD IDs
Most of the IDs were empty anyway.
1.6
25-Nov-2021
rillig
indent: fix heuristic for declaration/definition to post-1990 reality
1.5
20-Nov-2021
rillig
tests/indent: normalize empty lines in tests
1.4
19-Nov-2021
rillig
tests/indent: refine and extend tests
1.3
19-Oct-2021
rillig
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.
1.2
19-Oct-2021
rillig
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.
1.1
19-Oct-2021
rillig
tests/indent: add test for INDENT OFF/ON comments
Just to prevent unintended side effects when fixing bugs in this area.
Indexes created Fri Oct 17 23:09:53 GMT 2025