From 6064f93f1d0479efa5da627045c693dde8d69f8c Mon Sep 17 00:00:00 2001 From: Matijn Woudt Date: Wed, 3 Jun 2009 12:42:21 +0200 Subject: wrc: Add support for nameID with single and double quotes. --- tools/wrc/parser.l | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l index bddc309..be73068 100644 --- a/tools/wrc/parser.l +++ b/tools/wrc/parser.l @@ -404,7 +404,7 @@ static unsigned long xstrtoul(const char *nptr, char **endptr, int base) * and *only* in a filename. In this case, the second * rule will be reduced because it is longer. */ -[A-Za-z_0-9.]+ { +(([']["A-Za-z_0-9.]+['])|(["]['A-Za-z_0-9.]+["])|([A-Za-z_0-9.]+))+ { struct keyword *tok = iskeyword(yytext); if(tok) -- 1.6.0.4