From ca994a0d12bcbaa850718c55b4422a0fbaf0280a Mon Sep 17 00:00:00 2001 From: Georgi Kirilov <> Date: Sun, 22 Nov 2020 15:10:49 +0200 Subject: XML tag blocks everywhere, HTML where appropriate --- pairs.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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}, -- cgit