forked from Lephenixnoir/fxos
lexer: only allow one leading dot in symbols to avoid clash with ..
The latter is used for ranges. Previously 0..Bdisp_PutDisp_DD would parse as 0 then the symbol `..Bdisp_PutDisp_DD`.
This commit is contained in:
parent
0a908ad835
commit
a277a4ffad
|
@ -144,7 +144,7 @@ num ({num_hex}|{num_dec}|{num_bin}){num_suffix}?
|
|||
|
||||
syscall [%][a-fA-F0-9]+
|
||||
option [a-zA-Z]+=[^ ]*
|
||||
symbol [a-zA-Z_.][a-zA-Z0-9_.]*
|
||||
symbol \.|\.?[a-zA-Z_][a-zA-Z0-9_.]*
|
||||
|
||||
space [ \t]+
|
||||
|
||||
|
|
Loading…
Reference in New Issue