aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorAnders Christiansen Sørby2022-01-17 14:05:17 +0000
committerGitHub2022-01-17 14:05:17 +0000
commit8ea5742b0899992cd7453c70a8a06cb76a703fdf (patch)
treef2bfef8caff17770525196a95113f07ff5cad65d /languages.toml
parente7eab95b943ff15396c5d512a9c95650ab98a902 (diff)
feat(languages): Lean experimental tree-sitter-lean (#1422)
* Add experimental tree-sitter-lean * Run docgen * Copy over the queries from lean.nvim * Update .gitmodules Co-authored-by: Ivan Tham <pickfire@riseup.net> * Update lean highlights and run docgen * Update runtime/queries/lean/injections.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> * Lean: Move variable matcher to bottom * Update runtime/queries/lean/locals.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index af15c654..2896dd32 100644
--- a/languages.toml
+++ b/languages.toml
@@ -242,6 +242,17 @@ comment-token = "%"
indent = { tab-width = 4, unit = "\t" }
[[language]]
+name = "lean"
+scope = "source.lean"
+injection-regex = "lean"
+file-types = ["lean"]
+roots = [ "lakefile.lean" ]
+comment-token = "--"
+language-server = { command = "lean", args = [ "--server" ] }
+
+indent = { tab-width = 2, unit = " " }
+
+[[language]]
name = "julia"
scope = "source.julia"
injection-regex = "julia"