--- - branch: MAIN date: Sat Mar 13 13:14:14 UTC 2021 files: - new: '1.4' old: '1.3' path: src/tests/usr.bin/indent/token-preprocessing.0.stdout pathrev: src/tests/usr.bin/indent/token-preprocessing.0.stdout@1.4 type: modified - new: '1.55' old: '1.54' path: src/usr.bin/indent/indent.c pathrev: src/usr.bin/indent/indent.c@1.55 type: modified id: 20210313T131414Z.dad4a3006d507b2d3576672e156416dae5522ca9 log: | indent: fix handling of '/*' in string literal in preprocessing line Previously, the '/*' in the string literal had been interpreted as the beginning of a comment, which was wrong. Because of that, the variable declaration in the following line was still interpreted as part of the comment. The comment even continued until the end of the file. Due to indent's forgiving nature, it neither complained nor even mentioned that anything had gone wrong. The decision of rather producing wrong output than failing early is a dangerous one. At least, there should have been an error message that at the end of the file, the parser was still in a a comment, expecting the closing '*/'. module: src subject: 'CVS commit: src' unixtime: '1615641254' user: rillig