forked from GitHub/gf-core
In shell "p" command, only try languages that have a parser.
This commit is contained in:
@@ -530,7 +530,7 @@ allCommands cod pgf = Map.fromList [
|
||||
where
|
||||
enc = encodeUnicode cod
|
||||
lin opts t = unlines [linearize pgf lang t | lang <- optLangs opts]
|
||||
par opts s = concat [parse pgf lang (optCat opts) s | lang <- optLangs opts]
|
||||
par opts s = concat [parse pgf lang (optCat opts) s | lang <- optLangs opts, canParse pgf lang]
|
||||
|
||||
void = ([],[])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user