There is also `.C` and `.H` (capital), but I can't imagine they are very popular and I'd be worried clashing with C. Release Notes: - Added more path suffixes recognized as C++
14 lines
640 B
TOML
14 lines
640 B
TOML
name = "C++"
|
|
grammar = "cpp"
|
|
path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "ipp"]
|
|
line_comments = ["// "]
|
|
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"] },
|
|
]
|