Skip to content

Commit

Permalink
feat(odin): don't mark identifiers of a function call as @type
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
laytan authored May 7, 2024
1 parent b5f668e commit f25b8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f25b8c5

Please sign in to comment.