Is it possible to highlight nonterminals? Highlight is working for terminals only…
I’m writing a language pack for spreadsheet functions. The parser is working and finds the nodes correctly.
But at the time of highlighting the tags, only terminals work…
The code snip of the grammar:
ReferenceItem {
CellToken
| NameToken
| VerticalRangeToken
| HorizontalRangeToken
| RefErrorToken
}
@tokens {
column { $[$]? @asciiLetter @asciiLetter? @asciiLetter? }
row { $[$]? @digit+ }
CellToken { column row }
}
The code snip of the parser:
styleTags({
ReferenceItem: tags.tagName, --> does not work
//CellToken: tags.tagName, --> it works
})
Am I missing something?