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>
This commit is contained in:
sogaiu 2024-01-28 19:17:46 +09:00 committed by GitHub
parent 4ab7029535
commit f5b67d9acb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 89 additions and 10 deletions

View File

@ -326,6 +326,29 @@ comment-token = "//"
language-servers = [ "mint" ] language-servers = [ "mint" ]
indent = { tab-width = 2, unit = " " } 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]] [[language]]
name = "json" name = "json"
scope = "source.json" scope = "source.json"
@ -3008,15 +3031,6 @@ file-types = ["log"]
name = "log" name = "log"
source = { git = "https://github.com/Tudyx/tree-sitter-log", rev = "62cfe307e942af3417171243b599cc7deac5eab9" } 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]] [[language]]
name = "hocon" name = "hocon"
scope = "source.conf" scope = "source.conf"

File diff suppressed because one or more lines are too long