ignore colon in tokenizer

This commit is contained in:
Pekka Laiho 2020-06-04 08:28:54 +07:00
parent c633d39b07
commit 3463024a07

View File

@ -50,8 +50,8 @@ class Tokenizer
// Start of comment
$addCurrent();
$isComment = true;
} elseif ($c == ' ' || $c == "\t" || $c == "\n" || $c == "\r") {
// Whitespace is ignored
} elseif ($c == ' ' || $c == "\t" || $c == "\n" || $c == "\r" || $c == ':') {
// Whitespace and colon are ignored
$addCurrent();
} elseif ($c == '(' || $c == '[' || $c == '{') {
// Start of collection