fix(queries): use vim-match for non lua regexes

This commit is contained in:
Steven Sojka 2020-08-16 11:24:10 -05:00 committed by Kiyan Yazdani
parent 4a747aa30c
commit ce43dbf54c
11 changed files with 29 additions and 29 deletions

View file

@ -23,7 +23,7 @@
((directive
name: (type) @function.builtin)
(#match?
(#vim-match?
@function.builtin
; https://docutils.sourceforge.io/docs/ref/rst/directives.html
"^(attention|caution|danger|error|hint|important|note|tip|warning|admonition)|(image|figure)|(topic|sidebar|line-block|parsed-literal|code|math|rubric|epigraph|highlights|pull-quote|compound|container)|(table|csv-table|list-table)|(contents|sectnum|section-numbering|header|footer)|(target-notes)|(meta)|(replace|unicode|date)|(raw|class|role|default-role|title|restructuredtext-test-directive)::$"))
@ -73,7 +73,7 @@
(role) @function
((role) @function.builtin
(#match?
(#vim-match?
@function.builtin
; https://docutils.sourceforge.io/docs/ref/rst/roles.html
"^:(emphasis|literal|code|math|pep-reference|PEP|rfc-reference|RFC|strong|subscript|sub|superscript|sup|title-reference|title|t|raw):$"))