From f55f1f8b439143309bff66a171fd8124d5df1c4d Mon Sep 17 00:00:00 2001 From: rhogenson <05huvhec@duck.com> Date: Sun, 6 Oct 2024 19:56:54 -0700 Subject: [PATCH] Remove auto-pair for single quote in SML. (#11838) Similar to OCaml and other ML languages, single quote is a normal character that can appear in identifiers and is also used in type parameters. It is not used for strings or character literals, which both use double quote. Co-authored-by: Rose Hogenson --- languages.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/languages.toml b/languages.toml index 9be8a0170..72b976dd0 100644 --- a/languages.toml +++ b/languages.toml @@ -2482,6 +2482,12 @@ injection-regex = "sml" file-types = ["sml"] block-comment-tokens = { start = "(*", end = "*)" } +[language.auto-pairs] +'(' = ')' +'{' = '}' +'[' = ']' +'"' = '"' + [[grammar]] name = "sml" source = { git = "https://github.com/Giorbo/tree-sitter-sml", rev = "bd4055d5554614520d4a0706b34dc0c317c6b608" }