highlights(julia): use more specific groups

This commit is contained in:
ObserverOfTime 2022-11-20 14:41:51 +02:00
parent 1da0a88ebc
commit 58940a5589

View file

@ -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