aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authoreugene yokota2023-01-19 17:26:12 +0000
committerGitHub2023-01-19 17:26:12 +0000
commit4535d0fa74afc5bdd84ca698480249d20fbd8b61 (patch)
treefa18affb0b3b031d9d0b5ad8f99b400563b8feec /runtime/queries
parent94ef6fb69b837229c1e7e84967a79fc53259b00b (diff)
highlight(scala): update to fix potential crash (#5576)
* 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>
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/scala/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/scala/highlights.scm b/runtime/queries/scala/highlights.scm
index 07307875..67603fdd 100644
--- a/runtime/queries/scala/highlights.scm
+++ b/runtime/queries/scala/highlights.scm
@@ -112,6 +112,9 @@
(generic_function
function: (identifier) @function)
+(interpolated_string_expression
+ interpolator: (identifier) @function)
+
(
(identifier) @function.builtin
(#match? @function.builtin "^super$")