From 60bdae30b13c5e3f32a5d64d60b17b5c4c977169 Mon Sep 17 00:00:00 2001 From: Philip Nelson Date: Wed, 13 Dec 2023 21:25:31 -0800 Subject: [PATCH] Add initial support for janet-lang --- book/src/generated/lang-support.md | 1 + languages.toml | 14 ++++++++++++++ runtime/queries/janet/highlights.scm | 1 + 3 files changed, 16 insertions(+) create mode 100644 runtime/queries/janet/highlights.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index ed4014e308f19..0fce100e571ab 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -73,6 +73,7 @@ | idris | | | | `idris2-lsp` | | iex | ✓ | | | | | ini | ✓ | | | | +| janet | | | | | | java | ✓ | ✓ | ✓ | `jdtls` | | javascript | ✓ | ✓ | ✓ | `typescript-language-server` | | jinja | ✓ | | | | diff --git a/languages.toml b/languages.toml index 7f1c6b769fad3..0b80f809419e0 100644 --- a/languages.toml +++ b/languages.toml @@ -2952,3 +2952,17 @@ file-types = ["log"] [[grammar]] name = "log" source = { git = "https://github.com/Tudyx/tree-sitter-log", rev = "62cfe307e942af3417171243b599cc7deac5eab9" } + +[[language]] +name = "janet" +scope = "source.janet" +injection-regex = "janet" +file-types = ["janet"] +comment-token = "#" +indent = { tab-width = 2, unit = " " } +roots = [] +grammar = "clojure" + +[[grammar]] +name = "janet" +source = { git = "https://github.com/GrayJack/tree-sitter-janet", rev = "1d002c23d4e952ce24a2e472d0f81ab0471ceb1b" } diff --git a/runtime/queries/janet/highlights.scm b/runtime/queries/janet/highlights.scm new file mode 100644 index 0000000000000..a036368a1208f --- /dev/null +++ b/runtime/queries/janet/highlights.scm @@ -0,0 +1 @@ +; inherits: clojure