Skip to content

Commit

Permalink
Add support for jjdescription files (helix-editor#11271)
Browse files Browse the repository at this point in the history
  • Loading branch information
kareigu authored Jul 25, 2024
1 parent ef4a4ff commit f34dca7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
| java |||| `jdtls` |
| javascript |||| `typescript-language-server` |
| jinja || | | |
| jjdescription || | | |
| jsdoc || | | |
| json |||| `vscode-json-language-server` |
| json5 || | | |
Expand Down
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 = "2ddec6cad07b366aee276a608e1daa2c29d3caf2" }

[[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 f34dca7

Please sign in to comment.