highlights(gleam): use more specific groups

This commit is contained in:
ObserverOfTime 2022-10-22 16:52:46 +03:00
parent 7c86e6ffc4
commit 276627849b
3 changed files with 21 additions and 17 deletions

View file

@ -1,11 +1,7 @@
; Keywords
[
"as"
"const"
"external"
"let"
"opaque"
"pub"
"todo"
"try"
] @keyword
@ -88,8 +84,8 @@
; Comments
[
(module_comment)
(statement_comment)
(comment)
(statement_comment)
(comment)
] @comment
; Unused Identifiers
@ -112,8 +108,8 @@
; Numbers
[
(integer)
(float)
(integer)
(float)
(bit_string_segment_option_unit)
] @number
@ -142,6 +138,14 @@
; Type Variables
(type_var) @type
; Type Qualifiers
[
"const"
"external"
"opaque"
"pub"
] @type.qualifier
; Tuples
(tuple_access index: (integer) @operator)