Make TokenLabel a declaration
This commit is contained in:
parent
7ee414bbb3
commit
300ef6e0c0
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ comment = char ';' *> takeWhileP (Just "comment") (/= '\n')
|
||||||
|
|
||||||
asmToken :: Parser (AsmToken Span)
|
asmToken :: Parser (AsmToken Span)
|
||||||
asmToken
|
asmToken
|
||||||
= (TokenLabel <$> name) <|>
|
= (TokenLabel <$> name) <* (space <* char ':') <|>
|
||||||
(TokenInstruction <$> instruction) <|>
|
(TokenInstruction <$> instruction) <|>
|
||||||
(TokenDirective <$> directive) <|>
|
(TokenDirective <$> directive) <|>
|
||||||
fmap (uncurry TokenComment) (withSpan comment)
|
fmap (uncurry TokenComment) (withSpan comment)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue