mirror of
https://github.com/revanced/smali.git
synced 2025-04-30 22:54:27 +02: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
e7f1549573
commit
f70084bdfe
@ -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…
x
Reference in New Issue
Block a user