@@ -36,25 +36,30 @@ local function setup(opt)
3636 Rule("```.*$", "```", { 'markdown', 'vimwiki', 'rmarkdown', 'rmd', 'pandoc' })
3737 :only_cr()
3838 :use_regex(true),
39− Rule('"""', '"""', { 'python', 'elixir', 'julia', 'kotlin' }),
40− Rule("'''", "'''", { 'python' }),
39+ Rule('"""', '"""', { 'python', 'elixir', 'julia', 'kotlin' })
40+ :with_pair(cond.not_before_char('"', 3)),
41+ Rule("'''", "'''", { 'python' })
42+ :with_pair(cond.not_before_char('"', 3)),
4143 basic("'", "'", '-rust')
4244 :with_pair(cond.not_before_regex("%w")),
4345 basic("'", "'", 'rust')
4446 :with_pair(cond.not_before_regex("[%w<&]"))
4547 :with_pair(cond.not_after_text(">")),
4648 basic("`", "`"),
47− basic('"', '"','-vim'),
48− basic('"', '"','vim')
49+ basic('"', '"', '-vim'),
50+ basic('"', '"', 'vim')
4951 :with_pair(cond.not_before_regex("^%s*$", -1)),
5052 bracket("(", ")"),
5153 bracket("[", "]"),
5254 bracket("{", "}"),
5355 Rule(">[%w%s]*$", "^%s*</",
54− { 'html', 'typescript', 'typescriptreact', 'javascript' , 'javascriptreact', 'svelte', 'vue', 'xml', 'rescript'})
56+ { 'html', 'typescript', 'typescriptreact', 'javascript', 'javascriptreact', 'svelte', 'vue', 'xml',
57+ 'rescript' })
5558 :only_cr()
5659 :use_regex(true)
5760 }
5861 return rules
5962end
63+
6064return { setup = setup }
65+