From d54c78d966aff42429343c91ddabcdf125c46670 Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Wed, 4 Mar 2015 00:16:46 -0800 Subject: [PATCH] Use [^] for the lexer's catch-all rule [^] matches the entire character set, while . doesn't match new lines, etc. --- brut.apktool.smali/smali/src/main/jflex/smaliLexer.jflex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brut.apktool.smali/smali/src/main/jflex/smaliLexer.jflex b/brut.apktool.smali/smali/src/main/jflex/smaliLexer.jflex index df571e66..f329c7b5 100644 --- a/brut.apktool.smali/smali/src/main/jflex/smaliLexer.jflex +++ b/brut.apktool.smali/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"); } }