Skip to content

Commit

Permalink
doc: document vimtex#syntax#in
Browse files Browse the repository at this point in the history
refer: #2929
  • Loading branch information
lervag committed Apr 20, 2024
1 parent cb3e382 commit 268dd8d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6248,10 +6248,18 @@ Note: This API is currently a work in progress!
the |VimtexEventCompiling|, |VimtexEventCompileFailed| and
|VimtexEventCompileSuccess| events.

*vimtex#syntax#in*
`vimtex#syntax#in(name)` -> |Boolean|
`vimtex#syntax#in(name, line, column)` -> |Boolean|
Returns |v:true| if the cursor position or the specified position is inside
the `name`d group. `name` is a regex that is used to matched against the
syntax group stack.

*vimtex#syntax#in_mathzone*
Returns 1 if the position is inside a math zone. If called without
arguments, the position refers to the cursor position. Else must be called
with two arguments: the line number and column number.
`vimtex#syntax#in_mathzone()` -> |Boolean|
`vimtex#syntax#in_mathzone(line, column)` -> |Boolean|
Returns |v:true| if the cursor position or the specified position is inside
a math zone.

*vimtex#view#inverse_search*
Utility function for reverse search from pdf viewer. Takes two arguments:
Expand Down

0 comments on commit 268dd8d

Please sign in to comment.