Fix regression in 3.0.0 where legal code following an operator<< definition might give a syntax error.

SF Bug #1365.
This commit is contained in:
William S Fulton 2014-04-04 08:31:59 +01:00
commit 1d857beb9d
3 changed files with 15 additions and 1 deletions

View file

@ -543,8 +543,10 @@ static int look(Scanner * s) {
state = 220;
else if (c == '}')
return SWIG_TOKEN_RBRACE;
else if (c == '{')
else if (c == '{') {
Scanner_clear_brackets(s);
return SWIG_TOKEN_LBRACE;
}
else if (c == '=')
state = 33;
else if (c == '+')