diff --git a/languages/ruby/vendor/tree-sitter-ruby b/languages/ruby/vendor/tree-sitter-ruby index 5f71c72bb..c77243530 160000 --- a/languages/ruby/vendor/tree-sitter-ruby +++ b/languages/ruby/vendor/tree-sitter-ruby @@ -1 +1 @@ -Subproject commit 5f71c72bb45586811436a4c3d2e3da12e3009283 +Subproject commit c7724353072fe88a8c3e41b3cf1451c68cf82850 diff --git a/src/Language/Ruby.hs b/src/Language/Ruby.hs index 14f148813..47309b85d 100644 --- a/src/Language/Ruby.hs +++ b/src/Language/Ruby.hs @@ -99,6 +99,7 @@ termAssignment _ category children categoryForRubyName :: Text -> Category categoryForRubyName = \case "argument_list" -> Args + "argument_list_with_parens" -> Args "argument_pair" -> ArgumentPair "array" -> ArrayLiteral "assignment" -> Assignment @@ -106,6 +107,7 @@ categoryForRubyName = \case "begin" -> Begin "binary" -> Binary "block_parameter" -> BlockParameter + "block_parameters" -> Params "boolean" -> Boolean "call" -> MemberAccess "case" -> Case @@ -116,6 +118,7 @@ categoryForRubyName = \case "element_reference" -> SubscriptAccess "else" -> Else "elsif" -> Elsif + "empty_statement" -> Empty "end_block" -> EndBlock "ensure" -> Ensure "exception_variable" -> RescuedException @@ -123,9 +126,6 @@ categoryForRubyName = \case "false" -> Boolean "float" -> NumberLiteral "for" -> For - "method_parameters" -> Params - "lambda_parameters" -> Params - "block_parameters" -> Params "hash_splat_parameter" -> HashSplatParameter "hash" -> Object "identifier" -> Identifier @@ -135,7 +135,9 @@ categoryForRubyName = \case "integer" -> IntegerLiteral "interpolation" -> Interpolation "keyword_parameter" -> KeywordParameter + "lambda_parameters" -> Params "method_call" -> MethodCall + "method_parameters" -> Params "method" -> Method "module" -> Module "nil" -> Identifier