summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1993-11-26 15:08:34 +0000
committerVern Paxson <vern@ee.lbl.gov>1993-11-26 15:08:34 +0000
commite0636c8ad09f2152137cf77f2e64528218b566c1 (patch)
tree74c247960bf1ddd68aef99927c459aa73e425eec /parse.y
parent7438e63861cb1317977fc1f6fea29589a3276539 (diff)
-l lex compatibility flag
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 46fc7f2..709996c 100644
--- a/parse.y
+++ b/parse.y
@@ -311,7 +311,7 @@ rule : re2 re
headcnt = 0;
}
- if ( varlength && headcnt == 0 )
+ if ( lex_compat || (varlength && headcnt == 0) )
{ /* variable trailing context rule */
/* Mark the first part of the rule as the
* accepting "head" part of a trailing
@@ -359,7 +359,7 @@ rule : re2 re
headcnt = 0;
}
- if ( varlength && headcnt == 0 )
+ if ( lex_compat || (varlength && headcnt == 0) )
{
/* Again, see the comment in the rule for
* "re2 re" above.
@@ -391,7 +391,7 @@ rule : re2 re
if ( trlcontxt )
{
- if ( varlength && headcnt == 0 )
+ if ( lex_compat || (varlength && headcnt == 0) )
/* Both head and trail are
* variable-length.
*/