mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
Update to latest tree-sitter and parsers
This commit is contained in:
parent
db2e3cf236
commit
fa2f13ab74
@ -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
|
||||
|
2
vendor/tree-sitter-parsers
vendored
2
vendor/tree-sitter-parsers
vendored
@ -1 +1 @@
|
||||
Subproject commit 8348194cc52b4b9fd61e3988b9526b54ebfef920
|
||||
Subproject commit 514b693f38fcf70720f7db7a17cf78620c930d1b
|
Loading…
Reference in New Issue
Block a user