1name = "C++"
2grammar = "cpp"
3path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"]
4line_comments = ["// ", "/// ", "//! "]
5decrease_indent_patterns = [
6 { pattern = "^\\s*\\{.*\\}?\\s*$", valid_after = ["if", "for", "while", "do", "switch", "else"] },
7 { pattern = "^\\s*else\\s*$", valid_after = ["if"] }
8]
9autoclose_before = ";:.,=}])>"
10brackets = [
11 { start = "{", end = "}", close = true, newline = true },
12 { start = "[", end = "]", close = true, newline = true },
13 { start = "(", end = ")", close = true, newline = true },
14 { start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
15 { start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
16 { start = "/*", end = " */", close = true, newline = false, not_in = ["string", "comment"] },
17]
18debuggers = ["CodeLLDB", "GDB"]
19documentation_comment = { start = "/*", prefix = "* ", end = "*/", tab_size = 1 }