on master help sign in
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.

commit78613ac0f2d54a8c9474430ca1ee994a6d55a37b authorpithlessly <79002325+pithlessly@users.noreply.github.com> dateMon 20 Mar 2023, 10:51 (4 years ago) parent05e7862
1 file changed+14
languages.toml+14
languages.toml+14
@@ -775,6 +775,13 @@ comment-token = "(**)"
775775language-server = { command = "ocamllsp" }
776776indent = { tab-width = 2, unit = " " }
777777
778+[language.auto-pairs]
779+'(' = ')'
780+'{' = '}'
781+'[' = ']'
782+'"' = '"'
783+'`' = '`'
784+
778785[[grammar]]
779786name = "ocaml"
780787source = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "23d419ba45789c5a47d31448061557716b02750a", subpath = "ocaml" }
@@ -789,6 +796,13 @@ comment-token = "(**)"
789796language-server = { command = "ocamllsp" }
790797indent = { tab-width = 2, unit = " " }
791798
799+[language.auto-pairs]
800+'(' = ')'
801+'{' = '}'
802+'[' = ']'
803+'"' = '"'
804+'`' = '`'
805+
792806[[grammar]]
793807name = "ocaml-interface"
794808source = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "23d419ba45789c5a47d31448061557716b02750a", subpath = "interface" }