aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rst
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2024-01-05 03:19:54 +0900
committerChristian Clason <c.clason@uni-graz.at>2024-01-19 16:58:37 +0100
commitedee83272efe9b597bc27e8060539cdffa3b12a8 (patch)
tree0ee5a346d619b55c932eb87f0a4578d03d4f0116 /queries/rst
parentfeat: query formatting script (diff)
downloadnvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar
nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.gz
nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.bz2
nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.lz
nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.xz
nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.zst
nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.zip
refactor: manual pre-cleanup
Moving comments, adding `format-ignore` to lines that will be better with it
Diffstat (limited to 'queries/rst')
-rw-r--r--queries/rst/highlights.scm64
1 files changed, 32 insertions, 32 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm
index b3b2b0a88..d83a21427 100644
--- a/queries/rst/highlights.scm
+++ b/queries/rst/highlights.scm
@@ -32,18 +32,18 @@
((directive
name: (type) @function.builtin)
- (#any-of?
- @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"))
+ ; format-ignore
+ (#any-of? @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"))
;; Blocks
@@ -89,26 +89,26 @@
(role) @function
((role) @function.builtin
- (#any-of?
- @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:"))
+ ; format-ignore
+ (#any-of? @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:"))
[
"interpreted_text"