Fix handling of inlined rules in node-types generation

This commit is contained in:
Max Brunsfeld 2019-06-19 15:30:48 -07:00
parent 0a2b183bd0
commit ee1d4d6b2c
4 changed files with 205 additions and 120 deletions

View file

@ -97,7 +97,7 @@ fn generate_parser_for_grammar_with_opts(
let input_grammar = parse_grammar(grammar_json)?;
let (syntax_grammar, lexical_grammar, inlines, simple_aliases) =
prepare_grammar(&input_grammar)?;
let variable_info = node_types::get_variable_info(&syntax_grammar, &lexical_grammar)?;
let variable_info = node_types::get_variable_info(&syntax_grammar, &lexical_grammar, &inlines)?;
let node_types_json = node_types::generate_node_types_json(
&syntax_grammar,
&lexical_grammar,