From eb004e0f1388470d70a4c8ffc653d593cc372887 Mon Sep 17 00:00:00 2001 From: jkim Date: Fri, 3 May 2013 23:51:32 +0000 Subject: Improve compatibility with recent flex from flex.sourceforge.net. --- usr.sbin/config/lang.l | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.sbin/config') diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l index 81f820f..c56c6af 100644 --- a/usr.sbin/config/lang.l +++ b/usr.sbin/config/lang.l @@ -38,9 +38,6 @@ #include "y.tab.h" #include "config.h" -#define YY_NO_UNPUT -#define YY_NO_INPUT - /* * Data for returning to previous files from include files. */ @@ -97,6 +94,10 @@ unsigned int hex(const char *); int yyerror(const char *); %} + +%option nounput +%option noinput + ID [A-Za-z_][-A-Za-z_0-9]* PATH [./][-/.%^A-Za-z_0-9]+ %START TOEOL -- cgit v1.1