diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-14 21:55:46 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-14 21:55:46 +0200 |
| commit | 09fdb88a25c3cc350bc1256b2f48c5d5a297807e (patch) | |
| tree | b1212e4043e3656c4e331118cfbdbfef84427e4a /src/server/collector.odin | |
| parent | 141bcd1d9e1857b38e25af38f218692b151b40ae (diff) | |
Fix ternary expression semantic tokens
Diffstat (limited to 'src/server/collector.odin')
| -rw-r--r-- | src/server/collector.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index 47ebb98..fc40b11 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -468,8 +468,8 @@ collect_references :: proc(collection: ^SymbolCollection, file: ast.File, uri: s if ref, ok = &pkg[v.symbol.name]; !ok { pkg[get_index_unique_string(collection, v.symbol.name)] = {} ref = &pkg[v.symbol.name] - ref.identifiers = make([dynamic]common.Location, 100, collection.allocator) - ref.selectors = make(map[string][dynamic]common.Range, 100, collection.allocator) + ref.identifiers = make([dynamic]common.Location, 2, collection.allocator) + ref.selectors = make(map[string][dynamic]common.Range, 2, collection.allocator) } assert(ref != nil) |