1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Update to latest tree-sitter and parsers

This commit is contained in:
Timothy Clem 2016-10-06 11:07:40 -07:00
parent db2e3cf236
commit fa2f13ab74
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import Info
-- | Returns a TreeSitter parser for the given language and TreeSitter grammar.
treeSitterParser :: Language -> Ptr TS.Language -> Parser (Syntax.Syntax Text) (Record '[Range, Category])
treeSitterParser language grammar blob = do
document <- ts_document_make
document <- ts_document_new
ts_document_set_language document grammar
withCString (toString $ source blob) (\source -> do
ts_document_set_input_string document source

@ -1 +1 @@
Subproject commit 8348194cc52b4b9fd61e3988b9526b54ebfef920
Subproject commit 514b693f38fcf70720f7db7a17cf78620c930d1b