Add scala folds

This commit is contained in:
Stevan Milic 2021-09-02 13:24:37 +02:00 committed by Stephan Seitz
parent 59f881fff8
commit 8c105dedec
2 changed files with 17 additions and 2 deletions

14
queries/scala/folds.scm Normal file
View file

@ -0,0 +1,14 @@
(call_expression (block) @fold)
[(class_definition)
(trait_definition)
(object_definition)
(function_definition)
(import_declaration)
(while_expression)
(do_while_expression)
(for_expression)
(try_expression)
(match_expression)
] @fold