aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorath32023-02-10 17:32:04 +0000
committerGitHub2023-02-10 17:32:04 +0000
commit1840d775c8d5207f08b0fcc3f2325e337369efe8 (patch)
treea264f2699e9b5fc1dff2ce2b2f1b20c174f313ae
parent189c3c2ddc60fb0eb7d15496099d46baec514732 (diff)
Added tree-sitter-hosts (#4950)
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml10
-rw-r--r--runtime/queries/hosts/highlights.scm3
3 files changed, 14 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 368b178f..e6b68c8c 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -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 | ✓ | | | |
diff --git a/languages.toml b/languages.toml
index 1eb8f3c3..c84a62b0 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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" }
diff --git a/runtime/queries/hosts/highlights.scm b/runtime/queries/hosts/highlights.scm
new file mode 100644
index 00000000..9d069031
--- /dev/null
+++ b/runtime/queries/hosts/highlights.scm
@@ -0,0 +1,3 @@
+(comment) @comment
+(ip) @namespace
+(host) @string