From 14eda106f0a3e6a5fc6fb5cbd96bda9774f64ae1 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Fri, 12 Jun 2026 15:06:52 -0400 Subject: [PATCH] queries: Discard Erlang locals for macro names Macro names might match recursively within a pattern (in the future). They're not parameters / locals at all, so we can override the capture from the previous pattern to avoid ever highlighting them as parameters. --- runtime/queries/erlang/locals.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/queries/erlang/locals.scm b/runtime/queries/erlang/locals.scm index c8676a47..b36c6315 100644 --- a/runtime/queries/erlang/locals.scm +++ b/runtime/queries/erlang/locals.scm @@ -23,3 +23,4 @@ (#not-match? @local.definition.variable.parameter "^_")) (variable) @local.reference +(macro (variable)) @_ -- 2.51.2