1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Remove manyTerm and use term on importSymbol

This commit is contained in:
joshvera 2018-01-17 16:08:08 -05:00
parent b29c8eacb0
commit 8bc503534d

View File

@ -632,7 +632,7 @@ importStatement = makeImport <$> symbol Grammar.ImportStatement <*> children ((
identifier' = (declarationImport <$> emptyTerm <*> (pure <$> term identifier))
namespace' = (declarationImport <$> term namespaceImport <*> pure [])
namedImports = symbol Grammar.NamedImports *> children (manyTerm (declarationImport <$> emptyTerm <*> (pure <$> importSymbol)))
namedImports = symbol Grammar.NamedImports *> children (many (declarationImport <$> emptyTerm <*> (pure <$> term importSymbol)))
importSymbol = makeTerm <$> symbol Grammar.ImportSpecifier <*> children (Declaration.ImportSymbol <$> term identifier <*> (term identifier <|> emptyTerm))
namespaceImport = symbol Grammar.NamespaceImport *> children (term identifier)