mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
highlights(elm): use more specific groups
This commit is contained in:
parent
27e1f3c336
commit
a71358d170
1 changed files with 18 additions and 10 deletions
|
|
@ -36,11 +36,14 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
(type_annotation(lower_case_identifier) @function)
|
(type_annotation
|
||||||
(port_annotation(lower_case_identifier) @function)
|
(lower_case_identifier) @function)
|
||||||
(function_declaration_left(lower_case_identifier) @function)
|
(port_annotation
|
||||||
(function_call_expr target:
|
(lower_case_identifier) @function)
|
||||||
(value_expr) @function)
|
(function_declaration_left
|
||||||
|
(lower_case_identifier) @function)
|
||||||
|
(function_call_expr
|
||||||
|
target: (value_expr) @function)
|
||||||
|
|
||||||
(value_qid (upper_case_identifier) @constructor)
|
(value_qid (upper_case_identifier) @constructor)
|
||||||
(value_qid ((dot) (lower_case_identifier) @field))
|
(value_qid ((dot) (lower_case_identifier) @field))
|
||||||
|
|
@ -67,16 +70,21 @@
|
||||||
|
|
||||||
(type) @keyword
|
(type) @keyword
|
||||||
|
|
||||||
(module_declaration(upper_case_qid(upper_case_identifier)) @constructor)
|
(module_declaration
|
||||||
(type_declaration(upper_case_identifier) @constructor)
|
(upper_case_qid (upper_case_identifier)) @constructor)
|
||||||
|
(type_declaration
|
||||||
|
(upper_case_identifier) @constructor)
|
||||||
(type_ref) @type
|
(type_ref) @type
|
||||||
(type_alias_declaration name: (upper_case_identifier) @type)
|
(type_alias_declaration
|
||||||
|
name: (upper_case_identifier) @type.definition)
|
||||||
(field_type name:
|
(field_type name:
|
||||||
(lower_case_identifier) @property)
|
(lower_case_identifier) @property)
|
||||||
|
|
||||||
(union_variant(upper_case_identifier) @symbol)
|
(union_variant
|
||||||
|
(upper_case_identifier) @symbol)
|
||||||
(union_pattern) @symbol
|
(union_pattern) @symbol
|
||||||
(value_expr(upper_case_qid(upper_case_identifier)) @symbol)
|
(value_expr
|
||||||
|
(upper_case_qid (upper_case_identifier)) @symbol)
|
||||||
|
|
||||||
; strings
|
; strings
|
||||||
(string_escape) @string
|
(string_escape) @string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue