vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 8a7827d1e48904fb06ea3e76b18554775760e414
parent be129f6564176e363a292db8e600e3b41cc36829
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 31 May 2017 11:11:28 +0200

vis-lua: fix file:match_at API documentation

Diffstat:
Mlua/vis.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/vis.lua b/lua/vis.lua @@ -273,7 +273,7 @@ end --- Check whether LPeg pattern matches at a given file position. -- @function match_at -- @param pattern the LPeg pattern --- @tparam int the absolute position in bytes to test for a match +-- @tparam int pos the absolute file position which should be tested for a match -- @tparam[opt] int horizon the number of bytes around `pos` to consider (defaults to 1K) -- @treturn int start,end the range of the matched region or `nil` vis.types.file.match_at = function(file, pattern, pos, horizon)