1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-01 18:32:37 +02:00

YAML tokenizer bug - mishandled comment lines

A comment line returned the previous token
This commit is contained in:
Mitch Bradley
2021-06-21 13:01:43 -10:00
parent eba335fc65
commit 1a1ee8e7a1

View File

@@ -71,8 +71,9 @@ namespace Configuration {
token_.indent_ = indent;
if (Eof()) {
token_.state = TokenState::Eof;
token_.indent_ = -1;
token_.state = TokenState::Eof;
token_.indent_ = -1;
token_.keyStart_ = token_.keyEnd_ = current_;
return;
}
switch (Current()) {
@@ -85,7 +86,7 @@ namespace Configuration {
while (!Eof() && !IsEndLine()) {
Inc();
}
return;
goto parseAgain;
case '\r':
Inc();