1
1
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:
Timothy Clem 2017-08-02 09:48:46 -07:00
parent 6fdcd61171
commit 7efb8e4db4
3 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit a58ec93c65805dc836269b3e0277aa51c82f7d64
Subproject commit fc17fcfa9387d1e8cc387c269067be90f9462028

View File

@ -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

View File

@ -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