aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-31 11:11:28 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-31 11:11:54 +0200
commitf5f5c3f8f5bc0b7ce43c5ea64ff42dda80356a6e (patch)
tree4be94a95cc0ac4233da5ebf0290186c3ee9536cf
parent61ff2920bad08c10a4c53e3d93fa152721b348fc (diff)
downloadvis-f5f5c3f8f5bc0b7ce43c5ea64ff42dda80356a6e.tar.gz
vis-f5f5c3f8f5bc0b7ce43c5ea64ff42dda80356a6e.tar.xz
vis-lua: fix file:match_at API documentation
-rw-r--r--lua/vis.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/vis.lua b/lua/vis.lua
index a6ed5bb..c7738e9 100644
--- 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)