mirror of
https://github.com/github/semantic.git
synced 2025-01-09 00:56:32 +03:00
Correct the method rule.
This commit is contained in:
parent
b2cacf0d81
commit
1d75bda845
@ -40,7 +40,7 @@ assignment = foldr (>>) (pure Nothing) <$ rule Program <*> children (many declar
|
||||
<*> children (Declaration.Class <$> constant <*> pure [] <*> declaration)
|
||||
constant = wrapU . Syntax.Identifier <$ rule Constant <*> content
|
||||
identifier = wrapU . Syntax.Identifier <$ rule Identifier <*> content
|
||||
method = wrapU <$ rule Method <*> (Declaration.Method <$> identifier <*> pure [] <*> statement)
|
||||
method = wrapU <$ rule Method <*> children (Declaration.Method <$> identifier <*> pure [] <*> statement)
|
||||
statement = expr
|
||||
|
||||
comment :: Assignment Grammar (Program Syntax a)
|
||||
|
Loading…
Reference in New Issue
Block a user