Module Name: src Committed By: rillig Date: Tue May 16 08:04:04 UTC 2023
Modified Files: src/tests/usr.bin/indent: indent_off_on.c src/usr.bin/indent: indent.c indent.h io.c lexi.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/indent/indent_off_on.c cvs rdiff -u -r1.286 -r1.287 src/usr.bin/indent/indent.c cvs rdiff -u -r1.143 -r1.144 src/usr.bin/indent/indent.h cvs rdiff -u -r1.172 -r1.173 src/usr.bin/indent/io.c cvs rdiff -u -r1.193 -r1.194 src/usr.bin/indent/lexi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.