Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>searchpairpos

๐Ÿ“š Standard module for denops.vim
Go to Latest
function searchpairpos
import { searchpairpos } from "https://deno.land/x/denops_std@v3.9.0/function/mod.ts";

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
start: unknown
middle: unknown
end: unknown
optional
flags: unknown
optional
skip: unknown
optional
stopline: unknown
optional
timeout: unknown

Returns

Promise<unknown>