aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpithlessly2023-03-20 17:51:26 +0000
committerGitHub2023-03-20 17:51:26 +0000
commit78613ac0f2d54a8c9474430ca1ee994a6d55a37b (patch)
tree27fc87ee5f88dcfa87950a9c0b563e5d87714cec
parent05e7862e8fc34e2e4dd745f9dc95c1b1ab0dc20f (diff)
Disable auto-pairing ' by default in OCaml (#6381)
Since OCaml uses 'a syntax for type variables, the editor shouldn't insert a second ', for the same reason as Rust.
-rw-r--r--languages.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 73114a19..5a42d7a4 100644
--- a/languages.toml
+++ b/languages.toml
@@ -775,6 +775,13 @@ comment-token = "(**)"
language-server = { command = "ocamllsp" }
indent = { tab-width = 2, unit = " " }
+[language.auto-pairs]
+'(' = ')'
+'{' = '}'
+'[' = ']'
+'"' = '"'
+'`' = '`'
+
[[grammar]]
name = "ocaml"
source = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "23d419ba45789c5a47d31448061557716b02750a", subpath = "ocaml" }
@@ -789,6 +796,13 @@ comment-token = "(**)"
language-server = { command = "ocamllsp" }
indent = { tab-width = 2, unit = " " }
+[language.auto-pairs]
+'(' = ')'
+'{' = '}'
+'[' = ']'
+'"' = '"'
+'`' = '`'
+
[[grammar]]
name = "ocaml-interface"
source = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "23d419ba45789c5a47d31448061557716b02750a", subpath = "interface" }