Change symbol for nil from SymbolBasicValue to SymbolUntypedValue
Enable semantic tokens for identifiers with SymbolBasicValue symbol value. Previously I disabled it (in #263) because nil was included there, which made it be highlighted as a type.
.Nil variant is not entirely correct, because nil cannot function as a value with "untyped type".
It needs a concrete type.
So doing it properly would probably mean getting the type from the context.
Not sure.
Maybe instead of adding .Nil variant, nil shouldn't get any symbol? Since any declaration needs an explicit type, the symbol for the identifier will get it's type, from the type, not value. (Did that in #378)
Change symbol for
nil
fromSymbolBasicValue
toSymbolUntypedValue
Enable semantic tokens for identifiers with
SymbolBasicValue
symbol value. Previously I disabled it (in #263) becausenil
was included there, which made it be highlighted as a type..Nil
variant is not entirely correct, becausenil
cannot function as a value with "untyped type". It needs a concrete type. So doing it properly would probably mean getting the type from the context. Not sure.Maybe instead of adding
.Nil
variant,nil
shouldn't get any symbol? Since any declaration needs an explicit type, the symbol for the identifier will get it's type, from the type, not value. (Did that in #378)