Make the label regex more specific.

This makes it only generate legal labels in the .post.c file.
This commit is contained in:
Adam Sampson 2007-08-21 22:19:54 +00:00
parent bd44a1c748
commit 6f00d4f4a7

View File

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