Skip to content

Commit

Permalink
Add support for dune project language (helix-editor#11829)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicptr authored and plul committed Oct 13, 2024
1 parent 79cc007 commit f0bd3b6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
| dockerfile ||| | `docker-langserver` |
| dot || | | `dot-language-server` |
| dtd || | | |
| dune || | | |
| earthfile |||| `earthlyls` |
| edoc || | | |
| eex || | | |
Expand Down
17 changes: 17 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions runtime/queries/dune/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: scheme

0 comments on commit f0bd3b6

Please sign in to comment.