diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-05-12 11:21:42 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-14 08:27:46 +0200 |
| commit | 3aa2e2f3747ee11dc4460ad98b25e887c33bb610 (patch) | |
| tree | 36c172a87968e3ac920a8707f672f40fc4b189b8 | |
| parent | feat(php): indent after `default_statement` (diff) | |
| download | nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.tar nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.tar.gz nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.tar.bz2 nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.tar.lz nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.tar.xz nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.tar.zst nvim-treesitter-3aa2e2f3747ee11dc4460ad98b25e887c33bb610.zip | |
feat(diff): more comprehensive highlights
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/diff/highlights.scm | 33 |
2 files changed, 33 insertions, 2 deletions
diff --git a/lockfile.json b/lockfile.json index a27ebd5a7..c3f54ecb3 100644 --- a/lockfile.json +++ b/lockfile.json @@ -111,7 +111,7 @@ "revision": "affb6ee38d629c9296749767ab832d69bb0d9ea8" }, "diff": { - "revision": "710e881127512bda8157096e26c1f3e91702823a" + "revision": "629676fc3919606964231b2c7b9677d6998a2cb4" }, "disassembly": { "revision": "0229c0211dba909c5d45129ac784a3f4d49c243a" diff --git a/queries/diff/highlights.scm b/queries/diff/highlights.scm index d8e600882..44506c056 100644 --- a/queries/diff/highlights.scm +++ b/queries/diff/highlights.scm @@ -12,4 +12,35 @@ (location) @attribute -(command) @function +(command + "diff" @function + (argument) @variable.parameter) + +(filename) @string.special.path + +(mode) @number + +[ + ".." + "+" + "++" + "+++" + "++++" + "-" + "--" + "---" + "----" +] @punctuation.special + +[ + (binary_change) + (similarity) + (file_change) +] @label + +(index + "index" @keyword) + +(similarity + (score) @number + "%" @number) |
