on master help sign in
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`.

commite4e8a39bf79734e70248303782d9b97ef4b3540d authorMichael Davis <mcarsondavis@gmail.com> dateTue 28 Jun 2022, 13:08 (4 years ago) parent016e973
2 files changed+6−6
runtime/queries/erlang/highlights.scm+5−5 runtime/queries/heex/highlights.scm+1−1
runtime/queries/erlang/highlights.scm+5−5
@@ -2,14 +2,14 @@
22; module declaration
33(attribute
44 name: (atom) @keyword
5− (arguments (atom) @module)
5+ (arguments (atom) @namespace)
66 (#eq? @keyword "module"))
77
88(attribute
99 name: (atom) @keyword
1010 (arguments
1111 .
12− (atom) @module)
12+ (atom) @namespace)
1313 (#eq? @keyword "import"))
1414
1515(attribute
@@ -54,15 +54,15 @@
5454
5555(attribute
5656 name: (atom) @keyword
57− module: (atom) @module
5857 (#eq? @keyword "(spec|callback)"))
58+ module: (atom) @namespace
5959
6060; Functions
6161(function_clause name: (atom) @function)
62−(call module: (atom) @module)
62+(call module: (atom) @namespace)
6363(call function: (atom) @function)
6464(stab_clause name: (atom) @function)
65−(function_capture module: (atom) @module)
65+(function_capture module: (atom) @namespace)
6666(function_capture function: (atom) @function)
6767
6868; Records
runtime/queries/heex/highlights.scm+1−1
@@ -55,7 +55,7 @@
5555; HEEx components are highlighted as Elixir modules and functions
5656(component_name
5757 [
58− (module) @module
58+ (module) @namespace
5959 (function) @function
6060 "." @punctuation.delimiter
6161 ])