Skip to content

Commit

Permalink
fix(latex): proper function call text objects (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribru17 authored Jan 14, 2024
1 parent a97a6ea commit 83558e4
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion queries/latex/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,28 @@

[
(generic_command)
] @statement.outer
(text_mode)
] @call.outer

(text_mode
(curly_group
"{"
.
(_) @_start
(_)? @_end
.
"}")
(#make-range! "call.inner" @_start @_end))

(generic_command
(curly_group
"{"
.
(_) @_start
(_)? @_end
.
"}")
(#make-range! "call.inner" @_start @_end))

[
(chapter)
Expand Down

0 comments on commit 83558e4

Please sign in to comment.