core/asm: fix hex number lexing (#14861)
This commit is contained in:
@ -254,7 +254,7 @@ func lexInsideString(l *lexer) stateFn {
|
||||
|
||||
func lexNumber(l *lexer) stateFn {
|
||||
acceptance := Numbers
|
||||
if l.accept("0") && l.accept("xX") {
|
||||
if l.accept("0") || l.accept("xX") {
|
||||
acceptance = HexadecimalNumbers
|
||||
}
|
||||
l.acceptRun(acceptance)
|
||||
|
Reference in New Issue
Block a user