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`.
This commit is contained in:
1 parent
0e5933ce09
commit
273792e1be
1 file changed
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user