Module Name: src Committed By: rillig Date: Sun Sep 26 19:02:35 UTC 2021
Added Files: src/usr.bin/indent: .indent.pro Log Message: indent: add .indent.pro that almost matches the source code One might expect that the code of indent is properly indented according to its own capabilities, but that's not the case, there are many deviations. This indentation profile comes close to the existing code. Maybe someday indent's own source code can be formatted using this profile, but before attempting that, its remaining bugs have to be fixed. Development of indent has essentially stopped somewhere around 1990, as demonstrated by the wrong formatting of '...' that has only been fixed a few minutes ago. The '...' is an invention of C90. Indent's parser still considers '...' as consisting of the 3 tokens period-period-period, but that's OK since the effect is the same. Another feature that had been missing for a long time were C99 comments that span from '//' to the next newline. Before March 2021, these were parsed as a binary operator, which produced lots of funny side effects. Since indent's code makes use of several C99 features, as soon as it can properly indent its own code, the worst of these bugs will have been fixed. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/usr.bin/indent/.indent.pro Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.