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.
This commit is contained in:
Santos Gallegos 2021-05-31 12:03:27 -05:00 committed by GitHub
parent 972f70956a
commit c1f61d4ca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 15 deletions

View file

@ -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