Merge pull request #998 from tree-sitter/node-kind-fix
Fix check in ts_language_symbol_type (#997)
This commit is contained in:
commit
beaa02331e
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ TSSymbolType ts_language_symbol_type(
|
|||
TSSymbol symbol
|
||||
) {
|
||||
TSSymbolMetadata metadata = ts_language_symbol_metadata(self, symbol);
|
||||
if (metadata.named) {
|
||||
if (metadata.named && metadata.visible) {
|
||||
return TSSymbolTypeRegular;
|
||||
} else if (metadata.visible) {
|
||||
return TSSymbolTypeAnonymous;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue