Allow queries to match on supertypes
Co-authored-by: Ayman Nadeem <aymannadeem@github.com>
This commit is contained in:
parent
f10a8448ed
commit
b5a9adb555
8 changed files with 155 additions and 20 deletions
|
|
@ -460,6 +460,9 @@ impl Generator {
|
|||
VariableType::Hidden => {
|
||||
add_line!(self, ".visible = false,");
|
||||
add_line!(self, ".named = true,");
|
||||
if self.syntax_grammar.supertype_symbols.contains(symbol) {
|
||||
add_line!(self, ".supertype = true,");
|
||||
}
|
||||
}
|
||||
VariableType::Auxiliary => {
|
||||
add_line!(self, ".visible = false,");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue