diff --git a/src/lextest/scan.l b/src/lextest/scan.l
index 5a20a5fa5f048de1b630f21fc1ff80bac37de869..afc24ceb8479709f9703d769fc0fecd381f5308e 100644
--- a/src/lextest/scan.l
+++ b/src/lextest/scan.l
@@ -1,8 +1,10 @@
+%{
 /*
 	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;