aboutsummaryrefslogtreecommitdiffstats
path: root/queries/scala
Commit message (Collapse)AuthorAgeFilesLines
* refactor(scala): update scala highlights for uppercase identifiersChris Kipp2023-01-211-1/+1
| | | | | | | | | 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.
* scala: add interpolator query (#4175)Chris Kipp2023-01-181-3/+3
|
* sync with latest Scala and add bindingChris Kipp2023-01-151-0/+3
|
* refactor(scala): update the Scala highlight queriesChris Kipp2023-01-141-47/+85
| | | | | | | | | | | | | | | | | There has been a lot of changes recently to the Scala grammar and we've been merging in a handful of things before syncing the actual generated parser. We are currently at a stage where we're going to sync everything, but there are some breaking changes that are included in https://github.com/tree-sitter/tree-sitter-scala/pull/135, so when that commit gets synced here stuff will break. We've taken the queries that existed here and have been building off of them in the actual upstream repo. This will hopefully make the transition smooth and updates the queries to ensure that there is no breakage. It's recommended to wait until that pr is merged, synced here, and then merge this in around the same time. Co-authored-by: eugene yokota <eed3si9n@gmail.com> Co-authored-by: Anton Sviridov <keynmol@gmail.com>
* highlights(scala): use more specific groupsObserverOfTime2022-11-261-10/+16
|
* feat(spell): support more languagesLewis Russell2022-09-261-1/+1
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-3/+3
|
* Prefer lua-match over matchLewis Russell2021-11-231-8/+8
| | | | as string.find is much quicker than vim.regex:match*
* chore: fix typosDundar Göc2021-11-021-2/+2
|
* Add scala maintainerStevan Milic2021-10-071-0/+1
| | | | Add fold for scala val definition to support type class entries
* Add scala foldsStevan Milic2021-09-042-2/+17
|
* Update scala highlightsStevan Milic2021-09-042-1/+36
| | | | | | | | | | | | * add highlights for imports * add highlights for type constructors * add highlights for constants * add highlights for interpolation string * add highlights for comments through injection
* update scala highlights (#1760)Stevan Milic2021-08-281-5/+78
| | | | | | | | | | | | | | | | | | | * add type highlights * add call expression highlights * add function definition highlights * add expression highlights * add literals highlights * add operator highlights * add punctuation highlights * add comment highlights Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
* add keywords to scala highlights (#1662)Stuart Mashaal2021-08-251-0/+96
* add keywords to scala highlights * special capture for special keywords * add while to 'repeat' capture * pr cleanup, exmaples in CONTRIBUTING.md * add backquotes for consistency in docs * group @repeat keywords, fix null * comment-out 'macro' and 'forSome' * fix 'this' and 'super' keyword * remove accidental files :facepalm: * update revision * fix "super" and "this" * godammit these .metals files are killing me * why did I commit this??? Co-authored-by: Stuart Mashaal <smashaal@hopper.com>