Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
fix problem where %parse-params parameters wouldn't make it into th…
Browse files Browse the repository at this point in the history
…e *lexer* action code chunks.
  • Loading branch information
GerHobbelt committed Feb 2, 2017
1 parent a2844c7 commit 9e93392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regexp-lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ function buildActions(dict, tokens, opts) {
return {
caseHelperInclude: '{\n' + caseHelper.join(',') + '\n}',

actions: 'function lexer__performAction(yy, yy_, $avoiding_name_collisions, YY_START) {\n' + fun + '\n}',
actions: expandParseArguments('function lexer__performAction(yy, yy_, $avoiding_name_collisions, YY_START, parseParams) {\n', opts) + fun + '\n}',

rules: gen.rules,
macros: gen.macros // propagate these for debugging/diagnostic purposes
Expand Down

0 comments on commit 9e93392

Please sign in to comment.