node-types: Fix handling of simple aliased inlined rules

This commit is contained in:
Max Brunsfeld 2019-11-13 10:38:47 -08:00
parent 1d2f171067
commit a2bbc7391b
2 changed files with 70 additions and 7 deletions

View file

@ -149,7 +149,8 @@ fn generate_parser_for_grammar_with_opts(
next_abi: bool,
report_symbol_name: Option<&str>,
) -> Result<GeneratedParser> {
let variable_info = node_types::get_variable_info(&syntax_grammar, &lexical_grammar)?;
let variable_info =
node_types::get_variable_info(&syntax_grammar, &lexical_grammar, &simple_aliases)?;
let node_types_json = node_types::generate_node_types_json(
&syntax_grammar,
&lexical_grammar,