mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-24 11:45:53 +01:00
Use [^] for the lexer's catch-all rule
[^] matches the entire character set, while . doesn't match new lines, etc.
This commit is contained in:
parent
8284715f4d
commit
d54c78d966
@ -640,5 +640,5 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor}
|
|||||||
"." { return invalidToken("Invalid directive"); }
|
"." { return invalidToken("Invalid directive"); }
|
||||||
"." [a-zA-z\-_] { return invalidToken("Invalid directive"); }
|
"." [a-zA-z\-_] { return invalidToken("Invalid directive"); }
|
||||||
"." [a-zA-z\-_] [a-zA-z0-9\-_]* { return invalidToken("Invalid directive"); }
|
"." [a-zA-z\-_] [a-zA-z0-9\-_]* { return invalidToken("Invalid directive"); }
|
||||||
. { return invalidToken("Invalid text"); }
|
[^] { return invalidToken("Invalid text"); }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user