Skip to content

Commit

Permalink
latex: improved sections
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmandlik authored and clason committed Aug 4, 2024
1 parent ccb886f commit d45a115
Showing 1 changed file with 48 additions and 9 deletions.
57 changes: 48 additions & 9 deletions queries/latex/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,51 @@
"}")
(#make-range! "call.inner" @_start @_end))

[
(chapter)
(part)
(section)
(subsection)
(subsubsection)
(paragraph)
(subparagraph)
] @class.outer
((part
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

((chapter
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

((section
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

((subsection
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

((subsubsection
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

((paragraph
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

((subparagraph
text: (_)
.
(_) @_start
(_)? @_end .) @class.outer
(#make-range! "class.inner" @_start @_end))

0 comments on commit d45a115

Please sign in to comment.