summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorgi Kirilov <>2020-11-22 15:10:49 +0200
committerGeorgi Kirilov <>2023-10-04 18:24:59 +0800
commitca994a0d12bcbaa850718c55b4422a0fbaf0280a (patch)
treee317f27849073a1ba9ade74fff93425a07a3c8e1
parentdff91d12cc11c317bdb3d28bf835b3a31653375d (diff)
downloadvis-pairs-ca994a0d12bcbaa850718c55b4422a0fbaf0280a.tar.gz
XML tag blocks everywhere, HTML where appropriate
-rw-r--r--pairs.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/pairs.lua b/pairs.lua
index 0d741ff..6178eba 100644
--- a/pairs.lua
+++ b/pairs.lua
@@ -328,8 +328,14 @@ vis.events.subscribe(vis.events.INIT, function()
local function any_pair(set, default) return {l.Cg(l.S(set), "s"), l.Cmt(l.Cb("s") * l.C(1), function(_, _, c1, c2) return builtin_textobjects[c1][2] == c2 end), builtin_textobjects[default]} end
local any_bracket = any_pair("({[", "(")
local presets = {
- html = {t = html_tag},
+ {t = xml_tag},
xml = {t = xml_tag},
+ html = {t = html_tag},
+ markdown = {t = html_tag},
+ asp = {t = html_tag},
+ jsp = {t = html_tag},
+ php = {t = html_tag},
+ rhtml = {t = html_tag},
scheme = {b = any_bracket},
lisp = {b = any_bracket},
clojure = {b = any_bracket},