language-typescript 0.0.3 → 0.0.4
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
language-typescript.cabal view
@@ -1,5 +1,5 @@ name: language-typescript-version: 0.0.3+version: 0.0.4 cabal-version: >=1.4 build-type: Simple license: MIT
src/Language/TypeScript/Parser.hs view
@@ -40,9 +40,9 @@ declarationElement = choice $ map try [ InterfaceDeclaration <$> commentPlaceholder <*> optionMaybe exported <*> interface- , ImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> entityName) , ExportDeclaration <$> (reserved "export" >> lexeme (char '=') *> identifier)- , ExternalImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> reserved "require" *> parens stringLiteral)+ , ExternalImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> reserved "require" *> parens stringLiteral <* semi)+ , ImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> entityName) , AmbientDeclaration <$> commentPlaceholder <*> optionMaybe exported <*> (reserved "declare" *> ambientDeclaration) ]