mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
++tree-sitter-ruby and +parenthesized_expressions
This commit is contained in:
parent
6fdcd61171
commit
7efb8e4db4
2
languages/ruby/vendor/tree-sitter-ruby
vendored
2
languages/ruby/vendor/tree-sitter-ruby
vendored
@ -1 +1 @@
|
||||
Subproject commit a58ec93c65805dc836269b3e0277aa51c82f7d64
|
||||
Subproject commit fc17fcfa9387d1e8cc387c269067be90f9462028
|
@ -5,6 +5,6 @@ import Language.Haskell.TH
|
||||
import Text.Parser.TreeSitter.Language
|
||||
import Text.Parser.TreeSitter.Ruby
|
||||
|
||||
-- v3 - Bump to get file to change to force template haskell to regenerate.
|
||||
-- v4 - Bump to get file to change to force template haskell to regenerate.
|
||||
-- | Statically-known rules corresponding to symbols in the grammar.
|
||||
mkSymbolDatatype (mkName "Grammar") tree_sitter_ruby
|
||||
|
@ -114,6 +114,7 @@ expression =
|
||||
<|> mk Yield Statement.Yield
|
||||
<|> module'
|
||||
<|> pair
|
||||
<|> parenthesized_expressions
|
||||
<|> rescue
|
||||
<|> scopeResolution
|
||||
<|> singletonClass
|
||||
@ -130,6 +131,9 @@ expression =
|
||||
expressions :: Assignment
|
||||
expressions = makeTerm <$> location <*> many expression
|
||||
|
||||
parenthesized_expressions :: Assignment
|
||||
parenthesized_expressions = makeTerm <$> symbol ParenthesizedStatements <*> children (many expression)
|
||||
|
||||
identifier :: Assignment
|
||||
identifier =
|
||||
mk Identifier
|
||||
|
Loading…
Reference in New Issue
Block a user