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:
hallgren
2012-10-16 22:10:49 +00:00
parent 4c0c7a994b
commit d01e790d95
3 changed files with 81 additions and 34 deletions

View File

@@ -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")