Skip to content

Commit 8360a04

Browse files
committed
Update LexicalGrammar.php
1 parent 5c35904 commit 8360a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GrammarProcessing/LexicalGrammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private function createRegexPattern(): string
129129
return '~' . implode('|', array_map(
130130
fn ($lexicalSymbol) => sprintf(
131131
'(%s)',
132-
new Vocabulary\Nonterminal($lexicalSymbol)->getPattern($this->symbols),
132+
(new Vocabulary\Nonterminal($lexicalSymbol))->getPattern($this->symbols),
133133
),
134134
[...$this->ignoredTokenSymbols, ...$this->syntaxTokenSymbols],
135135
)) . '~u';

0 commit comments

Comments
 (0)