Added tree-sitter-hosts (#4950)
commit1840d775c8d5207f08b0fcc3f2325e337369efe8
authorath3 <45574139+ath3@users.noreply.github.com>
dateFri 10 Feb 2023, 18:32 (4 years ago)
parent189c3c2
book/src/generated/lang-support.md+1
@@ -56,6 +56,7 @@
5656| haskell | ✓ | ✓ | | `haskell-language-server-wrapper` |
5757| hcl | ✓ | | ✓ | `terraform-ls` |
5858| heex | ✓ | ✓ | | `elixir-ls` |
59+| hosts | ✓ | | | |
5960| html | ✓ | | | `vscode-html-language-server` |
6061| idris | | | | `idris2-lsp` |
6162| iex | ✓ | | | |
languages.toml+10
@@ -2156,3 +2156,13 @@ roots = []
21562156[[grammar]]
21572157name = "passwd"
21582158source = { git = "https://github.com/ath3/tree-sitter-passwd", rev = "20239395eacdc2e0923a7e5683ad3605aee7b716" }
2159+
2160+[[language]]
2161+name = "hosts"
2162+scope = "source.hosts"
2163+file-types = ["hosts"]
2164+roots = []
2165+
2166+[[grammar]]
2167+name = "hosts"
2168+source = { git = "https://github.com/ath3/tree-sitter-hosts", rev = "301b9379ce7dfc8bdbe2c2699a6887dcb73953f9" }
runtime/queries/hosts/highlights.scmnew file+3
@@ -0,0 +1,3 @@
1+(comment) @comment
2+(ip) @namespace
3+(host) @string