summaryrefslogtreecommitdiff
path: root/src-3.0/GF/Command/Parse.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src-3.0/GF/Command/Parse.hs')
-rw-r--r--src-3.0/GF/Command/Parse.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-3.0/GF/Command/Parse.hs b/src-3.0/GF/Command/Parse.hs
index 12c88464f..1b603f411 100644
--- a/src-3.0/GF/Command/Parse.hs
+++ b/src-3.0/GF/Command/Parse.hs
@@ -32,9 +32,11 @@ pOption = do
RP.option (OOpt flg) (fmap (OFlag flg) (RP.char '=' >> pValue))
pValue = do
- fmap VId pFilename
- RP.<++
fmap (VInt . read) (RP.munch1 isDigit)
+ RP.<++
+ fmap VStr pStr
+ RP.<++
+ fmap VId pFilename
pFilename = liftM2 (:) (RP.satisfy isFileFirst) (RP.munch (not . isSpace)) where
isFileFirst c = not (isSpace c) && not (isDigit c)