From: ian Date: Sun, 13 Jul 2008 19:24:44 +0000 (+0000) Subject: identifiers here have - not _ X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=5145a51994f92017ba69699ae67d25deb00a9424;p=trains.git identifiers here have - not _ --- diff --git a/hostside/record-l.l b/hostside/record-l.l index 053a0e8..77c0952 100644 --- a/hostside/record-l.l +++ b/hostside/record-l.l @@ -30,7 +30,7 @@ home { STRT HOME; } end { STRT END; } /* new keywords must be added to %token and ident: in record-y.y */ -[A-Za-z][A-Za-z0-9_]+ { STRT IDENT; } +[A-Za-z][-A-Za-z0-9]+ { STRT IDENT; } [0-9]{0,8} { record_yylval.num= strtoul(yytext,0,10); return NUM; } [0-9]{9} { record_yyerror("number too long"); }