Skip to content

Commit 8246b5e

Browse files
committed
Added Z0 as a null move
1 parent 5972478 commit 8246b5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Lexer/AbstractLexer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ public function getNextToken(): ?TokenInterface
102102
return new NullMove();
103103
}
104104

105+
// Match a null move
106+
if (preg_match('/^\s*Z0\s*/', $this->buffer, $matches)) {
107+
$this->buffer = substr($this->buffer, strlen($matches[0]));
108+
return new NullMove();
109+
}
110+
105111
throw InvalidTokenException::createForBuffer($this->buffer);
106112
}
107113

0 commit comments

Comments
 (0)