summaryrefslogtreecommitdiffstats
path: root/src/Lexer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lexer.php')
-rw-r--r--src/Lexer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Lexer.php b/src/Lexer.php
index 1aa376e..e734c6f 100644
--- a/src/Lexer.php
+++ b/src/Lexer.php
@@ -871,6 +871,10 @@ class Lexer extends Core
$token .= $this->str[$this->last++];
$flags |= Token::FLAG_SYMBOL_SYSTEM;
}
+ } elseif ($flags & Token::FLAG_SYMBOL_PARAMETER) {
+ if ($this->last + 1 < $this->len) {
+ $this->last++;
+ }
} else {
$token = '';
}