aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorgbprod <contact@gb-prod.fr>2022-10-18 10:33:57 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-10-28 10:36:23 +0200
commit053f88f55622c22cfd5cf8a15ab684a3d484cd8f (patch)
treef62ea87f4ec2f42eef41347c0038700d4f40dbb6 /queries
parentUpdate lockfile.json (diff)
downloadnvim-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
Diffstat (limited to 'queries')
-rw-r--r--queries/git_rebase/highlights.scm8
-rw-r--r--queries/git_rebase/injections.scm5
2 files changed, 13 insertions, 0 deletions
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"))
+