diff dot_config/helix/languages.toml @ 828:2033a1460dbc

feat: add hg-commit and hgrc tree-sitter grammars and highlights
author zegervdv <zegervdv@me.com>
date Wed, 03 Jan 2024 11:43:45 +0100
parents b2e6175efcad
children 3dc425f9ac53
line wrap: on
line diff
--- a/dot_config/helix/languages.toml	Wed Jan 03 11:42:18 2024 +0100
+++ b/dot_config/helix/languages.toml	Wed Jan 03 11:43:45 2024 +0100
@@ -33,7 +33,7 @@
 
 [[grammar]]
 name = "hgrc"
-source = { git = "https://github.com/zegervdv/tree-sitter-hgrc.git", rev = "d20aa925aa0c56d68215395b9e65dc6003cdcffb" }
+source = { git = "https://github.com/zegervdv/tree-sitter-hgrc.git", rev = "6bbb8cc15cd489b66244517c3c5bbf4b19fd8ffa" }
 
 [[language]]
 name = "hgrc"
@@ -43,3 +43,16 @@
 comment-token = "#"
 indent = { tab-width = 2, unit = " " }
 roots = [".hg"]
+
+[[grammar]]
+name = "hg-commit"
+source = { git = "https://github.com/zegervdv/tree-sitter-hg-commit.git", rev = "310825fccba24d27d9da66597c372f697896a6d3" }
+
+[[language]]
+name = "hg-commit"
+scope = "source.hg-commit"
+injection-regex = "hgrc"
+file-types = [{ suffix = "commit.hg.txt" }]
+comment-token = "HG:"
+indent = { tab-width = 2, unit = " " }
+roots = [".hg"]