mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
++tree-sitter-ruby
This commit is contained in:
parent
340975336f
commit
047bcfcbcb
2
languages/ruby/vendor/tree-sitter-ruby
vendored
2
languages/ruby/vendor/tree-sitter-ruby
vendored
@ -1 +1 @@
|
||||
Subproject commit 5f71c72bb45586811436a4c3d2e3da12e3009283
|
||||
Subproject commit c7724353072fe88a8c3e41b3cf1451c68cf82850
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user