We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe56fc commit ec25280Copy full SHA for ec25280
src/Parser.php
@@ -11,6 +11,7 @@
11
use Phplrt\Contracts\Source\ReadableInterface;
12
use Phplrt\Contracts\Source\SourceFactoryInterface;
13
use Phplrt\Lexer\Config\NullHandler;
14
+use Phplrt\Lexer\Config\PassthroughHandler;
15
use Phplrt\Lexer\Lexer;
16
use Phplrt\Parser\BuilderInterface;
17
use Phplrt\Parser\Context;
@@ -114,7 +115,7 @@ private function createLexer(array $grammar): Lexer
114
115
return new Lexer(
116
tokens: $grammar['tokens']['default'],
117
skip: $grammar['skip'],
- onUnknownToken: new NullHandler(),
118
+ onUnknownToken: new PassthroughHandler(),
119
);
120
}
121
0 commit comments