Skip to content

Commit

Permalink
Add support for jjdescription files
Browse files Browse the repository at this point in the history
  • Loading branch information
kareigu committed Jul 22, 2024
1 parent 748a9cf commit 018208b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3203,6 +3203,19 @@ grammar = "jinja2"
name = "jinja2"
source = { git = "https://github.com/varpeti/tree-sitter-jinja2", rev = "a533cd3c33aea6acb0f9bf9a56f35dcfe6a8eb53" }

[[language]]
name = "jjdescription"
scope = "jj.description"
file-types = [{ glob = "*.jjdescription" }]
comment-token = "JJ:"
indent = { tab-width = 2, unit = " " }
rulers = [51, 73]
text-width = 72

[[grammar]]
name = "jjdescription"
source = { git = "https://github.com/kareigu/tree-sitter-jjdescription", rev = "d624681c051d5034146a636d90cf75b20081fda1" }

[[grammar]]
name = "wren"
source = { git = "https://git.sr.ht/~jummit/tree-sitter-wren", rev = "6748694be32f11e7ec6b5faeb1b48ca6156d4e06" }
Expand Down
8 changes: 8 additions & 0 deletions runtime/queries/jjdescription/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(text) @string
(filepath) @string.special.path

(change type: "A" @diff.plus)
(change type: "D" @diff.minus)
(change type: "M" @diff.delta)

(comment) @comment

0 comments on commit 018208b

Please sign in to comment.