Cleaned up the mana parser lookahead rules
This commit is contained in:
parent
2a02c96f2f
commit
db9148a76b
1 changed files with 4 additions and 4 deletions
|
@ -5,10 +5,10 @@ import Text.ParserCombinators.Parsec
|
|||
|
||||
mana :: Parser Cost
|
||||
mana = do
|
||||
colorless' <- (many colorless)
|
||||
colored' <- (many colored)
|
||||
hybrid' <- (manyTill hybrid $ try $ lookAhead $ many phyrexian)
|
||||
phyrexian' <- (many phyrexian)
|
||||
colorless' <- many colorless
|
||||
colored' <- many colored
|
||||
hybrid' <- many $ try hybrid
|
||||
phyrexian' <- many $ try phyrexian
|
||||
return $ Cost (colorless' ++ colored') hybrid' phyrexian'
|
||||
|
||||
standard :: Parser Standard
|
||||
|
|
Loading…
Reference in a new issue