summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-22 17:30:10 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-22 17:32:39 (GMT)
commit24f55db22433621dc80a068583b4bf8886ae2603 (patch) (side-by-side diff)
tree333a79ccf64bcb706780ac1d2807fa2be20b3d4e /src
parent4a994c621995aafa110caa26114acb75f6ad76ed (diff)
downloadgrecs-24f55db22433621dc80a068583b4bf8886ae2603.tar.gz
grecs-24f55db22433621dc80a068583b4bf8886ae2603.tar.bz2
bind lexer: bugfix.
* src/bind-lex.l: Fix comment starter rule to take precedence over the identifier rule. * tests/bind00.at: New testcase. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Likewise.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/bind-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bind-lex.l b/src/bind-lex.l
index 7a9ff90..67fade0 100644
--- a/src/bind-lex.l
+++ b/src/bind-lex.l
@@ -42,7 +42,7 @@ P [1-9][0-9]*
%%
/* C-style comments */
-"/*" BEGIN(COMMENT);
+"/*".* BEGIN(COMMENT);
<COMMENT>[^*\n]* /* eat anything that's not a '*' */
<COMMENT>"*"+[^*/\n]* /* eat up '*'s not followed by '/'s */
<COMMENT>\n ++grecs_current_locus.line;

Return to:

Send suggestions and report system problems to the System administrator.