refactor(scala): update scala highlights for uppercase identifiers

This is a small change that comes from the discussion we had in
https://github.com/tree-sitter/tree-sitter-scala/discussions/168#discussioncomment-4718624.
The idea here is that we're sort of making an assumption on what an
uppercase identifier is in Scala and more times than not, it's actually
a `@type`. So this changes the `@constant` capture to a `@type` one. You
can find the full context in the linked discussion.
This commit is contained in:
Chris Kipp 2023-01-21 10:41:21 +01:00 committed by Christian Clason
parent f5f7c7e004
commit a943661be8

View file

@ -241,7 +241,7 @@
(operator_identifier) @operator
((identifier) @constant (#lua-match? @constant "^[A-Z]"))
((identifier) @type (#lua-match? @type "^[A-Z]"))
((identifier) @variable.builtin
(#lua-match? @variable.builtin "^this$"))