1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00

Auto TH for Python Grammar

This commit is contained in:
Timothy Clem 2017-08-28 16:07:12 -07:00
parent 29834cd3de
commit 0a803b64a2

View File

@ -5,6 +5,8 @@ import Language.Haskell.TH
import TreeSitter.Language
import TreeSitter.Python
-- Regenerate template haskell code when these files change:
addDependentFileRelative "../../../vendor/haskell-tree-sitter/languages/python/vendor/tree-sitter-python/src/parser.c"
-- | Statically-known rules corresponding to symbols in the grammar.
-- v4 - bump this to regenerate
mkSymbolDatatype (mkName "Grammar") tree_sitter_python