Lexer: Modified ::isSubstitution to use ::readWord
This commit is contained in:
@@ -911,13 +911,12 @@ bool Lexer::isSubstitution (std::string& token, Lexer::Type& type)
|
|||||||
{
|
{
|
||||||
std::size_t marker = _cursor;
|
std::size_t marker = _cursor;
|
||||||
|
|
||||||
std::string extractedToken;
|
std::string word;
|
||||||
Lexer::Type extractedType;
|
if (readWord (_text, "/", _cursor, word))
|
||||||
if (isString (extractedToken, extractedType, "/"))
|
|
||||||
{
|
{
|
||||||
--_cursor; // Step back over the '/'.
|
--_cursor; // Step backwards over the '/'.
|
||||||
|
|
||||||
if (isString (extractedToken, extractedType, "/"))
|
if (readWord (_text, "/", _cursor, word))
|
||||||
{
|
{
|
||||||
if (_text[_cursor] == 'g')
|
if (_text[_cursor] == 'g')
|
||||||
++_cursor;
|
++_cursor;
|
||||||
|
|||||||
Reference in New Issue
Block a user