aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rst/injections.scm
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-05-31 12:03:27 -0500
committerGitHub <noreply@github.com>2021-05-31 17:03:27 +0000
commitc1f61d4ca1319747c27ec97b5f050b3d936e0a55 (patch)
tree9f1f65777ec4a7882e34ea1ff5517d910b08cc5e /queries/rst/injections.scm
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.gz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.bz2
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.lz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.xz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.zst
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.zip
Improve check-queries (#1253)
- Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries.
Diffstat (limited to 'queries/rst/injections.scm')
-rw-r--r--queries/rst/injections.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/queries/rst/injections.scm b/queries/rst/injections.scm
index 6d62550ad..50c3b46b7 100644
--- a/queries/rst/injections.scm
+++ b/queries/rst/injections.scm
@@ -40,10 +40,11 @@
body: (body (content) @latex))
(#eq? @_type "math"))
-((directive
- name: (type) @_type
- body: (body (content) @csv))
- (#eq? @_type "csv-table"))
+; TODO: re-add when a parser for csv is added.
+; ((directive
+; name: (type) @_type
+; body: (body (content) @csv))
+; (#eq? @_type "csv-table"))
;; Special roles - prefix