Skip to content

Commit

Permalink
add syntax highlights for xit (#3521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChemicalXandco committed Aug 24, 2022
1 parent 99b1e8a commit 6b912b8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@
| verilog ||| | `svlangserver` |
| vue || | | `vls` |
| wgsl || | | `wgsl_analyzer` |
| xit || | | |
| yaml || || `yaml-language-server` |
| zig || || `zls` |
13 changes: 12 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,6 @@ indent = { tab-width = 2, unit = " " }
name = "jsdoc"
source = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "189a6a4829beb9cdbe837260653b4a3dfb0cc3db" }


[[language]]
name = "openscad"
scope = "source.openscad"
Expand Down Expand Up @@ -1653,3 +1652,15 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "task"
source = { git = "https://github.com/alexanderbrevig/tree-sitter-task", rev = "f2cb435c5dbf3ee19493e224485d977cb2d36d8b" }

[[language]]
name = "xit"
scope = "source.xit"
injection-regex = "xit"
file-types = ["xit"]
roots = []
indent = { tab-width = 4, unit = " " }

[[grammar]]
name = "xit"
source = { git = "https://github.com/synaptiko/tree-sitter-xit", rev = "7d7902456061bc2ad21c64c44054f67b5515734c" }
11 changes: 11 additions & 0 deletions runtime/queries/xit/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(headline) @markup.heading

(open_checkbox) @markup.list
(ongoing_checkbox) @keyword.control
(checked_checkbox) @diff.plus
(obsolete_checkbox) @comment.unused

(checked_task) @comment.unused
(obsolete_task) @comment.unused

(priority) @error

0 comments on commit 6b912b8

Please sign in to comment.