Module Name: src Committed By: rillig Date: Tue Mar 9 19:14:39 UTC 2021
Modified Files: src/usr.bin/indent: indent.c indent_codes.h lexi.c parse.c Log Message: indent: make token names more precise The previous 'casestmt' was wrong since a case label is not a statement at all. The previous 'swstmt' was overly short, and wrong as well, since it represents only the 'switch (expr)' part, which is not a complete switch statement. Same for 'ifstmt', 'whilestmt', 'forstmt'. The previous word 'head' was not precise enough since it didn't specify exactly where the head ends and the body starts. Especially for handling the dangling else, this distinction is important. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/usr.bin/indent/indent.c cvs rdiff -u -r1.9 -r1.10 src/usr.bin/indent/indent_codes.h cvs rdiff -u -r1.29 -r1.30 src/usr.bin/indent/lexi.c cvs rdiff -u -r1.16 -r1.17 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.