This way, a bracket pair that is disabled in a given scope can still be skipped, if it was auto-closed before that scope existed.
13 lines
587 B
TOML
13 lines
587 B
TOML
name = "C++"
|
|
path_suffixes = ["cc", "cpp", "h", "hpp"]
|
|
line_comment = "// "
|
|
autoclose_before = ";:.,=}])>"
|
|
brackets = [
|
|
{ start = "{", end = "}", close = true, newline = true },
|
|
{ start = "[", end = "]", close = true, newline = true },
|
|
{ start = "(", end = ")", close = true, newline = true },
|
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
|
{ start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
|
|
{ start = "/*", end = " */", close = true, newline = false, not_in = ["string", "comment"] },
|
|
]
|