1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 12:21:57 +03:00

Map go suffixes to go tree-sitter parser

This commit is contained in:
joshvera 2016-10-17 15:32:14 -04:00
parent 339122dc87
commit 422bec56c3

View File

@ -74,6 +74,7 @@ parserForType mediaType = case languageForType mediaType of
Just JavaScript -> treeSitterParser JavaScript ts_language_javascript Just JavaScript -> treeSitterParser JavaScript ts_language_javascript
Just Markdown -> cmarkParser Just Markdown -> cmarkParser
Just Ruby -> treeSitterParser Ruby ts_language_ruby Just Ruby -> treeSitterParser Ruby ts_language_ruby
Just Go -> treeSitterParser Go ts_language_go
_ -> lineByLineParser _ -> lineByLineParser
-- | A fallback parser that treats a file simply as rows of strings. -- | A fallback parser that treats a file simply as rows of strings.