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:
parent
be9c4a42ff
commit
eb8d0e3c19
@ -46,6 +46,7 @@ library
|
||||
, Language.JavaScript
|
||||
, Language.Markdown
|
||||
, Language.Go
|
||||
, Language.Go.Syntax
|
||||
, Language.Ruby
|
||||
, Language.Ruby.Syntax
|
||||
, Language.TypeScript
|
||||
|
9
src/Language/Go/Syntax.hs
Normal file
9
src/Language/Go/Syntax.hs
Normal 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
|
Loading…
Reference in New Issue
Block a user