diff --git a/source/dub/internal/sdlang/lexer.d b/source/dub/internal/sdlang/lexer.d index 0da140a..fa79786 100644 --- a/source/dub/internal/sdlang/lexer.d +++ b/source/dub/internal/sdlang/lexer.d @@ -546,7 +546,7 @@ } advanceChar(ErrorOnEOF.Yes); - do + while(ch != '"') { if(ch == '\\') { @@ -582,7 +582,7 @@ error("Unescaped newlines are only allowed in raw strings, not regular strings."); advanceChar(ErrorOnEOF.Yes); - } while(ch != '"'); + } updateBuf(); advanceChar(ErrorOnEOF.No); // Skip closing double-quote