summaryrefslogtreecommitdiff
path: root/src/lextest/scan.l
blob: 5a20a5fa5f048de1b630f21fc1ff80bac37de869 (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
	This should work, but non-patched flex 2.5.3 fails because input()
	doesn't return EOF or '\0'
	Bruce Momjian <root@candle.pha.pa.us>
*/
%%
.		{
			int ch;
			while ((ch = input()) != EOF && ch != '\0')
				;
		}