Skip to content

Commit

Permalink
Disable auto-pairing ' by default in OCaml (#6381)
Browse files Browse the repository at this point in the history
Since OCaml uses 'a syntax for type variables, the editor shouldn't insert a
second ', for the same reason as Rust.
  • Loading branch information
pithlessly committed Mar 20, 2023
1 parent 05e7862 commit 78613ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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" }
Expand Down

0 comments on commit 78613ac

Please sign in to comment.