]> git.eshelyaron.com Git - emacs.git/commitdiff
ruby-ts-mode: Add more constructs to treesit-sexp-type-regexp
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 5 Apr 2023 00:00:57 +0000 (03:00 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 5 Apr 2023 00:00:57 +0000 (03:00 +0300)
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode): Add more
constructs to treesit-sexp-type-regexp (bug#62086).

lisp/progmodes/ruby-ts-mode.el

index 6a7326af61dc2b314d4921039cd4804a7c5f43fc..ddf2ee98c3bd84ff16c515e3345a2b7d484ae991 100644 (file)
@@ -1121,9 +1121,13 @@ leading double colon is not added."
                       "array"
                       "hash"
                       "parenthesized_statements"
+                      "method_parameters"
+                      "array_pattern"
+                      "hash_pattern"
                       "if"
                       "unless"
                       "case"
+                      "case_match"
                       "when"
                       "block"
                       "do_block"
@@ -1132,8 +1136,8 @@ leading double colon is not added."
                       "identifier"
                       "constant"
                       "simple_symbol"
-                      "symbol_array"
                       "hash_key_symbol"
+                      "symbol_array"
                       "string"
                       "string_array"
                       "heredoc_body"