Microcode: Fix a very old bug with parsing external labels in microcode.
This commit is contained in:
parent
c5c6ad7ed6
commit
523531a40e
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ def t_params_PARAMS(t):
|
||||||
def t_asm_ID(t):
|
def t_asm_ID(t):
|
||||||
r'[A-Za-z_]\w*'
|
r'[A-Za-z_]\w*'
|
||||||
t.type = reserved_map.get(t.value, 'ID')
|
t.type = reserved_map.get(t.value, 'ID')
|
||||||
t.lexer.begin('params')
|
# If the ID is really "extern", we shouldn't start looking for parameters
|
||||||
|
# yet. The real ID, the label itself, is coming up.
|
||||||
|
if t.type != 'EXTERN':
|
||||||
|
t.lexer.begin('params')
|
||||||
return t
|
return t
|
||||||
|
|
||||||
# If there is a label and you're -not- in the assembler (which would be caught
|
# If there is a label and you're -not- in the assembler (which would be caught
|
||||||
|
|
Loading…
Reference in a new issue