Skip to main content

embeddable_rules

Function embeddable_rules 

Source
pub fn embeddable_rules(grammar_json: &str) -> Vec<String>
Expand description

Every top-level rule that should have exactly one {{#grammar}} entry in the annotated reference: all rules except the trivial wrappers the display layer collapses (so this can never disagree with what is rendered). Grammar rule order is preserved. Returns an empty vector if the JSON is unparseable.