mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
|
||||
(abstract_definition
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @type.definition
|
||||
(subtype_clause (identifier) @type))
|
||||
(primitive_definition
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @type.definition
|
||||
(subtype_clause (identifier) @type))
|
||||
(struct_definition
|
||||
name: (identifier) @type)
|
||||
|
||||
|
|
@ -107,19 +109,16 @@
|
|||
;;; Keywords
|
||||
|
||||
[
|
||||
"abstract"
|
||||
"const"
|
||||
"macro"
|
||||
"primitive"
|
||||
"struct"
|
||||
"type"
|
||||
"mutable"
|
||||
"where"
|
||||
] @keyword
|
||||
|
||||
"end" @keyword
|
||||
|
||||
((identifier) @keyword (#any-of? @keyword "global" "local")) ; Grammar error
|
||||
((identifier) @keyword
|
||||
(#any-of? @keyword "global" "local")) ; Grammar error
|
||||
|
||||
(compound_statement
|
||||
["begin" "end"] @keyword)
|
||||
|
|
@ -174,6 +173,13 @@
|
|||
(return_statement
|
||||
"return" @keyword.return)
|
||||
|
||||
[
|
||||
"abstract"
|
||||
"const"
|
||||
"mutable"
|
||||
"primitive"
|
||||
] @type.qualifier
|
||||
|
||||
|
||||
;;; Operators & Punctuation
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue