Make the label regex more specific.
This makes it only generate legal labels in the .post.c file.
This commit is contained in:
parent
bd44a1c748
commit
6f00d4f4a7
|
@ -68,7 +68,7 @@ parseAsmLine s
|
|||
Just [l] -> Just $ AsmFunction l
|
||||
_ -> Nothing
|
||||
where
|
||||
labelRE = mkRegex "^([^\\.0-9].*):$"
|
||||
labelRE = mkRegex "^([^\\.0-9][a-zA-Z0-9_]*):$"
|
||||
|
||||
matchInc :: String -> Maybe AsmItem
|
||||
matchInc s
|
||||
|
|
Loading…
Reference in New Issue
Block a user