exhaustively list semantic token types to exclude
This commit is contained in:
parent
b958b258a3
commit
6471db5274
@ -120,15 +120,28 @@ const Builder = struct {
|
||||
if (loc.start < self.previous_source_index) return;
|
||||
switch (token_type) {
|
||||
.type,
|
||||
.parameter,
|
||||
.variable,
|
||||
.enumMember,
|
||||
.property,
|
||||
.errorTag,
|
||||
.function,
|
||||
.label,
|
||||
.namespace,
|
||||
.@"struct",
|
||||
.@"enum",
|
||||
.@"union",
|
||||
.@"opaque",
|
||||
=> {},
|
||||
else => if (self.limited) return,
|
||||
|
||||
.parameter,
|
||||
.variable,
|
||||
.keyword,
|
||||
.comment,
|
||||
.string,
|
||||
.number,
|
||||
.operator,
|
||||
.builtin,
|
||||
.label,
|
||||
.keywordLiteral,
|
||||
=> if (self.limited) return,
|
||||
}
|
||||
|
||||
const delta_text = self.handle.tree.source[self.previous_source_index..loc.start];
|
||||
|
Loading…
Reference in New Issue
Block a user