diff dot_config/helix/languages.toml @ 826:b2e6175efcad

feat: add hgrc grammar and highlights
author zegervdv <zegervdv@me.com>
date Fri, 22 Dec 2023 10:27:32 +0100
parents 6c169d906c7d
children 2033a1460dbc
line wrap: on
line diff
--- a/dot_config/helix/languages.toml	Thu Dec 21 11:47:51 2023 +0100
+++ b/dot_config/helix/languages.toml	Fri Dec 22 10:27:32 2023 +0100
@@ -30,3 +30,16 @@
 [[language]]
 name = 'gotmpl'
 file-types = ["tmpl"]
+
+[[grammar]]
+name = "hgrc"
+source = { git = "https://github.com/zegervdv/tree-sitter-hgrc.git", rev = "d20aa925aa0c56d68215395b9e65dc6003cdcffb" }
+
+[[language]]
+name = "hgrc"
+scope = "source.hgrc"
+injection-regex = "hgrc"
+file-types = ["hgrc", ".hgrc"]
+comment-token = "#"
+indent = { tab-width = 2, unit = " " }
+roots = [".hg"]