Add asterisk on new line in multiline comments for Go, Rust, C, and C++. While `*` is entirely for style. There's no actual need for it. It can be disabled from setting. More: https://doc.rust-lang.org/rust-by-example/hello/comment.html <img width="491" alt="image" src="https://github.com/user-attachments/assets/385b1eb5-be81-446c-b7cf-34165d6b384a" /> Release Notes: - Added automatic asterisk insertion for new lines in multiline comments for Go, Rust, C, and C++. This can be disable by setting `extend_comment_on_newline` to `false`.
20 lines
1.0 KiB
TOML
20 lines
1.0 KiB
TOML
name = "Rust"
|
|
grammar = "rust"
|
|
path_suffixes = ["rs"]
|
|
line_comments = ["// ", "/// ", "//! "]
|
|
autoclose_before = ";:.,=}])>"
|
|
brackets = [
|
|
{ start = "{", end = "}", close = true, newline = true },
|
|
{ start = "r#\"", end = "\"#", close = true, newline = true, not_in = ["string", "comment"] },
|
|
{ start = "r##\"", end = "\"##", close = true, newline = true, not_in = ["string", "comment"] },
|
|
{ start = "r###\"", end = "\"###", close = true, newline = true, not_in = ["string", "comment"] },
|
|
{ start = "[", end = "]", close = true, newline = true },
|
|
{ start = "(", end = ")", close = true, newline = true },
|
|
{ start = "<", end = ">", close = false, newline = true, not_in = ["string", "comment"] },
|
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
|
{ start = "/*", end = " */", close = true, newline = false, not_in = ["string", "comment"] },
|
|
]
|
|
collapsed_placeholder = " /* ... */ "
|
|
debuggers = ["CodeLLDB", "GDB"]
|
|
documentation = { start = "/*", end = "*/", prefix = "* ", tab_size = 1 }
|