diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-01-29 15:56:30 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2021-01-29 15:56:30 +0100 |
| commit | e1f18478801201a1449e41dabc569f60b3d09020 (patch) | |
| tree | 161c79499c081c155b209a949e22181ff3ba46f3 /src | |
| parent | 34edf8b73bbb1e9c62246a5497203888f1a8d67d (diff) | |
for now treat identifier in indexing as variables instead of keywords
Diffstat (limited to 'src')
| -rw-r--r-- | src/index/collector.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index/collector.odin b/src/index/collector.odin index 81de39a..922dfcf 100644 --- a/src/index/collector.odin +++ b/src/index/collector.odin @@ -248,10 +248,11 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri symbol.value = collect_generic(collection, expr.expr, package_map); case ast.Ident: token = v; - token_type = .Keyword; + token_type = .Variable; symbol.value = collect_generic(collection, expr.expr, package_map); case: // default symbol.value = collect_generic(collection, expr.expr, package_map); + token_type = .Variable; token = expr.expr; break; } |