forked from GitHub/gf-core
GF shell: fixed problems with previous change of the -retain flag
Because the prompt included the name of the abstract syntax, the loading of the PGF was forced even if -retain was used. Even worse, if an error occured while loading the PGF, it was repeated and caught every time the prompt was printed, creating an infite loop. The solution is to not print the name of the abstract syntax when the grammar is imported with -retain, which is the way things were before anyway.
This commit is contained in:
@@ -95,4 +95,4 @@ runInterruptibly = lift1 IO.runInterruptibly
|
||||
lazySIO = lift1 lazyIO
|
||||
|
||||
importGrammar pgf opts files = lift0 $ GF.importGrammar pgf opts files
|
||||
importSource src opts files = lift0 $ GF.importSource src opts files
|
||||
importSource opts files = lift0 $ GF.importSource opts files
|
||||
|
||||
Reference in New Issue
Block a user