aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorDaniel Longeuay2022-07-26 01:17:28 +0000
committerGitHub2022-07-26 01:17:28 +0000
commit2ede98c4b4275cc2176836347b7c921a7f018d72 (patch)
treee47baf0dc0cba24b696a11c85f5ce983abe3626b /languages.toml
parentd4a5413255670ce30a0d91192ed375be8cd890a6 (diff)
feat(tree-sitter): :sparkles: add go template support (#3091)
* feat(tree-sitter): :sparkles: add go template support * fix(tree-sitter): :bug: go template highlight scope selectors * chore(tree-sitter): :wrench: update go template grammar commit
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index c2e0549f..1eaec8dd 100644
--- a/languages.toml
+++ b/languages.toml
@@ -286,6 +286,20 @@ name = "gomod"
source = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "e8f51f8e4363a3d9a427e8f63f4c1bbc5ef5d8d0" }
[[language]]
+name = "gotmpl"
+scope = "source.gotmpl"
+injection-regex = "gotmpl"
+file-types = ["gotmpl"]
+roots = []
+comment-token = "//"
+language-server = { command = "gopls" }
+indent = { tab-width = 2, unit = " " }
+
+[[grammar]]
+name = "gotmpl"
+source = { git = "https://github.com/dannylongeuay/tree-sitter-go-template", rev = "395a33e08e69f4155156f0b90138a6c86764c979" }
+
+[[language]]
name = "gowork"
scope = "source.gowork"
injection-regex = "gowork"