- Enhance the tests to guarantee persistence of ListOption
values in saved options files.
+ From Christian Neeb:
+
+ - Fix the Java parser's handling of string definitions to avoid ignoring
+ subsequent code.
+
From Han-Wen Nienhuys:
- Optimize variable expansion by: using the re.sub() method (when
self.outer_state = outer_state
self.tokens_to_find = 2
def parseToken(self, token):
- # This is an anonymous class if and only if the next token is a bracket
+ # This is an anonymous class if and only if the next token
+ # is a bracket
if token == '{':
self.outer_state.addAnonClass()
+ elif token in ['"', "'"]:
+ return IgnoreState(token, self)
return self.outer_state
class SkipState:
public static void main(String[] args)
{
+ /* This tests a former bug where strings would eat later code. */
+ String hello1 = new String("Hello, world!");
+
}
}