feat(lsp): color None like a constructor

`None` is a value singleton, not a control keyword, so it now uses the same token type as `Some` instead of the `case`/`own` keyword color.
This commit is contained in:
TermiNexus committed 2026-11-03 16:18:10 +08:00
1 parent 7917992deb
commit 0e5933ce09
1 file changed
+1 -1
+1 -1
View File
@@ -536,7 +536,7 @@ def _LexStream(pool: memhub.MemManager*,
elif tok.type == ast.TokenType.Name and tok.str_val is not None and string.strcmp(tok.str_val, "own") == 0:
typ = ST_KEYWORD
elif tok.type == ast.TokenType.Name and tok.str_val is not None and string.strcmp(tok.str_val, "None") == 0:
typ = ST_KEYWORD
typ = ST_CLASS
elif tok.type == ast.TokenType.Name and tok.str_val is not None and string.strcmp(tok.str_val, "Some") == 0:
typ = ST_CLASS
elif tok.type == ast.TokenType.Name and _IsBuiltinFunctionName(tok.str_val) != 0: