refactor: manual pre-cleanup

Moving comments, adding `format-ignore` to lines that will be better
with it
This commit is contained in:
Pham Huy Hoang 2024-01-05 03:19:54 +09:00 committed by Christian Clason
parent 15de22a2e1
commit edee83272e
37 changed files with 1656 additions and 1595 deletions

View file

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