aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorMichael Davis2022-06-28 18:08:31 +0000
committerBlaž Hrastnik2022-07-01 09:04:23 +0000
commite4e8a39bf79734e70248303782d9b97ef4b3540d (patch)
tree4868c633356bdbdb1afde7407939bc2f62bff58d /runtime/queries
parent016e97314cd37c245368678179f1157f83a13821 (diff)
replace module captures with namespace
`module` is undocumented and does not exist in other themes. The equivalent existing scope based on usage (Elixir for example) is `namespace`.
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/erlang/highlights.scm10
-rw-r--r--runtime/queries/heex/highlights.scm2
2 files changed, 6 insertions, 6 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm
index ce84697b..f491b9c5 100644
--- a/runtime/queries/erlang/highlights.scm
+++ b/runtime/queries/erlang/highlights.scm
@@ -2,14 +2,14 @@
; module declaration
(attribute
name: (atom) @keyword
- (arguments (atom) @module)
+ (arguments (atom) @namespace)
(#eq? @keyword "module"))
(attribute
name: (atom) @keyword
(arguments
.
- (atom) @module)
+ (atom) @namespace)
(#eq? @keyword "import"))
(attribute
@@ -54,15 +54,15 @@
(attribute
name: (atom) @keyword
- module: (atom) @module
(#eq? @keyword "(spec|callback)"))
+ module: (atom) @namespace
; Functions
(function_clause name: (atom) @function)
-(call module: (atom) @module)
+(call module: (atom) @namespace)
(call function: (atom) @function)
(stab_clause name: (atom) @function)
-(function_capture module: (atom) @module)
+(function_capture module: (atom) @namespace)
(function_capture function: (atom) @function)
; Records
diff --git a/runtime/queries/heex/highlights.scm b/runtime/queries/heex/highlights.scm
index c42a689f..6d8816de 100644
--- a/runtime/queries/heex/highlights.scm
+++ b/runtime/queries/heex/highlights.scm
@@ -55,7 +55,7 @@
; HEEx components are highlighted as Elixir modules and functions
(component_name
[
- (module) @module
+ (module) @namespace
(function) @function
"." @punctuation.delimiter
])