Module Name: src Committed By: rillig Date: Sat Nov 20 09:27:18 UTC 2021
Modified Files: src/tests/usr.bin/indent: lsym_word.c Log Message: tests/indent: demonstrate wrong identifier token (since 2019-04-04) No matter how simple a piece of code is, without proper automated tests there is always the chance of breaking it. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/indent/lsym_word.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/indent/lsym_word.c diff -u src/tests/usr.bin/indent/lsym_word.c:1.1 src/tests/usr.bin/indent/lsym_word.c:1.2 --- src/tests/usr.bin/indent/lsym_word.c:1.1 Thu Nov 18 21:19:19 2021 +++ src/tests/usr.bin/indent/lsym_word.c Sat Nov 20 09:27:18 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: lsym_word.c,v 1.1 2021/11/18 21:19:19 rillig Exp $ */ +/* $NetBSD: lsym_word.c,v 1.2 2021/11/20 09:27:18 rillig Exp $ */ /* $FreeBSD$ */ /* @@ -18,3 +18,18 @@ #indent end #indent run-equals-input + + +/* + * Since 2019-04-04 and before NetBSD lexi.c 1.149 from 2021-11-20, the first + * character after a backslash continuation was always considered part of a + * word, no matter whether it was a word character or not. + */ +#indent input +int var\ ++name = 4; +#indent end + +#indent run +int var+name = 4; +#indent end