summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorgi Kirilov <>2020-11-22 15:10:49 +0200
committerGeorgi Kirilov <>2023-10-04 18:24:59 +0800
commitdc9b455c790417ed0eadf0a4358480244f1cfb72 (patch)
tree195a862099e8fbd57f66c754933acd17813bde52
parentca994a0d12bcbaa850718c55b4422a0fbaf0280a (diff)
downloadvis-pairs-dc9b455c790417ed0eadf0a4358480244f1cfb72.tar.gz
Export range functions directly
Useful for getting the range without changing the editing mode.
-rw-r--r--pairs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/pairs.lua b/pairs.lua
index 6178eba..158f783 100644
--- a/pairs.lua
+++ b/pairs.lua
@@ -356,6 +356,8 @@ end)
M = {
map = {},
get_pair = get_delimiters,
+ get_range_inner = inner,
+ get_range_outer = outer,
prefix = {outer = "a", inner = "i", opening = "[", closing = "]"},
}