aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Tokenizer.php
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2022-05-28 23:02:04 +0300
committerGitHub <noreply@github.com>2022-05-28 23:02:04 +0300
commitcbada2b920782bdfd2f18ef88c09e24ae4840f4a (patch)
tree73c3405cb2ba06022fb9c61e5bbeb3cf3ccc61e3 /src/NXP/Classes/Tokenizer.php
parentd1b060749e58a09bc437f85152d54e40c163efb0 (diff)
Space should end open numbers (#113)v2.2.2
Diffstat (limited to 'src/NXP/Classes/Tokenizer.php')
-rw-r--r--src/NXP/Classes/Tokenizer.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NXP/Classes/Tokenizer.php b/src/NXP/Classes/Tokenizer.php
index af041c1..a74bff6 100644
--- a/src/NXP/Classes/Tokenizer.php
+++ b/src/NXP/Classes/Tokenizer.php
@@ -124,6 +124,8 @@ class Tokenizer
continue 2;
case ' ' == $ch || "\n" == $ch || "\r" == $ch || "\t" == $ch:
+ $this->emptyNumberBufferAsLiteral();
+ $this->emptyStrBufferAsVariable();
$this->tokens[] = new Token(Token::Space, '');
continue 2;