Add support for dune project language (#11829)
This commit is contained in:
parent
f6d39cbc1d
commit
048973fc55
3 changed files with 19 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
|||
| dockerfile | ✓ | ✓ | | `docker-langserver` |
|
||||
| dot | ✓ | | | `dot-language-server` |
|
||||
| dtd | ✓ | | | |
|
||||
| dune | ✓ | | | |
|
||||
| earthfile | ✓ | ✓ | ✓ | `earthlyls` |
|
||||
| edoc | ✓ | | | |
|
||||
| eex | ✓ | | | |
|
||||
|
|
|
@ -1243,6 +1243,23 @@ indent = { tab-width = 2, unit = " " }
|
|||
name = "ocaml-interface"
|
||||
source = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "9965d208337d88bbf1a38ad0b0fe49e5f5ec9677", subpath = "interface" }
|
||||
|
||||
[[language]]
|
||||
name = "dune"
|
||||
scope = "source.dune"
|
||||
roots = ["dune-project"]
|
||||
file-types = [{ glob = "dune-project" }, { glob = "dune" }]
|
||||
comment-token = ";"
|
||||
indent = { tab-width = 1, unit = " " }
|
||||
grammar = "scheme"
|
||||
auto-format = true
|
||||
formatter = { command = "dune", args = ["format-dune-file"] }
|
||||
|
||||
[language.auto-pairs]
|
||||
'(' = ')'
|
||||
'{' = '}'
|
||||
'[' = ']'
|
||||
'"' = '"'
|
||||
|
||||
[[language]]
|
||||
name = "lua"
|
||||
injection-regex = "lua"
|
||||
|
|
1
runtime/queries/dune/highlights.scm
Normal file
1
runtime/queries/dune/highlights.scm
Normal file
|
@ -0,0 +1 @@
|
|||
; inherits: scheme
|
Loading…
Add table
Reference in a new issue