Unnamed repository; edit this file 'description' to name the repository.
erlang: Use Edoc style auto-pairs
Specifically this changes backtic's right-hand-side pair character to single-quote which is the syntax for inline and block code in Edoc.
Michael Davis 2022-08-31
parent 00d88e5 · commit acf3599
-rw-r--r--languages.toml8
1 files changed, 8 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index d125ae88..264f0a42 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1118,6 +1118,14 @@ comment-token = "%%"
indent = { tab-width = 4, unit = " " }
language-server = { command = "erlang_ls" }
+[language.auto-pairs]
+'(' = ')'
+'{' = '}'
+'[' = ']'
+'"' = '"'
+"'" = "'"
+'`' = "'"
+
[[grammar]]
name = "erlang"
source = { git = "https://github.com/the-mikedavis/tree-sitter-erlang", rev = "0e7d677d11a7379686c53c616825714ccb728059" }