Skip to main content
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@v4.1.4/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>