I ran into some cases where locals.scm would override the highlight for things like record keys and it made me think that
(identifier) @local.reference
covered too many cases. So this PR makes the reference queries more granular. In general, now the queries try to cover cases where (identifier) is being used as an existing binding rather than a pattern or any other syntax element.
I think this covers all the cases now but I'm not too sure :thinking:
I ran into some cases where
locals.scm
would override the highlight for things like record keys and it made me think thatcovered too many cases. So this PR makes the reference queries more granular. In general, now the queries try to cover cases where
(identifier)
is being used as an existing binding rather than a pattern or any other syntax element.I think this covers all the cases now but I'm not too sure :thinking: