From e4e8a39bf79734e70248303782d9b97ef4b3540d Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 28 Jun 2022 13:08:31 -0500 Subject: 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`. --- runtime/queries/erlang/highlights.scm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/queries/erlang/highlights.scm') 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 -- cgit v1.2.3-70-g09d2