mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
languages: Add support for detecting libstdc++ headers (#48250)
https://github.com/zed-industries/zed/pull/47443#issuecomment-3834807752 Support detect libstdc++ headers <img width="1335" height="830" src="https://github.com/user-attachments/assets/4a8b8376-029b-41c5-a53b-d1a02a061818" /> Release Notes: - N/A
This commit is contained in:
parent
f565fb8750
commit
3f8bc2d4b7
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ name = "C++"
|
|||
grammar = "cpp"
|
||||
path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"]
|
||||
line_comments = ["// ", "/// ", "//! "]
|
||||
first_line_pattern = '\/\/\s*-\*-\s*C\+\+\s*-\*-'
|
||||
first_line_pattern = '\/\/\s*(<.*>\s)?-\*-\s*C\+\+\s*-\*-'
|
||||
decrease_indent_patterns = [
|
||||
{ pattern = "^\\s*\\{.*\\}?\\s*$", valid_after = ["if", "for", "while", "do", "switch", "else"] },
|
||||
{ pattern = "^\\s*else\\b", valid_after = ["if"] }
|
||||
|
|
|
|||
Loading…
Reference in a new issue