We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae38875 commit 39ef6b0Copy full SHA for 39ef6b0
src/tokenizer/tokenizer.cpp
@@ -152,8 +152,8 @@ struct tokenize_delegate_helper : tokenize_delegate {
152
return;
153
}
154
155
- if (not q.empty() and (q.back() == ';' or q.back() == '{')) {
156
- // Don't insert a semicolon where one should not be.
+ if (q.empty() or q.back() == ';' or q.back() == '{') {
+ // Don't add semicolon when there is a termination token on the queue.
157
158
159
0 commit comments