comparison 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
comparison
equal deleted inserted replaced
827:e4d67607d020 828:2033a1460dbc
31 name = 'gotmpl' 31 name = 'gotmpl'
32 file-types = ["tmpl"] 32 file-types = ["tmpl"]
33 33
34 [[grammar]] 34 [[grammar]]
35 name = "hgrc" 35 name = "hgrc"
36 source = { git = "https://github.com/zegervdv/tree-sitter-hgrc.git", rev = "d20aa925aa0c56d68215395b9e65dc6003cdcffb" } 36 source = { git = "https://github.com/zegervdv/tree-sitter-hgrc.git", rev = "6bbb8cc15cd489b66244517c3c5bbf4b19fd8ffa" }
37 37
38 [[language]] 38 [[language]]
39 name = "hgrc" 39 name = "hgrc"
40 scope = "source.hgrc" 40 scope = "source.hgrc"
41 injection-regex = "hgrc" 41 injection-regex = "hgrc"
42 file-types = ["hgrc", ".hgrc"] 42 file-types = ["hgrc", ".hgrc"]
43 comment-token = "#" 43 comment-token = "#"
44 indent = { tab-width = 2, unit = " " } 44 indent = { tab-width = 2, unit = " " }
45 roots = [".hg"] 45 roots = [".hg"]
46
47 [[grammar]]
48 name = "hg-commit"
49 source = { git = "https://github.com/zegervdv/tree-sitter-hg-commit.git", rev = "310825fccba24d27d9da66597c372f697896a6d3" }
50
51 [[language]]
52 name = "hg-commit"
53 scope = "source.hg-commit"
54 injection-regex = "hgrc"
55 file-types = [{ suffix = "commit.hg.txt" }]
56 comment-token = "HG:"
57 indent = { tab-width = 2, unit = " " }
58 roots = [".hg"]