aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby/indents.scm
diff options
context:
space:
mode:
authorIvo Dancet <ivo.dancet@gmail.com>2021-03-13 18:41:44 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2021-03-15 19:54:30 +0100
commit11ede1c0d2ab30ca1b637e31892a12e042a73965 (patch)
treeee20878139fd13d78a0df959a4e9f7c3e25588bb /queries/ruby/indents.scm
parentRust: add mod_item to folds (diff)
downloadnvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.tar
nvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.tar.gz
nvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.tar.bz2
nvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.tar.lz
nvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.tar.xz
nvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.tar.zst
nvim-treesitter-11ede1c0d2ab30ca1b637e31892a12e042a73965.zip
folds support and somewhat better indents for ruby
Diffstat (limited to 'queries/ruby/indents.scm')
-rw-r--r--queries/ruby/indents.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/queries/ruby/indents.scm b/queries/ruby/indents.scm
index 8f2d9dec9..16f21b6bd 100644
--- a/queries/ruby/indents.scm
+++ b/queries/ruby/indents.scm
@@ -1,12 +1,26 @@
[
(class)
(method)
+ (singleton_method)
(module)
(call)
(if)
+ (block)
+ (do_block)
+ (hash)
+ (array)
+ (argument_list)
+ (case)
] @indent
[
+ "("
+ ")"
+ "{"
+ "}"
+ "["
+ "]"
+ (when)
(elsif)
"end"
] @branch