mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(leo): highlights casting and record expressions added
This commit is contained in:
parent
f87c8956ae
commit
f0f48e0290
1 changed files with 21 additions and 2 deletions
|
|
@ -17,7 +17,10 @@
|
|||
"struct"
|
||||
] @keyword.type
|
||||
|
||||
"in" @keyword.operator
|
||||
[
|
||||
"in"
|
||||
"as"
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"constant"
|
||||
|
|
@ -133,7 +136,23 @@
|
|||
(struct_component_declaration
|
||||
(identifier) @variable.member)
|
||||
|
||||
(type) @type
|
||||
(struct_expression
|
||||
(identifier) @type.definition)
|
||||
|
||||
(struct_component_initializer
|
||||
(identifier) @variable.member)
|
||||
|
||||
[
|
||||
(type)
|
||||
(boolean_type)
|
||||
(integer_type)
|
||||
(field_type)
|
||||
(group_type)
|
||||
(scalar_type)
|
||||
(address_type)
|
||||
(signature_type)
|
||||
(string_type)
|
||||
] @type
|
||||
|
||||
[
|
||||
(block_height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue