From f25b8c5201c1480dc0c8c4155a059a79a5a40719 Mon Sep 17 00:00:00 2001 From: Laytan Date: Tue, 7 May 2024 20:41:44 +0200 Subject: [PATCH] feat(odin): don't mark identifiers of a function call as `@type` Some function (specifically in C that are ported/bound to in Odin) have a CamelCase naming convention, currently in a call like `foo.Bar()` they are highlighted as if `Bar` is a type. This PR changes that to be highlighted as a normal function call. --- queries/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/highlights.scm b/queries/highlights.scm index 43ef4cd..1282c6e 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -151,7 +151,7 @@ ((identifier) @type (#lua-match? @type "^[A-Z][a-zA-Z0-9]*$") - (#not-has-parent? @type parameter procedure_declaration)) + (#not-has-parent? @type parameter procedure_declaration call_expression)) ; Fields