diff options
| author | Pau Ruiz Safont <unduthegun@gmail.com> | 2020-09-10 18:44:09 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-09-19 13:35:12 +0200 |
| commit | 749a8a7f25f6aaee7adcb2c0d6b4cbcf98695346 (patch) | |
| tree | c01035a2007416548e422bd5a4635549a032b2c0 /lua/nvim-treesitter/parsers.lua | |
| parent | 76c00934a653b0b66d4bb3f747dd95ade276c6a4 (diff) | |
feat: add parser for ocaml interface files
The files have the mli extension. The parser grammar uses the name
ocaml_interface, but since vim the underscore has a special meaning
ocamlinterface is used as the filetype.
Diffstat (limited to 'lua/nvim-treesitter/parsers.lua')
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index a51f9770..24a7ca0a 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -135,6 +135,16 @@ list.ocaml = { maintainers = {'@undu'}, } +list.ocaml_interface = { + install_info = { + url = "https://github.com/tree-sitter/tree-sitter-ocaml", + files = { "src/parser.c", "src/scanner.cc" }, + location = "tree-sitter-ocaml_interface/interface" + }, + maintainers = {'@undu'}, + filetype = 'ocamlinterface' +} + list.swift = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-swift", |
