aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2023-10-26 17:50:44 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2023-10-26 17:50:44 +0200
commita6e7fa758e19b7e42cec0d63840feae3854ddea7 (patch)
tree85ec2318f4557e47be72489f94ccf65e6b387b87
parent20b0dc99fb3013ce7044be715a582ea9a1a7291f (diff)
Remove writing semantic nodes for untyped and basic value symbols
The result semantic token types were often incorrect for constants and literals. Syntax grammars do a decent job here, but were being overridden by the semantic tokens. I'm not yet familiar enough with the codebase to fix this properly, instead of just removing it.
-rw-r--r--src/server/semantic_tokens.odin22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/server/semantic_tokens.odin b/src/server/semantic_tokens.odin
index e78cc4e..e5cbbb1 100644
--- a/src/server/semantic_tokens.odin
+++ b/src/server/semantic_tokens.odin
@@ -1,9 +1,9 @@
package server
-import "core:odin/tokenizer"
-import "core:odin/ast"
-import "core:log"
import "core:fmt"
+import "core:log"
+import "core:odin/ast"
+import "core:odin/tokenizer"
import "shared:common"
@@ -345,22 +345,6 @@ visit_node :: proc(
.Function,
modifier,
)
- case SymbolUntypedValue:
- write_semantic_node(
- builder,
- node,
- ast_context.file.src,
- .Type,
- modifier,
- )
- case SymbolBasicValue:
- write_semantic_node(
- builder,
- node,
- ast_context.file.src,
- .Type,
- modifier,
- )
case SymbolMatrixValue:
write_semantic_node(
builder,