Skip to content

Commit

Permalink
highlight(scala): update to fix potential crash (#5576)
Browse files Browse the repository at this point in the history
* highlight(scala): update to fix crash

tree-sitter-scala has recently add a fix to workaround segv crashes in other editors.
Not sure if it happens to Helix as well, but it's probably a good idea to use the latest.

* highlight(scala): String interpolator support

This captures String interpolator as `function`

Co-authored-by: Chris Kipp <ckipp@pm.me>
  • Loading branch information
eed3si9n and ckipp01 authored Jan 19, 2023
1 parent 94ef6fb commit 4535d0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ config = { "isHttpEnabled" = true }

[[grammar]]
name = "scala"
source = { git = "https://github.com/tree-sitter/tree-sitter-scala", rev = "db1c8c23d7996476a791db85a0d292084c19c232" }
source = { git = "https://github.com/tree-sitter/tree-sitter-scala", rev = "f6bbf35de41653b409ca9a3537a154f2b095ef64" }

[[language]]
name = "dockerfile"
Expand Down
3 changes: 3 additions & 0 deletions runtime/queries/scala/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
(generic_function
function: (identifier) @function)

(interpolated_string_expression
interpolator: (identifier) @function)

(
(identifier) @function.builtin
(#match? @function.builtin "^super$")
Expand Down

0 comments on commit 4535d0f

Please sign in to comment.