diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-10-30 11:43:05 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-10-30 11:43:05 +0100 |
| commit | f1d6d3dc586ce110d8425e2b80cd0018533b1aaf (patch) | |
| tree | 6cc8c0bc4ebef4c2b66ff3875b7c2aa2d255c829 /src | |
| parent | 16e60d39565a10ec21da474c521dd517c3e5b5bb (diff) | |
semantic token is now treating variable procedures and non-mutable the same
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/semantic_tokens.odin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/semantic_tokens.odin b/src/server/semantic_tokens.odin index 8733be4..91e62fa 100644 --- a/src/server/semantic_tokens.odin +++ b/src/server/semantic_tokens.odin @@ -272,7 +272,9 @@ visit_node :: proc( return } - if symbol_and_node.symbol.type == .Variable { + _, is_proc := symbol_and_node.symbol.value.(SymbolProcedureValue) + + if symbol_and_node.symbol.type == .Variable && !is_proc { write_semantic_node( builder, node, |