Skip to content
Snippets Groups Projects
Commit dd677db8 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Small code cleanup in the lexer code.

parent a594d8f1
No related branches found
No related tags found
No related merge requests found
......@@ -795,13 +795,10 @@ static bool sieve_lexer_scan_raw_token(struct sieve_lexer *lexer)
bool sieve_lexer_skip_token(struct sieve_lexer *lexer)
{
/* Scan token */
if ( !sieve_lexer_scan_raw_token(lexer) ) return FALSE;
/* Skip any whitespace */
while ( lexer->token_type == STT_WHITESPACE ) {
/* Scan token while skipping whitespace */
do {
if ( !sieve_lexer_scan_raw_token(lexer) ) return FALSE;
}
} while ( lexer->token_type == STT_WHITESPACE );
return TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.