| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
as string.find is much quicker than vim.regex:match*
|
| | |
|
| |
|
|
| |
Add fold for scala val definition to support type class entries
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* add highlights for imports
* add highlights for type constructors
* add highlights for constants
* add highlights for interpolation string
* add highlights for comments through injection
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* 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>
|