1name = "Rust"
2grammar = "rust"
3path_suffixes = ["rs"]
4line_comments = ["// ", "/// ", "//! "]
5autoclose_before = ";:.,=}])>"
6brackets = [
7 { start = "{", end = "}", close = true, newline = true },
8 { start = "r#\"", end = "\"#", close = true, newline = true, not_in = ["string", "comment"] },
9 { start = "r##\"", end = "\"##", close = true, newline = true, not_in = ["string", "comment"] },
10 { start = "r###\"", end = "\"###", close = true, newline = true, not_in = ["string", "comment"] },
11 { start = "[", end = "]", close = true, newline = true },
12 { start = "(", end = ")", close = true, newline = true },
13 { start = "<", end = ">", close = false, newline = true, not_in = ["string", "comment"] },
14 { start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
15 { start = "/*", end = " */", close = true, newline = false, not_in = ["string", "comment"] },
16]
17collapsed_placeholder = " /* ... */ "
18debuggers = ["CodeLLDB", "GDB"]
19documentation_comment = { start = "/*", prefix = "* ", end = "*/", tab_size = 1 }
20ignored_import_segments = ["crate", "super"]
21import_path_strip_regex = "/(lib|mod)\\.rs$"