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