1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Add a typescript syntax module & grammar datatype.

This commit is contained in:
Rob Rix 2017-04-12 10:51:31 -04:00
parent 99b574cdd1
commit be9c4a42ff
2 changed files with 11 additions and 1 deletions

View File

@ -44,11 +44,12 @@ library
, Language
, Language.C
, Language.JavaScript
, Language.TypeScript
, Language.Markdown
, Language.Go
, Language.Ruby
, Language.Ruby.Syntax
, Language.TypeScript
, Language.TypeScript.Syntax
, Parser
, Patch
, Paths_semantic_diff

View File

@ -0,0 +1,9 @@
{-# LANGUAGE TemplateHaskell #-}
module Language.TypeScript.Syntax where
import Language.Haskell.TH
import Text.Parser.TreeSitter.Language
import Text.Parser.TreeSitter.TypeScript
-- | Statically-known rules corresponding to symbols in the grammar.
mkSymbolDatatype (mkName "Grammar") tree_sitter_typescript