summaryrefslogtreecommitdiff
path: root/scan.l
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-07-27 19:34:55 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-07-27 19:34:55 +0000
commit7f0729df152a75cdf9eb2bdff5753d8ad29868ed (patch)
tree5d46e90c4143672b4904ede5d3e3aa578ed207cf /scan.l
parente9d5fc713f61be7ad4df74b38f94d4915b7daad0 (diff)
yylineno check is only performed on rules whose regexs can match a newline.
Diffstat (limited to 'scan.l')
-rw-r--r--scan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan.l b/scan.l
index d310e6b..00d4d81 100644
--- a/scan.l
+++ b/scan.l
@@ -279,7 +279,7 @@ LEXOPT [aceknopr]
unput ACTION_IFDEF("YY_NO_UNPUT", ! option_sense);
verbose printstats = option_sense;
warn nowarn = ! option_sense;
- yylineno do_yylineno = option_sense;
+ yylineno do_yylineno = option_sense; ACTION_IFDEF("YY_USE_LINENO", option_sense);
yymore yymore_really_used = option_sense;
yywrap do_yywrap = option_sense;