mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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"
|
"struct"
|
||||||
] @keyword.type
|
] @keyword.type
|
||||||
|
|
||||||
"in" @keyword.operator
|
[
|
||||||
|
"in"
|
||||||
|
"as"
|
||||||
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
"constant"
|
"constant"
|
||||||
|
|
@ -133,7 +136,23 @@
|
||||||
(struct_component_declaration
|
(struct_component_declaration
|
||||||
(identifier) @variable.member)
|
(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)
|
(block_height)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue