Skip to content

Commit

Permalink
Bug fix: characters in strings were read twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Nafees10 committed Dec 17, 2020
1 parent c0a693b commit fd5b756
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/qscript/compiler/tokengen.d
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ private TokenList separateTokens(string[] script){
lastToken = token.dup;
return true;
}
return false;
}
// unexpected strings get read as separate tokens
if ((c == '\"' || c == '\'') && token[0] != c){
Expand Down

0 comments on commit fd5b756

Please sign in to comment.