1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Add a go syntax module & grammar datatype.

This commit is contained in:
Rob Rix 2017-04-12 10:53:04 -04:00
parent be9c4a42ff
commit eb8d0e3c19
2 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,7 @@ library
, Language.JavaScript
, Language.Markdown
, Language.Go
, Language.Go.Syntax
, Language.Ruby
, Language.Ruby.Syntax
, Language.TypeScript

View File

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