Logo
Explore Help
Sign In
realAscot/helix-editor
realAscot/helix-editor
1
0
Fork 0
You've already forked helix-editor
mirror of https://github.com/realAscot/helix.git synced 2025-09-15 04:33:04 +02:00
Code Issues Packages Projects Releases Wiki Activity
helix-editor/runtime/queries/diff/highlights.scm

7 lines
136 B
Scheme
Raw Normal View History

Add tree-sitter-git-diff (#1373) * add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diff
2021-12-29 09:31:23 -06:00
[(addition) (new_file)] @diff.plus
[(deletion) (old_file)] @diff.minus
(commit) @constant
(location) @attribute
(command) @markup.bold
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 231ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API