Skip to content

Commit

Permalink
feat: support triple quotes in Scala (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
gAbelli authored Jan 8, 2025
1 parent bd10c49 commit 9a7fdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-autopairs/rules/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ local function setup(opt)
Rule("<!--", "-->", { "html", "markdown" }):with_cr(cond.none()),
Rule("```", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }),
Rule("```.*$", "```", { "markdown", "vimwiki", "rmarkdown", "rmd", "pandoc" }):only_cr():use_regex(true),
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin" }):with_pair(cond.not_before_char('"', 3)),
Rule('"""', '"""', { "python", "elixir", "julia", "kotlin", "scala", "sbt" }):with_pair(cond.not_before_char('"', 3)),
Rule("'''", "'''", { "python" }):with_pair(cond.not_before_char('"', 3)),
quote("'", "'", { "-rust", "-nix" })
:with_pair(function(opts)
Expand Down

0 comments on commit 9a7fdc3

Please sign in to comment.