Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: rillig
Date: Sat Jan 4 21:54:26 UTC 2025
Modified Files:
src/tests/usr.bin/indent: lsym_rbrace.c
src/usr.bin/indent: indent.c parse.c
Log Message:
indent: fix indentation of adjacent multi-line initializers
The main topic of this change is parse.c:66, which makes the indentation
of statements uniform with the indentation of other parser symbols.
That change had the side effect of messing up the indentation of files
whose first line does not start in column 1, such as in ps_ind_level.c.
To fix this side effect, the initial indentation must be determined
before pushing the placeholder token psym_stmt during initialization.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/indent/lsym_rbrace.c
cvs rdiff -u -r1.394 -r1.395 src/usr.bin/indent/indent.c
cvs rdiff -u -r1.81 -r1.82 src/usr.bin/indent/parse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index