core/asm: allow numbers in labels (#20362)
Numbers were already allowed when creating labels, just not when referencing them.
This commit is contained in:
committed by
Felix Lange
parent
5d21667587
commit
3a0480e07d
@ -234,7 +234,7 @@ func lexComment(l *lexer) stateFn {
|
||||
// the lex text state function to advance the parsing
|
||||
// process.
|
||||
func lexLabel(l *lexer) stateFn {
|
||||
l.acceptRun(Alpha + "_")
|
||||
l.acceptRun(Alpha + "_" + Numbers)
|
||||
|
||||
l.emit(label)
|
||||
|
||||
|
Reference in New Issue
Block a user