mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Add Hoon (#9190)
* Added Hoon * Added highlights.scm * Updated docs * Update runtime/queries/hoon/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
parent
ad7b7bc804
commit
d7c7589fd5
@ -70,6 +70,7 @@
|
||||
| hcl | ✓ | | ✓ | `terraform-ls` |
|
||||
| heex | ✓ | ✓ | | `elixir-ls` |
|
||||
| hocon | ✓ | | ✓ | |
|
||||
| hoon | ✓ | | | |
|
||||
| hosts | ✓ | | | |
|
||||
| html | ✓ | | | `vscode-html-language-server` |
|
||||
| hurl | ✓ | | ✓ | |
|
||||
|
@ -3055,6 +3055,18 @@ file-types = ["log"]
|
||||
name = "log"
|
||||
source = { git = "https://github.com/Tudyx/tree-sitter-log", rev = "62cfe307e942af3417171243b599cc7deac5eab9" }
|
||||
|
||||
[[language]]
|
||||
name = "hoon"
|
||||
scope = "source.hoon"
|
||||
injection-regex = "hoon"
|
||||
file-types = ["hoon"]
|
||||
comment-token = "::"
|
||||
indent = {tab-width = 2, unit = " "}
|
||||
|
||||
[[grammar]]
|
||||
name = "hoon"
|
||||
source = { git = "https://github.com/urbit-pilled/tree-sitter-hoon", rev = "1d5df35af3e0afe592832a67b9fb3feeeba1f7b6" }
|
||||
|
||||
[[language]]
|
||||
name = "hocon"
|
||||
scope = "source.conf"
|
||||
|
32
runtime/queries/hoon/highlights.scm
Normal file
32
runtime/queries/hoon/highlights.scm
Normal file
@ -0,0 +1,32 @@
|
||||
(number) @constant.numeric
|
||||
|
||||
(string) @string
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
(coreTerminator)
|
||||
(seriesTerminator)
|
||||
] @punctuation.delimiter
|
||||
|
||||
|
||||
(rune) @keyword
|
||||
|
||||
(term) @constant
|
||||
|
||||
(aura) @constant.builtin
|
||||
|
||||
(Gap) @comment
|
||||
|
||||
(boolean) @constant.builtin
|
||||
|
||||
(date) @constant.builtin
|
||||
(mold) @constant.builtin
|
||||
(specialIndex) @constant.builtin
|
||||
(lark) @operator
|
||||
(fullContext) @constant.builtin
|
Loading…
Reference in New Issue
Block a user