mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 17:12:50 -06:00
fix a typo. It is option "-cat" not "-type"
This commit is contained in:
@@ -232,7 +232,12 @@ wordCompletion gfenv line0 prefix0 p =
|
|||||||
pgf = multigrammar cmdEnv
|
pgf = multigrammar cmdEnv
|
||||||
cmdEnv = commandenv gfenv
|
cmdEnv = commandenv gfenv
|
||||||
optLang opts = valCIdOpts "lang" (head (languages pgf)) opts
|
optLang opts = valCIdOpts "lang" (head (languages pgf)) opts
|
||||||
optType opts = DTyp [] (mkCId (valStrOpts "type" (prCId $ lookStartCat pgf) opts)) []
|
optType opts =
|
||||||
|
let str = valStrOpts "cat" (prCId $ lookStartCat pgf) opts
|
||||||
|
in case readType str of
|
||||||
|
Just ty -> ty
|
||||||
|
Nothing -> error ("Can't parse '"++str++"' as type")
|
||||||
|
|
||||||
|
|
||||||
ret c [x] = return [x++[c]]
|
ret c [x] = return [x++[c]]
|
||||||
ret _ xs = return xs
|
ret _ xs = return xs
|
||||||
|
|||||||
Reference in New Issue
Block a user