summaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorsogaiu2024-01-28 10:17:46 +0000
committerGitHub2024-01-28 10:17:46 +0000
commitf5b67d9acb89ea54e7226111e3e4d8c3a008144b (patch)
tree63a3de976fb2efd1a1ea85a7c0f9daa56a3d7ae2 /languages.toml
parent4ab70295352f6e4f86c4d170a04ceb858ee79d5b (diff)
Use janet-simple grammar for Janet (#9247)
* Use janet-simple grammar for Janet * Update book * Tweak language name and related * Rename janet-simple to janet in book * Remove spurious language section for janet * Drop quote_lit and qq_lit related highlighting --------- Co-authored-by: sogaiu <983021772@users.noreply.github.com> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml32
1 files changed, 23 insertions, 9 deletions
diff --git a/languages.toml b/languages.toml
index 785bc970..ba3b1906 100644
--- a/languages.toml
+++ b/languages.toml
@@ -327,6 +327,29 @@ language-servers = [ "mint" ]
indent = { tab-width = 2, unit = " " }
[[language]]
+name = "janet"
+scope = "source.janet"
+injection-regex = "janet"
+file-types = ["cgen", "janet", "jdn"]
+shebangs = ["janet"]
+roots = ["project.janet"]
+comment-token = "#"
+indent = { tab-width = 2, unit = " " }
+formatter = { command = "janet-format" }
+grammar = "janet-simple"
+
+[language.auto-pairs]
+'"' = '"'
+'(' = ')'
+'[' = ']'
+'{' = '}'
+"`" = "`"
+
+[[grammar]]
+name = "janet-simple"
+source = { git = "https://github.com/sogaiu/tree-sitter-janet-simple", rev = "51271e260346878e1a1aa6c506ce6a797b7c25e2" }
+
+[[language]]
name = "json"
scope = "source.json"
injection-regex = "json"
@@ -3009,15 +3032,6 @@ 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"
-
-[[language]]
name = "hocon"
scope = "source.conf"
file-types = ["conf"]