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:
Lephenixnoir 2022-12-08 17:46:30 +01:00
parent 0a908ad835
commit a277a4ffad
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -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]+