Removed comment preprocessing code from the semantic tokens gap highlighter,

Fixed various comment semantic highlighting issues.
Refactored some minor parts of the analysis code.
This commit is contained in:
Alexandros Naskos
2021-03-26 21:04:51 +02:00
parent 2a57789be8
commit 06518778c1
5 changed files with 156 additions and 125 deletions

View File

@@ -119,7 +119,7 @@ fn symbolReferencesInternal(
.error_set_decl,
=> {
var buf: [2]ast.Node.Index = undefined;
for (analysis.declMembers(tree, node_tags[node], node, &buf)) |member|
for (analysis.declMembers(tree, node, &buf)) |member|
try symbolReferencesInternal(arena, store, .{ .node = member, .handle = handle }, decl, encoding, context, handler);
},
.global_var_decl,