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`.
This commit is contained in:
Michael Davis 2022-06-28 13:08:31 -05:00 committed by Blaž Hrastnik
parent 016e97314c
commit e4e8a39bf7
2 changed files with 6 additions and 6 deletions

View file

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

View file

@ -55,7 +55,7 @@
; HEEx components are highlighted as Elixir modules and functions
(component_name
[
(module) @module
(module) @namespace
(function) @function
"." @punctuation.delimiter
])