Lexer
- Shut off the depletion requiremeent for lexed dates.
This commit is contained in:
@@ -666,7 +666,7 @@ bool Lexer::is_date (std::string& result)
|
|||||||
legacy_i = _input.length ();
|
legacy_i = _input.length ();
|
||||||
|
|
||||||
std::string legacy_result = _input.substr (_shift_counter, legacy_i - _shift_counter);
|
std::string legacy_result = _input.substr (_shift_counter, legacy_i - _shift_counter);
|
||||||
Date legacyDate (legacy_result, Lexer::dateFormat, false, false);
|
Date legacyDate (legacy_result, Lexer::dateFormat, false, false, false);
|
||||||
|
|
||||||
legacy_i -= _shift_counter;
|
legacy_i -= _shift_counter;
|
||||||
while (legacy_i--) shift ();
|
while (legacy_i--) shift ();
|
||||||
|
|||||||
Reference in New Issue
Block a user