diff options
| author | gbprod <contact@gb-prod.fr> | 2022-10-18 10:33:57 +0200 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-10-28 10:36:23 +0200 |
| commit | 053f88f55622c22cfd5cf8a15ab684a3d484cd8f (patch) | |
| tree | f62ea87f4ec2f42eef41347c0038700d4f40dbb6 | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.tar nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.tar.gz nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.tar.bz2 nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.tar.lz nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.tar.xz nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.tar.zst nvim-treesitter-053f88f55622c22cfd5cf8a15ab684a3d484cd8f.zip | |
feat(git_rebase): add git_rebase parser
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 | ||||
| -rw-r--r-- | queries/git_rebase/highlights.scm | 8 | ||||
| -rw-r--r-- | queries/git_rebase/injections.scm | 5 |
4 files changed, 24 insertions, 0 deletions
@@ -208,6 +208,7 @@ We are looking for maintainers to add more parsers and to write query files for - [x] [Godot (gdscript)](https://github.com/PrestonKnopp/tree-sitter-gdscript) (maintained by @Shatur95) - [x] [gitattributes](https://github.com/ObserverOfTime/tree-sitter-gitattributes) (maintained by @ObserverOfTime) - [x] [gitignore](https://github.com/shunsambongi/tree-sitter-gitignore) (maintained by @theHamsta) +- [x] [git_rebase](https://github.com/the-mikedavis/tree-sitter-git-rebase) (maintained by @gbprod) - [x] [gleam](https://github.com/J3RN/tree-sitter-gleam) (maintained by @connorlay) - [x] [Glimmer and Ember](https://github.com/alexlafroscia/tree-sitter-glimmer) (maintained by @alexlafroscia) - [x] [glsl](https://github.com/theHamsta/tree-sitter-glsl) (maintained by @theHamsta) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index cb72b911b..ee79c09d6 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1227,6 +1227,16 @@ list.gitattributes = { maintainers = { "@ObserverOfTime" }, } +list.git_rebase = { + install_info = { + url = "https://github.com/the-mikedavis/tree-sitter-git-rebase", + files = { "src/parser.c" }, + branch = "main", + }, + filetype = "gitrebase", + maintainers = { "@gbprod" }, +} + list.blueprint = { install_info = { url = "https://gitlab.com/gabmus/tree-sitter-blueprint.git", diff --git a/queries/git_rebase/highlights.scm b/queries/git_rebase/highlights.scm new file mode 100644 index 000000000..466bd2f16 --- /dev/null +++ b/queries/git_rebase/highlights.scm @@ -0,0 +1,8 @@ +((command) @keyword + (label)? @constant + (message)? @text @spell) + +(option) @operator + +(comment) @comment + diff --git a/queries/git_rebase/injections.scm b/queries/git_rebase/injections.scm new file mode 100644 index 000000000..27388618e --- /dev/null +++ b/queries/git_rebase/injections.scm @@ -0,0 +1,5 @@ +((operation + (command) @_command + (message) @bash) +(#any-of? @_command "exec" "x")) + |
