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
5878 if (str)5878 if (str)
5879 *str = tok_str_alloc();5879 *str = tok_str_alloc();
5880 5880
5881 while ((level > 0 || (tok != '}' && tok != ',' && tok != ';'))) {5881 while ((level > 0 || (tok != '}' && tok != ',' && tok != ';' && tok != ')'))) {
5882 int t;5882 int t;
5883 if (tok == TOK_EOF) {5883 if (tok == TOK_EOF) {
5884 if (str || level > 0)5884 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