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 // Start of comment
$addCurrent(); $addCurrent();
$isComment = true; $isComment = true;
} elseif ($c == ' ' || $c == "\t" || $c == "\n" || $c == "\r") { } elseif ($c == ' ' || $c == "\t" || $c == "\n" || $c == "\r" || $c == ':') {
// Whitespace is ignored // Whitespace and colon are ignored
$addCurrent(); $addCurrent();
} elseif ($c == '(' || $c == '[' || $c == '{') { } elseif ($c == '(' || $c == '[' || $c == '{') {
// Start of collection // Start of collection