Skip to content

Commit

Permalink
Added tree-sitter-hosts (#4950)
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 authored Feb 10, 2023
1 parent 189c3c2 commit 1840d77
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 @@ -2156,3 +2156,13 @@ roots = []
[[grammar]]
name = "passwd"
source = { git = "https://github.com/ath3/tree-sitter-passwd", rev = "20239395eacdc2e0923a7e5683ad3605aee7b716" }

[[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 1840d77

Please sign in to comment.