allow metavariables with indices i.e. ?0, ?1, etc in the abstract syntax parser in PGF

This commit is contained in:
krasimir
2010-01-15 21:23:37 +00:00
parent 869621db66
commit 354269e17c

View File

@@ -191,7 +191,8 @@ pTyped = do RP.skipSpaces
return (ETyped e ty)
pMeta = do RP.char '?'
return 0
ds <- RP.munch isDigit
return (read ('0':ds))
pLit :: RP.ReadP Literal
pLit = liftM LStr (RP.readS_to_P reads)