import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { searchpairpos } = fn;
Same as searchpair()
, but returns a List
with the line and
column position of the match. The first element of the List
is the line number and the second element is the byte index of
the column position of the match. If no match is found,
returns [0, 0].
:let [lnum,col] = searchpairpos('{', '', '}', 'n')
See match-parens
for a bigger and more useful example.
Parameters
denops: Denops