mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
highlights(julia): use more specific groups
This commit is contained in:
parent
1da0a88ebc
commit
58940a5589
1 changed files with 13 additions and 7 deletions
|
|
@ -79,9 +79,11 @@
|
||||||
;; Definitions
|
;; Definitions
|
||||||
|
|
||||||
(abstract_definition
|
(abstract_definition
|
||||||
name: (identifier) @type)
|
name: (identifier) @type.definition
|
||||||
|
(subtype_clause (identifier) @type))
|
||||||
(primitive_definition
|
(primitive_definition
|
||||||
name: (identifier) @type)
|
name: (identifier) @type.definition
|
||||||
|
(subtype_clause (identifier) @type))
|
||||||
(struct_definition
|
(struct_definition
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
|
|
||||||
|
|
@ -107,19 +109,16 @@
|
||||||
;;; Keywords
|
;;; Keywords
|
||||||
|
|
||||||
[
|
[
|
||||||
"abstract"
|
|
||||||
"const"
|
|
||||||
"macro"
|
"macro"
|
||||||
"primitive"
|
|
||||||
"struct"
|
"struct"
|
||||||
"type"
|
"type"
|
||||||
"mutable"
|
|
||||||
"where"
|
"where"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
"end" @keyword
|
"end" @keyword
|
||||||
|
|
||||||
((identifier) @keyword (#any-of? @keyword "global" "local")) ; Grammar error
|
((identifier) @keyword
|
||||||
|
(#any-of? @keyword "global" "local")) ; Grammar error
|
||||||
|
|
||||||
(compound_statement
|
(compound_statement
|
||||||
["begin" "end"] @keyword)
|
["begin" "end"] @keyword)
|
||||||
|
|
@ -174,6 +173,13 @@
|
||||||
(return_statement
|
(return_statement
|
||||||
"return" @keyword.return)
|
"return" @keyword.return)
|
||||||
|
|
||||||
|
[
|
||||||
|
"abstract"
|
||||||
|
"const"
|
||||||
|
"mutable"
|
||||||
|
"primitive"
|
||||||
|
] @type.qualifier
|
||||||
|
|
||||||
|
|
||||||
;;; Operators & Punctuation
|
;;; Operators & Punctuation
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue