aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil2023-12-15 06:54:25 +0000
committerGitHub2023-12-15 06:54:25 +0000
commitb4571c292e76382f98266322a025c6383bd02f30 (patch)
treede1581bf4cfc7714f3d819d3abf653e6f738a46c
parent437fbee425874c83ac7c7b0d3c1ecfa34d0b2b16 (diff)
Add initial support for janet-lang (#9081)
* Add initial support for janet-lang * Use default roots for janet-lang
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml9
-rw-r--r--runtime/queries/janet/highlights.scm1
3 files changed, 11 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index ed4014e3..1fad1017 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 7f1c6b76..2c2bfc61 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2952,3 +2952,12 @@ 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 = " " }
+grammar = "clojure"
diff --git a/runtime/queries/janet/highlights.scm b/runtime/queries/janet/highlights.scm
new file mode 100644
index 00000000..a036368a
--- /dev/null
+++ b/runtime/queries/janet/highlights.scm
@@ -0,0 +1 @@
+; inherits: clojure