diff options
author | Ben Gruver <bgruv@google.com> | 2015-03-04 00:16:46 -0800 |
---|---|---|
committer | Ben Gruver <bgruv@google.com> | 2015-03-04 00:16:46 -0800 |
commit | f70084bdfeba10dfb68c2c63eb1bedd4e42b4b0f (patch) | |
tree | bd1ab02e3fdbf2dd5daade466f8c9a4560f5c86d | |
parent | e7f1549573fd5147f3c36adf21bca1f7e4e728e3 (diff) | |
download | smali-f70084bdfeba10dfb68c2c63eb1bedd4e42b4b0f.tar.gz |
Use [^] for the lexer's catch-all rule
[^] matches the entire character set, while . doesn't match new lines, etc.
-rw-r--r-- | smali/src/main/jflex/smaliLexer.jflex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smali/src/main/jflex/smaliLexer.jflex b/smali/src/main/jflex/smaliLexer.jflex index df571e66..f329c7b5 100644 --- a/smali/src/main/jflex/smaliLexer.jflex +++ b/smali/src/main/jflex/smaliLexer.jflex @@ -640,5 +640,5 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor} "." { return invalidToken("Invalid directive"); } "." [a-zA-z\-_] { return invalidToken("Invalid directive"); } "." [a-zA-z\-_] [a-zA-z0-9\-_]* { return invalidToken("Invalid directive"); } - . { return invalidToken("Invalid text"); } + [^] { return invalidToken("Invalid text"); } } |