From: Vern Paxson Date: Thu, 20 Apr 1995 11:35:12 +0000 (+0000) Subject: '-' means stdin X-Git-Tag: flex-2-5-5b~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8afc1c5be84e1fd28d220dffe12ad1b55435b7e7;p=flex '-' means stdin octal escape sequence must just be digits 0-7 --- diff --git a/scan.l b/scan.l index c986bf5..bb4faaa 100644 --- a/scan.l +++ b/scan.l @@ -83,7 +83,7 @@ NOT_NAME [^[:alpha:]_*\n]+ SCNAME {NAME} -ESCSEQ (\\([^\n]|[[:digit:]]{1,3}|x[[:xdigit:]]{1,2})) +ESCSEQ (\\([^\n]|[0-7]{1,3}|x[[:xdigit:]]{1,2})) FIRST_CCL_CHAR ([^\\\n]|{ESCSEQ}) CCL_CHAR ([^\\\n\]]|{ESCSEQ}) @@ -668,7 +668,7 @@ int yywrap() void set_input_file( file ) char *file; { - if ( file ) + if ( file && strcmp( file, "-" ) ) { infilename = copy_string( file ); yyin = fopen( infilename, "r" );