mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
we just say TypeScript
This commit is contained in:
parent
baf3fb3da2
commit
132208d2c9
@ -1,4 +1,4 @@
|
||||
module Text.Parser.TreeSitter.Typescript where
|
||||
module Text.Parser.TreeSitter.TypeScript where
|
||||
|
||||
import Text.Parser.TreeSitter
|
||||
import Foreign.Ptr
|
||||
|
@ -13,7 +13,7 @@ cabal-version: >=1.10
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Text.Parser.TreeSitter.Typescript
|
||||
exposed-modules: Text.Parser.TreeSitter.TypeScript
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, haskell-tree-sitter
|
||||
default-language: Haskell2010
|
||||
|
@ -1,4 +1,5 @@
|
||||
name: semantic-diff
|
||||
|
||||
version: 0.2.0
|
||||
synopsis: Initial project template from stack
|
||||
description: Please see README.md
|
||||
@ -33,6 +34,7 @@ library
|
||||
, Language
|
||||
, Language.C
|
||||
, Language.JavaScript
|
||||
, Language.TypeScript
|
||||
, Language.Markdown
|
||||
, Language.Go
|
||||
, Language.Ruby
|
||||
|
16
src/Language/TypeScript.hs
Normal file
16
src/Language/TypeScript.hs
Normal file
@ -0,0 +1,16 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
module Language.JavaScript where
|
||||
|
||||
import Info
|
||||
import Prologue
|
||||
import Source
|
||||
import Language
|
||||
import qualified Syntax as S
|
||||
import Term
|
||||
|
||||
termAssignment
|
||||
:: Source -- ^ The source of the term.
|
||||
-> Category -- ^ The category for the term.
|
||||
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
|
||||
-> Maybe (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan])) -- ^ The resulting term, in Maybe.
|
||||
termAssignment _ category children
|
Loading…
Reference in New Issue
Block a user