diff options
author | Georgi Kirilov <> | 2020-11-22 15:10:49 +0200 |
---|---|---|
committer | Georgi Kirilov <> | 2023-10-04 18:24:59 +0800 |
commit | ca994a0d12bcbaa850718c55b4422a0fbaf0280a (patch) | |
tree | e317f27849073a1ba9ade74fff93425a07a3c8e1 | |
parent | dff91d12cc11c317bdb3d28bf835b3a31653375d (diff) | |
download | vis-pairs-ca994a0d12bcbaa850718c55b4422a0fbaf0280a.tar.gz |
XML tag blocks everywhere, HTML where appropriate
-rw-r--r-- | pairs.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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}, |