projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c6487
)
C++ operator can be at the start of a statement, too.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 2 Dec 2008 15:22:24 +0000
(15:22 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 2 Dec 2008 15:22:24 +0000
(15:22 +0000)
[r24227]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
593f253
..
1d4862c
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-10786,6
+10786,7
@@
static statement_t *parse_compound_statement(bool inside_expression_statement)
add_anchor_token(T_int);
add_anchor_token(T_long);
add_anchor_token(T_new);
+ add_anchor_token(T_operator);
add_anchor_token(T_register);
add_anchor_token(T_reinterpret_cast);
add_anchor_token(T_restrict);
@@
-10898,6
+10899,7
@@
end_error:
rem_anchor_token(T_restrict);
rem_anchor_token(T_reinterpret_cast);
rem_anchor_token(T_register);
+ rem_anchor_token(T_operator);
rem_anchor_token(T_new);
rem_anchor_token(T_long);
rem_anchor_token(T_int);