From 273792e1be77515bf98f2941883d33155e42f0dd Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Tue, 3 Nov 2026 16:22:38 +0800 Subject: [PATCH] fix(lsp): leave `None` to the TextMate grammar The semantic `class` token overrode the grammar and colored `None` green. Emitting nothing restores `constant.language.null`, which uses the same dark blue as `def`. --- App/lib/lsp/LspSemantic.vp | 2 -- 1 file changed, 2 deletions(-) diff --git a/App/lib/lsp/LspSemantic.vp b/App/lib/lsp/LspSemantic.vp index 4ffc784..e70fd8b 100644 --- a/App/lib/lsp/LspSemantic.vp +++ b/App/lib/lsp/LspSemantic.vp @@ -535,8 +535,6 @@ def _LexStream(pool: memhub.MemManager*, typ = ST_NUMBER 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_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: