forked from GitHub/gf-core
gfse: identify inherited grammars by their unique id
This helps avoiding problems if an inherited grammar is renamed, or if there is more than one grammar with the same name.
This commit is contained in:
@@ -177,7 +177,7 @@ function download_json() {
|
||||
downloading--;
|
||||
var newg=JSON.parse(grammar);
|
||||
debug("Downloaded "+newg.unique_name)
|
||||
var i=my_grammar(newg.unique_name+".json");
|
||||
var i=my_grammar(newg.unique_name);
|
||||
if(i!=null) merge_grammar(i,newg)
|
||||
else {
|
||||
debug("New")
|
||||
|
||||
Reference in New Issue
Block a user