aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-04-28 07:19:07 -0500
committerGitHub <noreply@github.com>2021-04-28 07:19:07 -0500
commit4a7a713c527f57c355bc817f16fc6d955b8cce9b (patch)
tree0792822bfc151839806ac74e2a02698736f64bd4 /queries/python
parentfolds(c): fold at case_statement (diff)
downloadnvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.tar
nvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.tar.gz
nvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.tar.bz2
nvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.tar.lz
nvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.tar.xz
nvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.tar.zst
nvim-treesitter-4a7a713c527f57c355bc817f16fc6d955b8cce9b.zip
Comment: use `@combined` to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/injections.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/python/injections.scm b/queries/python/injections.scm
index 197e725e5..fb939cc0c 100644
--- a/queries/python/injections.scm
+++ b/queries/python/injections.scm
@@ -23,4 +23,4 @@
(((expression_statement (assignment)) . (expression_statement (string) @rst))
(#offset! @rst 0 3 0 -3))
-(comment) @comment
+(comment) @comment @combined