Skip to content

Commit

Permalink
Add tree-sitter-hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 committed Jan 16, 2023
1 parent 3cf5216 commit d7e340b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
| haskell ||| | `haskell-language-server-wrapper` |
| hcl || || `terraform-ls` |
| heex ||| | `elixir-ls` |
| hosts || | | |
| html || | | `vscode-html-language-server` |
| idris | | | | `idris2-lsp` |
| iex || | | |
Expand Down
10 changes: 10 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2108,3 +2108,13 @@ formatter = { command = "dhall" , args = ["format"] }
[[grammar]]
name = "dhall"
source = { git = "https://github.com/jbellerb/tree-sitter-dhall", rev = "affb6ee38d629c9296749767ab832d69bb0d9ea8" }

[[language]]
name = "hosts"
scope = "source.hosts"
file-types = ["hosts"]
roots = []

[[grammar]]
name = "hosts"
source = { git = "https://github.com/ath3/tree-sitter-hosts", rev = "301b9379ce7dfc8bdbe2c2699a6887dcb73953f9" }
3 changes: 3 additions & 0 deletions runtime/queries/hosts/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(comment) @comment
(ip) @namespace
(host) @string

0 comments on commit d7e340b

Please sign in to comment.