typescript: Use @type instead of @type.builtin in highlights (#46068)
Closes #45251 In https://github.com/zed-industries/zed/pull/44532 the syntax highlighting of JS/TS was improved, but we only used `type.builtin` for a specific case. This resulted in less consistent syntax highlighting. Not all themes have this specific token and we don't use `type.builtin` in other places either, so while this is a little less specific it is more consistent. Release Notes: - Improved syntax highlighting consistency for builtins in JavaScript and TypeScript
This commit is contained in:
1 parent
794fa9d6d1
commit
e7474cebc5
3 files changed
+6
-6
No files matched your search
@@ -4,9 +4,9 @@
|
||||
|
||||
(call_expression
|
||||
function: (member_expression
|
||||
object: (identifier) @type.builtin
|
||||
object: (identifier) @type
|
||||
(#any-of?
|
||||
@type.builtin
|
||||
@type
|
||||
"Promise"
|
||||
"Array"
|
||||
"Object"
|
||||
|
||||
Reference in new issue
Block a user