Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/erlang/highlights.scm')
-rw-r--r--runtime/queries/erlang/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm
index 769a7e96..64e5f6a1 100644
--- a/runtime/queries/erlang/highlights.scm
+++ b/runtime/queries/erlang/highlights.scm
@@ -7,7 +7,7 @@
(variable) @variable
(atom) @string.special.symbol
((atom) @constant.builtin.boolean
- (#match? @constant.builtin.boolean "^(true|false)$"))
+ (#any-of? @constant.builtin.boolean "true" "false"))
[(string) (sigil)] @string
(character) @constant.character
(escape_sequence) @constant.character.escape
@@ -121,7 +121,7 @@
(stab_clause
pattern: (arguments (variable)? @variable.parameter)
body: (variable)? @variable.parameter))
- (#match? @keyword "(spec|callback)"))
+ (#any-of? @keyword "spec" "callback"))
; functions
(function_clause pattern: (arguments (variable) @variable.parameter))
; anonymous functions
@@ -133,7 +133,7 @@
(binary_operator
left: (call (arguments (variable) @variable.parameter))
operator: "::")))
- (#match? @keyword "(type|opaque)"))
+ (#any-of? @keyword "type" "opaque" "nominal"))
; macros
((attribute
name: (atom) @keyword