This commit is contained in:
Ferdinand Majerech 2014-08-05 01:51:20 +02:00
parent 44885cde4e
commit 0424ff5e77

View file

@ -182,7 +182,7 @@ final class Scanner
/// any tokens left if no types specified, false otherwise. /// any tokens left if no types specified, false otherwise.
bool checkToken(const TokenID[] ids ...) @safe bool checkToken(const TokenID[] ids ...) @safe
{ {
//Check if the next token is one of specified types. // Check if the next token is one of specified types.
while(needMoreTokens()) { fetchToken(); } while(needMoreTokens()) { fetchToken(); }
if(!tokens_.empty) if(!tokens_.empty)
{ {