Skip to content

Commit 9a7fdc3

Browse files
authored
feat: support triple quotes in Scala (#489)
1 parent bd10c49 commit 9a7fdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-autopairs/rules/basic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ local function setup(opt)
4343
Rule("<!--", "-->", { "html", "markdown" }):with_cr(cond.none()),
4444
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }),
4545
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }):only_cr():use_regex(true),
46-
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin" }):with_pair(cond.not_before_char('"', 3)),
46+
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin", "scala", "sbt" }):with_pair(cond.not_before_char('"', 3)),
4747
Rule("'''", "'''", { "python" }):with_pair(cond.not_before_char('"', 3)),
4848
quote("'", "'", { "-rust", "-nix" })
4949
:with_pair(function(opts)

0 commit comments

Comments
 (0)