History

Extend skip_or_save_block

Make it stop also before outer level closing parens. This way we can now also skip/save the expression inside "foobar(42 + 41)".

Michael Matz committed 9 years ago

Commit 580ad5f1 parent 27ca3031 file · +1 −1Browse files

Unified · Split

tccgen.c+1−1
@@ -5878,7 +5878,7 @@ static void skip_or_save_block(TokenString **str) · 5877 unmodified lines
58785878 if (str)
58795879 *str = tok_str_alloc();
58805880
5881− while ((level > 0 || (tok != '}' && tok != ',' && tok != ';'))) {
5881+ while ((level > 0 || (tok != '}' && tok != ',' && tok != ';' && tok != ')'))) {
58825882 int t;
58835883 if (tok == TOK_EOF) {
58845884 if (str || level > 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t