on master help sign in
add syntax highlights for xit (#3521)
commit6b912b864195e0781b186e50b91050ed5c9b0e3d authorChemicalXandco <32775248+ChemicalXandco@users.noreply.github.com> dateWed 24 Aug 2022, 02:52 (4 years ago) parent99b1e8a
3 files changed+24−1
book/src/generated/lang-support.md+1 languages.toml+12−1 runtime/queries/xit/highlights.scm+11
book/src/generated/lang-support.md+1
@@ -112,5 +112,6 @@
112112| verilog | ✓ | ✓ | | `svlangserver` |
113113| vue | ✓ | | | `vls` |
114114| wgsl | ✓ | | | `wgsl_analyzer` |
115+| xit | ✓ | | | |
115116| yaml | ✓ | | ✓ | `yaml-language-server` |
116117| zig | ✓ | | ✓ | `zls` |
languages.toml+12−1
@@ -1493,7 +1493,6 @@ indent = { tab-width = 2, unit = " " }
14931493name = "jsdoc"
14941494source = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "189a6a4829beb9cdbe837260653b4a3dfb0cc3db" }
14951495
1496−
14971496[[language]]
14981497name = "openscad"
14991498scope = "source.openscad"
@@ -1653,3 +1652,15 @@ indent = { tab-width = 2, unit = " " }
16531652[[grammar]]
16541653name = "task"
16551654source = { git = "https://github.com/alexanderbrevig/tree-sitter-task", rev = "f2cb435c5dbf3ee19493e224485d977cb2d36d8b" }
1655+
1656+[[language]]
1657+name = "xit"
1658+scope = "source.xit"
1659+injection-regex = "xit"
1660+file-types = ["xit"]
1661+roots = []
1662+indent = { tab-width = 4, unit = " " }
1663+
1664+[[grammar]]
1665+name = "xit"
1666+source = { git = "https://github.com/synaptiko/tree-sitter-xit", rev = "7d7902456061bc2ad21c64c44054f67b5515734c" }
runtime/queries/xit/highlights.scmnew file+11
@@ -0,0 +1,11 @@
1+(headline) @markup.heading
2+
3+(open_checkbox) @markup.list
4+(ongoing_checkbox) @keyword.control
5+(checked_checkbox) @diff.plus
6+(obsolete_checkbox) @comment.unused
7+
8+(checked_task) @comment.unused
9+(obsolete_task) @comment.unused
10+
11+(priority) @error