{ "information_for_contributors": [ "This file has been converted from https://github.com/jeff-hykin/cpp-textmate-grammar/blob/master//syntaxes/cpp.tmLanguage.json", "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], "version": "https://github.com/jeff-hykin/cpp-textmate-grammar/commit/cb9cb59b32d0cb9e2cbbca1a9cdb62769fc2ca8e", "name": "C++", "scopeName": "source.cpp", "patterns": [ { "include": "#ever_present_context" }, { "include": "#constructor_root" }, { "include": "#destructor_root" }, { "include": "#function_definition" }, { "include": "#operator_overload" }, { "include": "#using_namespace" }, { "include": "#type_alias" }, { "include": "#using_name" }, { "include": "#namespace_alias" }, { "include": "#namespace_block" }, { "include": "#extern_block" }, { "include": "#typedef_class" }, { "include": "#typedef_struct" }, { "include": "#typedef_union" }, { "include": "#typedef_keyword" }, { "include": "#standard_declares" }, { "include": "#class_block" }, { "include": "#struct_block" }, { "include": "#union_block" }, { "include": "#enum_block" }, { "include": "#template_isolated_definition" }, { "include": "#template_definition" }, { "include": "#access_control_keywords" }, { "include": "#block" }, { "include": "#static_assert" }, { "include": "#assembly" }, { "include": "#function_pointer" }, { "include": "#evaluation_context" } ], "repository": { "inline_comment": { "match": "(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/))", "captures": { "1": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "2": { "name": "comment.block.cpp" }, "3": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "semicolon": { "match": ";", "name": "punctuation.terminator.statement.cpp" }, "comma": { "match": ",", "name": "punctuation.separator.delimiter.comma.cpp" }, "assignment_operator": { "match": "\\=", "name": "keyword.operator.assignment.cpp" }, "ever_present_context": { "patterns": [ { "include": "#single_line_macro" }, { "include": "#preprocessor_rule_enabled" }, { "include": "#preprocessor_rule_disabled" }, { "include": "#preprocessor_rule_conditional" }, { "include": "#macro_argument" }, { "include": "#meta_preprocessor_macro" }, { "include": "#meta_preprocessor_diagnostic" }, { "include": "#meta_preprocessor_include" }, { "include": "#pragma_mark" }, { "include": "#meta_preprocessor_line" }, { "include": "#meta_preprocessor_undef" }, { "include": "#meta_preprocessor_pragma" }, { "include": "#hacky_fix_for_stray_directive" }, { "include": "#comments" }, { "include": "#line_continuation_character" } ] }, "function_body_context": { "patterns": [ { "include": "#ever_present_context" }, { "include": "#using_namespace" }, { "include": "#type_alias" }, { "include": "#using_name" }, { "include": "#namespace_alias" }, { "include": "#typedef_class" }, { "include": "#typedef_struct" }, { "include": "#typedef_union" }, { "include": "#typedef_keyword" }, { "include": "#standard_declares" }, { "include": "#class_block" }, { "include": "#struct_block" }, { "include": "#union_block" }, { "include": "#enum_block" }, { "include": "#access_control_keywords" }, { "include": "#block" }, { "include": "#static_assert" }, { "include": "#assembly" }, { "include": "#function_pointer" }, { "include": "#switch_statement" }, { "include": "#goto_statement" }, { "include": "#evaluation_context" }, { "include": "#label" } ] }, "evaluation_context": { "patterns": [ { "include": "#ever_present_context" }, { "include": "#string_context" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#method_access" }, { "include": "#member_access" }, { "include": "#predefined_macros" }, { "include": "#operators" }, { "include": "#memory_operators" }, { "include": "#wordlike_operators" }, { "include": "#type_casting_operators" }, { "include": "#control_flow_keywords" }, { "include": "#exception_keywords" }, { "include": "#the_this_keyword" }, { "include": "#language_constants" }, { "include": "#builtin_storage_type_initilizer" }, { "include": "#qualifiers_and_specifiers_post_parameters" }, { "include": "#functional_specifiers_pre_parameters" }, { "include": "#storage_types" }, { "include": "#misc_storage_modifiers" }, { "include": "#lambdas" }, { "include": "#attributes_context" }, { "include": "#parentheses" }, { "include": "#function_call" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#square_brackets" }, { "include": "#empty_square_brackets" }, { "include": "#semicolon" }, { "include": "#comma" } ] }, "function_parameter_context": { "patterns": [ { "include": "#ever_present_context" }, { "include": "#parameter" }, { "include": "#comma" } ] }, "template_definition_context": { "patterns": [ { "include": "#scope_resolution_template_definition_inner_generated" }, { "include": "#template_definition_argument" }, { "include": "#template_argument_defaulted" }, { "include": "#template_call_innards" }, { "include": "#evaluation_context" } ] }, "template_call_context": { "patterns": [ { "include": "#ever_present_context" }, { "include": "#template_call_range" }, { "include": "#storage_types" }, { "include": "#language_constants" }, { "include": "#scope_resolution_template_call_inner_generated" }, { "include": "#operators" }, { "include": "#number_literal" }, { "include": "#string_context" }, { "include": "#comma_in_template_argument" }, { "include": "#qualified_type" } ] }, "attributes_context": { "patterns": [ { "include": "#cpp_attributes" }, { "include": "#gcc_attributes" }, { "include": "#ms_attributes" }, { "include": "#alignas_attribute" } ] }, "storage_types": { "patterns": [ { "include": "#storage_specifiers" }, { "include": "#primitive_types" }, { "include": "#non_primitive_types" }, { "include": "#pthread_types" }, { "include": "#posix_reserved_types" }, { "include": "#decltype" }, { "include": "#typename" } ] }, "block_comment": { "name": "comment.block.cpp", "begin": "\\s*+(\\/\\*)", "beginCaptures": { "1": { "name": "punctuation.definition.comment.begin.cpp" } }, "end": "(\\*\\/)", "endCaptures": { "1": { "name": "punctuation.definition.comment.end.cpp" } } }, "line_comment": { "name": "comment.line.double-slash.cpp", "begin": "\\s*+(\\/\\/)", "beginCaptures": { "1": { "name": "punctuation.definition.comment.cpp" } }, "end": "(?<=\\n)(?[#;\\/=*C~]+)(?![#;\\/=*C~]))\\s*.+\\s*\\8\\s*(?:\\n|$)))|(^\\s*((\\/\\*)\\s*?((?>[#;\\/=*C~]+)(?![#;\\/=*C~]))\\s*.+\\s*\\8\\s*\\*\\/)))", "captures": { "1": { "name": "meta.toc-list.banner.double-slash.cpp" }, "2": { "name": "comment.line.double-slash.cpp" }, "3": { "name": "punctuation.definition.comment.cpp" }, "4": { "name": "meta.banner.character.cpp" }, "5": { "name": "meta.toc-list.banner.block.cpp" }, "6": { "name": "comment.line.block.cpp" }, "7": { "name": "punctuation.definition.comment.cpp" }, "8": { "name": "meta.banner.character.cpp" } } }, "comments": { "patterns": [ { "include": "#emacs_file_banner" }, { "include": "#block_comment" }, { "include": "#line_comment" } ] }, "number_literal": { "begin": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.other.decltype.cpp storage.type.decltype.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.decltype.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.decltype.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "decltype": { "contentName": "meta.arguments.decltype.cpp", "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.other.decltype.cpp storage.type.decltype.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.decltype.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.decltype.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "pthread_types": { "match": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(((?:private|protected|public))\\s*(:))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "storage.type.modifier.access.control.$6.cpp" }, "7": { "name": "punctuation.separator.colon.access.control.cpp" } } }, "exception_keywords": { "match": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:(delete)\\s*(\\[\\])|(delete))|(new))(?!\\w))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "keyword.operator.wordlike.cpp" }, "6": { "name": "keyword.operator.delete.array.cpp" }, "7": { "name": "keyword.operator.delete.array.bracket.cpp" }, "8": { "name": "keyword.operator.delete.cpp" }, "9": { "name": "keyword.operator.new.cpp" } } }, "control_flow_keywords": { "match": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)", "captures": { "1": { "name": "keyword.control.goto.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.label.call.cpp" } } }, "label": { "match": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(:)", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "entity.name.label.cpp" }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "name": "punctuation.separator.label.cpp" } } }, "default_statement": { "name": "meta.conditional.case.cpp", "begin": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "punctuation.section.parens.begin.bracket.round.conditional.switch.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.parens.end.bracket.round.conditional.switch.cpp" } }, "patterns": [ { "include": "#evaluation_context" }, { "include": "#c_conditional_context" } ] }, "switch_statement": { "name": "meta.block.switch.cpp", "begin": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.switch.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.switch.cpp" } }, "patterns": [ { "include": "#switch_conditional_parentheses" }, { "include": "$base" } ] }, { "name": "meta.body.switch.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.switch.cpp" } }, "patterns": [ { "include": "#default_statement" }, { "include": "#case_statement" }, { "include": "$base" }, { "include": "#block_innards" } ] }, { "name": "meta.tail.switch.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "cpp_attributes": { "name": "support.other.attribute.cpp", "begin": "(\\[\\[)", "beginCaptures": { "1": { "name": "punctuation.section.attribute.begin.cpp" } }, "end": "(\\]\\])", "endCaptures": { "1": { "name": "punctuation.section.attribute.end.cpp" } }, "patterns": [ { "include": "#attributes_context" }, { "begin": "\\(", "end": "\\)", "patterns": [ { "include": "#attributes_context" }, { "include": "#string_context_c" } ] }, { "match": "(using)\\s+((?]*|[^>]*+<[^>]*+>)++>\\s*", "captures": { "0": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] } } }, "template_call_range": { "name": "meta.template.call.cpp", "begin": "(<)", "beginCaptures": { "1": { "name": "punctuation.section.angle-brackets.begin.template.call.cpp" } }, "end": "(>)", "endCaptures": { "1": { "name": "punctuation.section.angle-brackets.end.template.call.cpp" } }, "patterns": [ { "include": "#template_call_context" } ] }, "template_isolated_definition": { "match": "(?\\s*$)", "captures": { "1": { "name": "storage.type.template.cpp" }, "2": { "name": "punctuation.section.angle-brackets.start.template.definition.cpp" }, "3": { "name": "meta.template.definition.cpp", "patterns": [ { "include": "#template_definition_context" } ] }, "4": { "name": "punctuation.section.angle-brackets.end.template.definition.cpp" } } }, "template_definition": { "name": "meta.template.definition.cpp", "begin": "(?)", "endCaptures": { "1": { "name": "punctuation.section.angle-brackets.end.template.definition.cpp" } }, "patterns": [ { "begin": "((?<=\\w)\\s*<)", "beginCaptures": { "1": { "name": "punctuation.section.angle-brackets.begin.template.call.cpp" } }, "end": "(>)", "endCaptures": { "1": { "name": "punctuation.section.angle-brackets.begin.template.call.cpp" } }, "patterns": [ { "include": "#template_call_context" } ] }, { "include": "#template_definition_context" } ] }, "template_argument_defaulted": { "match": "(?<=<|,)\\s*((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s+)*)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*([=])", "captures": { "1": { "name": "storage.type.template.cpp" }, "2": { "name": "entity.name.type.template.cpp" }, "3": { "name": "keyword.operator.assignment.cpp" } } }, "template_definition_argument": { "match": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)|((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s+)+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*))|((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*(\\.\\.\\.)\\s*((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*))\\s*(?:(,)|(?=>|$))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "storage.type.template.argument.$5.cpp" }, "6": { "patterns": [ { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "storage.type.template.argument.$0.cpp" } ] }, "7": { "name": "entity.name.type.template.cpp" }, "8": { "name": "storage.type.template.cpp" }, "9": { "name": "ellipses.cpp punctuation.vararg-ellipses.template.definition.cpp" }, "10": { "name": "entity.name.type.template.cpp" }, "11": { "name": "punctuation.separator.delimiter.comma.template.argument.cpp" } } }, "scope_resolution": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] } } }, "scope_resolution_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" } } }, "scope_resolution_template_call": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_template_call_inner_generated" } ] } } }, "scope_resolution_template_call_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_template_call_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.template.call.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.call.cpp" } } }, "scope_resolution_template_definition": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_template_definition_inner_generated" } ] } } }, "scope_resolution_template_definition_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_template_definition_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.template.definition.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.definition.cpp" } } }, "scope_resolution_function_call": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_function_call_inner_generated" } ] } } }, "scope_resolution_function_call_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_function_call_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.function.call.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.call.cpp" } } }, "scope_resolution_function_definition": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_function_definition_inner_generated" } ] } } }, "scope_resolution_function_definition_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_function_definition_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.function.definition.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.cpp" } } }, "scope_resolution_namespace_alias": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_namespace_alias_inner_generated" } ] } } }, "scope_resolution_namespace_alias_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_namespace_alias_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.namespace.alias.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.alias.cpp" } } }, "scope_resolution_namespace_using": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_namespace_using_inner_generated" } ] } } }, "scope_resolution_namespace_using_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_namespace_using_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.namespace.using.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.using.cpp" } } }, "scope_resolution_namespace_block": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_namespace_block_inner_generated" } ] } } }, "scope_resolution_namespace_block_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_namespace_block_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.namespace.block.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.block.cpp" } } }, "scope_resolution_parameter": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_parameter_inner_generated" } ] } } }, "scope_resolution_parameter_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_parameter_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.parameter.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.parameter.cpp" } } }, "scope_resolution_function_definition_operator_overload": { "match": "(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+", "captures": { "0": { "patterns": [ { "include": "#scope_resolution_function_definition_operator_overload_inner_generated" } ] } } }, "scope_resolution_function_definition_operator_overload_inner_generated": { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::)", "captures": { "1": { "patterns": [ { "include": "#scope_resolution_function_definition_operator_overload_inner_generated" } ] }, "2": { "name": "entity.name.scope-resolution.function.definition.operator-overload.cpp" }, "3": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "4": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.operator-overload.cpp" } } }, "qualified_type": { "match": "\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])", "captures": { "0": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "1": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "12": { "name": "entity.name.scope-resolution.cpp" }, "13": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "14": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "15": { "patterns": [ { "include": "#inline_comment" } ] }, "16": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "17": { "name": "comment.block.cpp" }, "18": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "19": { "name": "entity.name.type.cpp" } } }, "simple_type": { "match": "(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?", "captures": { "1": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "2": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "13": { "name": "entity.name.scope-resolution.cpp" }, "14": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "15": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "entity.name.type.cpp" }, "21": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "22": { "patterns": [ { "include": "#inline_comment" } ] }, "23": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "24": { "name": "comment.block.cpp" }, "25": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "26": { "patterns": [ { "include": "#inline_comment" } ] }, "27": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "28": { "name": "comment.block.cpp" }, "29": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "type_alias": { "match": "(using)\\s*(?!namespace)(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))\\s*(\\=)\\s*((?:typename)?)\\s*((?:(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))|(.*(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?:(\\[)(\\w*)(\\])\\s*)?\\s*(?:(;)|\\n)", "captures": { "1": { "name": "keyword.other.using.directive.cpp" }, "2": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "3": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "4": { "patterns": [ { "include": "#inline_comment" } ] }, "5": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "6": { "name": "comment.block.cpp" }, "7": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "13": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "14": { "name": "entity.name.scope-resolution.cpp" }, "15": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "16": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "17": { "patterns": [ { "include": "#inline_comment" } ] }, "18": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "19": { "name": "comment.block.cpp" }, "20": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "21": { "name": "entity.name.type.cpp" }, "22": { "name": "keyword.operator.assignment.cpp" }, "23": { "name": "keyword.other.typename.cpp" }, "24": { "patterns": [ { "include": "#storage_specifiers" } ] }, "25": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "26": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "27": { "patterns": [ { "include": "#inline_comment" } ] }, "28": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "29": { "name": "comment.block.cpp" }, "30": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "31": { "patterns": [ { "include": "#inline_comment" } ] }, "32": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "33": { "name": "comment.block.cpp" }, "34": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "36": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "37": { "name": "entity.name.scope-resolution.cpp" }, "38": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "39": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "40": { "patterns": [ { "include": "#inline_comment" } ] }, "41": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "42": { "name": "comment.block.cpp" }, "43": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "44": { "name": "entity.name.type.cpp" }, "45": { "name": "meta.declaration.type.alias.value.unknown.cpp", "patterns": [ { "include": "#evaluation_context" } ] }, "46": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "47": { "patterns": [ { "include": "#inline_comment" } ] }, "48": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "49": { "name": "comment.block.cpp" }, "50": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "51": { "patterns": [ { "include": "#inline_comment" } ] }, "52": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "53": { "name": "comment.block.cpp" }, "54": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "55": { "patterns": [ { "include": "#inline_comment" } ] }, "56": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "57": { "name": "comment.block.cpp" }, "58": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "59": { "name": "punctuation.definition.begin.bracket.square.cpp" }, "60": { "patterns": [ { "include": "#evaluation_context" } ] }, "61": { "name": "punctuation.definition.end.bracket.square.cpp" }, "62": { "name": "punctuation.terminator.statement.cpp" } }, "name": "meta.declaration.type.alias.cpp" }, "typename": { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))", "captures": { "1": { "name": "storage.modifier.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "11": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "21": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "22": { "name": "entity.name.scope-resolution.cpp" }, "23": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "24": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "name": "entity.name.type.cpp" } } }, "predefined_macros": { "patterns": [ { "match": "\\b__cplusplus\\b", "name": "entity.name.other.preprocessor.macro.predefined.__cplusplus.cpp" }, { "match": "\\b__DATE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__DATE__.cpp" }, { "match": "\\b__FILE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FILE__.cpp" }, { "match": "\\b__LINE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__LINE__.cpp" }, { "match": "\\b__STDC__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__STDC__.cpp" }, { "match": "\\b__STDC_HOSTED__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__STDC_HOSTED__.cpp" }, { "match": "\\b__STDC_NO_COMPLEX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__STDC_NO_COMPLEX__.cpp" }, { "match": "\\b__STDC_VERSION__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__STDC_VERSION__.cpp" }, { "match": "\\b__STDCPP_THREADS__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__STDCPP_THREADS__.cpp" }, { "match": "\\b__TIME__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__TIME__.cpp" }, { "match": "\\bNDEBUG\\b", "name": "entity.name.other.preprocessor.macro.predefined.NDEBUG.cpp" }, { "match": "\\b__OBJC__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__OBJC__.cpp" }, { "match": "\\b__ASSEMBLER__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__ASSEMBLER__.cpp" }, { "match": "\\b__ATOM__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__ATOM__.cpp" }, { "match": "\\b__AVX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__AVX__.cpp" }, { "match": "\\b__AVX2__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__AVX2__.cpp" }, { "match": "\\b_CHAR_UNSIGNED\\b", "name": "entity.name.other.preprocessor.macro.predefined._CHAR_UNSIGNED.cpp" }, { "match": "\\b__CLR_VER\\b", "name": "entity.name.other.preprocessor.macro.predefined.__CLR_VER.cpp" }, { "match": "\\b_CONTROL_FLOW_GUARD\\b", "name": "entity.name.other.preprocessor.macro.predefined._CONTROL_FLOW_GUARD.cpp" }, { "match": "\\b__COUNTER__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__COUNTER__.cpp" }, { "match": "\\b__cplusplus_cli\\b", "name": "entity.name.other.preprocessor.macro.predefined.__cplusplus_cli.cpp" }, { "match": "\\b__cplusplus_winrt\\b", "name": "entity.name.other.preprocessor.macro.predefined.__cplusplus_winrt.cpp" }, { "match": "\\b_CPPRTTI\\b", "name": "entity.name.other.preprocessor.macro.predefined._CPPRTTI.cpp" }, { "match": "\\b_CPPUNWIND\\b", "name": "entity.name.other.preprocessor.macro.predefined._CPPUNWIND.cpp" }, { "match": "\\b_DEBUG\\b", "name": "entity.name.other.preprocessor.macro.predefined._DEBUG.cpp" }, { "match": "\\b_DLL\\b", "name": "entity.name.other.preprocessor.macro.predefined._DLL.cpp" }, { "match": "\\b__FUNCDNAME__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FUNCDNAME__.cpp" }, { "match": "\\b__FUNCSIG__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FUNCSIG__.cpp" }, { "match": "\\b__FUNCTION__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FUNCTION__.cpp" }, { "match": "\\b_INTEGRAL_MAX_BITS\\b", "name": "entity.name.other.preprocessor.macro.predefined._INTEGRAL_MAX_BITS.cpp" }, { "match": "\\b__INTELLISENSE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTELLISENSE__.cpp" }, { "match": "\\b_ISO_VOLATILE\\b", "name": "entity.name.other.preprocessor.macro.predefined._ISO_VOLATILE.cpp" }, { "match": "\\b_KERNEL_MODE\\b", "name": "entity.name.other.preprocessor.macro.predefined._KERNEL_MODE.cpp" }, { "match": "\\b_M_AMD64\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_AMD64.cpp" }, { "match": "\\b_M_ARM\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_ARM.cpp" }, { "match": "\\b_M_ARM_ARMV7VE\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_ARM_ARMV7VE.cpp" }, { "match": "\\b_M_ARM_FP\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_ARM_FP.cpp" }, { "match": "\\b_M_ARM64\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_ARM64.cpp" }, { "match": "\\b_M_CEE\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_CEE.cpp" }, { "match": "\\b_M_CEE_PURE\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_CEE_PURE.cpp" }, { "match": "\\b_M_CEE_SAFE\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_CEE_SAFE.cpp" }, { "match": "\\b_M_FP_EXCEPT\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_FP_EXCEPT.cpp" }, { "match": "\\b_M_FP_FAST\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_FP_FAST.cpp" }, { "match": "\\b_M_FP_PRECISE\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_FP_PRECISE.cpp" }, { "match": "\\b_M_FP_STRICT\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_FP_STRICT.cpp" }, { "match": "\\b_M_IX86\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_IX86.cpp" }, { "match": "\\b_M_IX86_FP\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_IX86_FP.cpp" }, { "match": "\\b_M_X64\\b", "name": "entity.name.other.preprocessor.macro.predefined._M_X64.cpp" }, { "match": "\\b_MANAGED\\b", "name": "entity.name.other.preprocessor.macro.predefined._MANAGED.cpp" }, { "match": "\\b_MSC_BUILD\\b", "name": "entity.name.other.preprocessor.macro.predefined._MSC_BUILD.cpp" }, { "match": "\\b_MSC_EXTENSIONS\\b", "name": "entity.name.other.preprocessor.macro.predefined._MSC_EXTENSIONS.cpp" }, { "match": "\\b_MSC_FULL_VER\\b", "name": "entity.name.other.preprocessor.macro.predefined._MSC_FULL_VER.cpp" }, { "match": "\\b_MSC_VER\\b", "name": "entity.name.other.preprocessor.macro.predefined._MSC_VER.cpp" }, { "match": "\\b_MSVC_LANG\\b", "name": "entity.name.other.preprocessor.macro.predefined._MSVC_LANG.cpp" }, { "match": "\\b__MSVC_RUNTIME_CHECKS\\b", "name": "entity.name.other.preprocessor.macro.predefined.__MSVC_RUNTIME_CHECKS.cpp" }, { "match": "\\b_MT\\b", "name": "entity.name.other.preprocessor.macro.predefined._MT.cpp" }, { "match": "\\b_NATIVE_WCHAR_T_DEFINED\\b", "name": "entity.name.other.preprocessor.macro.predefined._NATIVE_WCHAR_T_DEFINED.cpp" }, { "match": "\\b_OPENMP\\b", "name": "entity.name.other.preprocessor.macro.predefined._OPENMP.cpp" }, { "match": "\\b_PREFAST\\b", "name": "entity.name.other.preprocessor.macro.predefined._PREFAST.cpp" }, { "match": "\\b__TIMESTAMP__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__TIMESTAMP__.cpp" }, { "match": "\\b_VC_NO_DEFAULTLIB\\b", "name": "entity.name.other.preprocessor.macro.predefined._VC_NO_DEFAULTLIB.cpp" }, { "match": "\\b_WCHAR_T_DEFINED\\b", "name": "entity.name.other.preprocessor.macro.predefined._WCHAR_T_DEFINED.cpp" }, { "match": "\\b_WIN32\\b", "name": "entity.name.other.preprocessor.macro.predefined._WIN32.cpp" }, { "match": "\\b_WIN64\\b", "name": "entity.name.other.preprocessor.macro.predefined._WIN64.cpp" }, { "match": "\\b_WINRT_DLL\\b", "name": "entity.name.other.preprocessor.macro.predefined._WINRT_DLL.cpp" }, { "match": "\\b_ATL_VER\\b", "name": "entity.name.other.preprocessor.macro.predefined._ATL_VER.cpp" }, { "match": "\\b_MFC_VER\\b", "name": "entity.name.other.preprocessor.macro.predefined._MFC_VER.cpp" }, { "match": "\\b__GFORTRAN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GFORTRAN__.cpp" }, { "match": "\\b__GNUC__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GNUC__.cpp" }, { "match": "\\b__GNUC_MINOR__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GNUC_MINOR__.cpp" }, { "match": "\\b__GNUC_PATCHLEVEL__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GNUC_PATCHLEVEL__.cpp" }, { "match": "\\b__GNUG__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GNUG__.cpp" }, { "match": "\\b__STRICT_ANSI__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__STRICT_ANSI__.cpp" }, { "match": "\\b__BASE_FILE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__BASE_FILE__.cpp" }, { "match": "\\b__INCLUDE_LEVEL__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INCLUDE_LEVEL__.cpp" }, { "match": "\\b__ELF__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__ELF__.cpp" }, { "match": "\\b__VERSION__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__VERSION__.cpp" }, { "match": "\\b__OPTIMIZE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__OPTIMIZE__.cpp" }, { "match": "\\b__OPTIMIZE_SIZE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__OPTIMIZE_SIZE__.cpp" }, { "match": "\\b__NO_INLINE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__NO_INLINE__.cpp" }, { "match": "\\b__GNUC_STDC_INLINE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GNUC_STDC_INLINE__.cpp" }, { "match": "\\b__CHAR_UNSIGNED__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__CHAR_UNSIGNED__.cpp" }, { "match": "\\b__WCHAR_UNSIGNED__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WCHAR_UNSIGNED__.cpp" }, { "match": "\\b__REGISTER_PREFIX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__REGISTER_PREFIX__.cpp" }, { "match": "\\b__REGISTER_PREFIX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__REGISTER_PREFIX__.cpp" }, { "match": "\\b__SIZE_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZE_TYPE__.cpp" }, { "match": "\\b__PTRDIFF_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__PTRDIFF_TYPE__.cpp" }, { "match": "\\b__WCHAR_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WCHAR_TYPE__.cpp" }, { "match": "\\b__WINT_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WINT_TYPE__.cpp" }, { "match": "\\b__INTMAX_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTMAX_TYPE__.cpp" }, { "match": "\\b__UINTMAX_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINTMAX_TYPE__.cpp" }, { "match": "\\b__SIG_ATOMIC_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIG_ATOMIC_TYPE__.cpp" }, { "match": "\\b__INT8_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT8_TYPE__.cpp" }, { "match": "\\b__INT16_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT16_TYPE__.cpp" }, { "match": "\\b__INT32_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT32_TYPE__.cpp" }, { "match": "\\b__INT64_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT64_TYPE__.cpp" }, { "match": "\\b__UINT8_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT8_TYPE__.cpp" }, { "match": "\\b__UINT16_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT16_TYPE__.cpp" }, { "match": "\\b__UINT32_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT32_TYPE__.cpp" }, { "match": "\\b__UINT64_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT64_TYPE__.cpp" }, { "match": "\\b__INT_LEAST8_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST8_TYPE__.cpp" }, { "match": "\\b__INT_LEAST16_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST16_TYPE__.cpp" }, { "match": "\\b__INT_LEAST32_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST32_TYPE__.cpp" }, { "match": "\\b__INT_LEAST64_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST64_TYPE__.cpp" }, { "match": "\\b__UINT_LEAST8_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST8_TYPE__.cpp" }, { "match": "\\b__UINT_LEAST16_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST16_TYPE__.cpp" }, { "match": "\\b__UINT_LEAST32_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST32_TYPE__.cpp" }, { "match": "\\b__UINT_LEAST64_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST64_TYPE__.cpp" }, { "match": "\\b__INT_FAST8_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST8_TYPE__.cpp" }, { "match": "\\b__INT_FAST16_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST16_TYPE__.cpp" }, { "match": "\\b__INT_FAST32_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST32_TYPE__.cpp" }, { "match": "\\b__INT_FAST64_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST64_TYPE__.cpp" }, { "match": "\\b__UINT_FAST8_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST8_TYPE__.cpp" }, { "match": "\\b__UINT_FAST16_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST16_TYPE__.cpp" }, { "match": "\\b__UINT_FAST32_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST32_TYPE__.cpp" }, { "match": "\\b__UINT_FAST64_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST64_TYPE__.cpp" }, { "match": "\\b__INTPTR_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTPTR_TYPE__.cpp" }, { "match": "\\b__UINTPTR_TYPE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINTPTR_TYPE__.cpp" }, { "match": "\\b__CHAR_BIT__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__CHAR_BIT__.cpp" }, { "match": "\\b__SCHAR_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SCHAR_MAX__.cpp" }, { "match": "\\b__WCHAR_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WCHAR_MAX__.cpp" }, { "match": "\\b__SHRT_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SHRT_MAX__.cpp" }, { "match": "\\b__INT_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_MAX__.cpp" }, { "match": "\\b__LONG_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__LONG_MAX__.cpp" }, { "match": "\\b__LONG_LONG_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__LONG_LONG_MAX__.cpp" }, { "match": "\\b__WINT_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WINT_MAX__.cpp" }, { "match": "\\b__SIZE_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZE_MAX__.cpp" }, { "match": "\\b__PTRDIFF_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__PTRDIFF_MAX__.cpp" }, { "match": "\\b__INTMAX_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTMAX_MAX__.cpp" }, { "match": "\\b__UINTMAX_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINTMAX_MAX__.cpp" }, { "match": "\\b__SIG_ATOMIC_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIG_ATOMIC_MAX__.cpp" }, { "match": "\\b__INT8_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT8_MAX__.cpp" }, { "match": "\\b__INT16_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT16_MAX__.cpp" }, { "match": "\\b__INT32_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT32_MAX__.cpp" }, { "match": "\\b__INT64_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT64_MAX__.cpp" }, { "match": "\\b__UINT8_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT8_MAX__.cpp" }, { "match": "\\b__UINT16_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT16_MAX__.cpp" }, { "match": "\\b__UINT32_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT32_MAX__.cpp" }, { "match": "\\b__UINT64_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT64_MAX__.cpp" }, { "match": "\\b__INT_LEAST8_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST8_MAX__.cpp" }, { "match": "\\b__INT_LEAST16_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST16_MAX__.cpp" }, { "match": "\\b__INT_LEAST32_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST32_MAX__.cpp" }, { "match": "\\b__INT_LEAST64_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST64_MAX__.cpp" }, { "match": "\\b__UINT_LEAST8_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST8_MAX__.cpp" }, { "match": "\\b__UINT_LEAST16_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST16_MAX__.cpp" }, { "match": "\\b__UINT_LEAST32_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST32_MAX__.cpp" }, { "match": "\\b__UINT_LEAST64_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_LEAST64_MAX__.cpp" }, { "match": "\\b__INT_FAST8_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST8_MAX__.cpp" }, { "match": "\\b__INT_FAST16_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST16_MAX__.cpp" }, { "match": "\\b__INT_FAST32_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST32_MAX__.cpp" }, { "match": "\\b__INT_FAST64_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST64_MAX__.cpp" }, { "match": "\\b__UINT_FAST8_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST8_MAX__.cpp" }, { "match": "\\b__UINT_FAST16_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST16_MAX__.cpp" }, { "match": "\\b__UINT_FAST32_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST32_MAX__.cpp" }, { "match": "\\b__UINT_FAST64_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINT_FAST64_MAX__.cpp" }, { "match": "\\b__INTPTR_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTPTR_MAX__.cpp" }, { "match": "\\b__UINTPTR_MAX__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__UINTPTR_MAX__.cpp" }, { "match": "\\b__WCHAR_MIN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WCHAR_MIN__.cpp" }, { "match": "\\b__WINT_MIN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WINT_MIN__.cpp" }, { "match": "\\b__SIG_ATOMIC_MIN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIG_ATOMIC_MIN__.cpp" }, { "match": "\\b__SCHAR_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SCHAR_WIDTH__.cpp" }, { "match": "\\b__SHRT_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SHRT_WIDTH__.cpp" }, { "match": "\\b__INT_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_WIDTH__.cpp" }, { "match": "\\b__LONG_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__LONG_WIDTH__.cpp" }, { "match": "\\b__LONG_LONG_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__LONG_LONG_WIDTH__.cpp" }, { "match": "\\b__PTRDIFF_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__PTRDIFF_WIDTH__.cpp" }, { "match": "\\b__SIG_ATOMIC_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIG_ATOMIC_WIDTH__.cpp" }, { "match": "\\b__SIZE_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZE_WIDTH__.cpp" }, { "match": "\\b__WCHAR_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WCHAR_WIDTH__.cpp" }, { "match": "\\b__WINT_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__WINT_WIDTH__.cpp" }, { "match": "\\b__INT_LEAST8_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST8_WIDTH__.cpp" }, { "match": "\\b__INT_LEAST16_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST16_WIDTH__.cpp" }, { "match": "\\b__INT_LEAST32_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST32_WIDTH__.cpp" }, { "match": "\\b__INT_LEAST64_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_LEAST64_WIDTH__.cpp" }, { "match": "\\b__INT_FAST8_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST8_WIDTH__.cpp" }, { "match": "\\b__INT_FAST16_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST16_WIDTH__.cpp" }, { "match": "\\b__INT_FAST32_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST32_WIDTH__.cpp" }, { "match": "\\b__INT_FAST64_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INT_FAST64_WIDTH__.cpp" }, { "match": "\\b__INTPTR_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTPTR_WIDTH__.cpp" }, { "match": "\\b__INTMAX_WIDTH__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__INTMAX_WIDTH__.cpp" }, { "match": "\\b__SIZEOF_INT__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_INT__.cpp" }, { "match": "\\b__SIZEOF_LONG__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_LONG__.cpp" }, { "match": "\\b__SIZEOF_LONG_LONG__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_LONG_LONG__.cpp" }, { "match": "\\b__SIZEOF_SHORT__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_SHORT__.cpp" }, { "match": "\\b__SIZEOF_POINTER__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_POINTER__.cpp" }, { "match": "\\b__SIZEOF_FLOAT__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_FLOAT__.cpp" }, { "match": "\\b__SIZEOF_DOUBLE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_DOUBLE__.cpp" }, { "match": "\\b__SIZEOF_LONG_DOUBLE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_LONG_DOUBLE__.cpp" }, { "match": "\\b__SIZEOF_SIZE_T__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_SIZE_T__.cpp" }, { "match": "\\b__SIZEOF_WCHAR_T__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_WCHAR_T__.cpp" }, { "match": "\\b__SIZEOF_WINT_T__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_WINT_T__.cpp" }, { "match": "\\b__SIZEOF_PTRDIFF_T__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SIZEOF_PTRDIFF_T__.cpp" }, { "match": "\\b__BYTE_ORDER__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__BYTE_ORDER__.cpp" }, { "match": "\\b__ORDER_LITTLE_ENDIAN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__ORDER_LITTLE_ENDIAN__.cpp" }, { "match": "\\b__ORDER_BIG_ENDIAN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__ORDER_BIG_ENDIAN__.cpp" }, { "match": "\\b__ORDER_PDP_ENDIAN__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__ORDER_PDP_ENDIAN__.cpp" }, { "match": "\\b__FLOAT_WORD_ORDER__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FLOAT_WORD_ORDER__.cpp" }, { "match": "\\b__DEPRECATED\\b", "name": "entity.name.other.preprocessor.macro.predefined.__DEPRECATED.cpp" }, { "match": "\\b__EXCEPTIONS\\b", "name": "entity.name.other.preprocessor.macro.predefined.__EXCEPTIONS.cpp" }, { "match": "\\b__GXX_RTTI\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GXX_RTTI.cpp" }, { "match": "\\b__USING_SJLJ_EXCEPTIONS__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__USING_SJLJ_EXCEPTIONS__.cpp" }, { "match": "\\b__GXX_EXPERIMENTAL_CXX0X__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GXX_EXPERIMENTAL_CXX0X__.cpp" }, { "match": "\\b__GXX_WEAK__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GXX_WEAK__.cpp" }, { "match": "\\b__NEXT_RUNTIME__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__NEXT_RUNTIME__.cpp" }, { "match": "\\b__LP64__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__LP64__.cpp" }, { "match": "\\b_LP64\\b", "name": "entity.name.other.preprocessor.macro.predefined._LP64.cpp" }, { "match": "\\b__SSP__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SSP__.cpp" }, { "match": "\\b__SSP_ALL__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SSP_ALL__.cpp" }, { "match": "\\b__SSP_STRONG__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SSP_STRONG__.cpp" }, { "match": "\\b__SSP_EXPLICIT__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SSP_EXPLICIT__.cpp" }, { "match": "\\b__SANITIZE_ADDRESS__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SANITIZE_ADDRESS__.cpp" }, { "match": "\\b__SANITIZE_THREAD__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__SANITIZE_THREAD__.cpp" }, { "match": "\\b__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1.cpp" }, { "match": "\\b__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2.cpp" }, { "match": "\\b__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.cpp" }, { "match": "\\b__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8.cpp" }, { "match": "\\b__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16.cpp" }, { "match": "\\b__HAVE_SPECULATION_SAFE_VALUE\\b", "name": "entity.name.other.preprocessor.macro.predefined.__HAVE_SPECULATION_SAFE_VALUE.cpp" }, { "match": "\\b__GCC_HAVE_DWARF2_CFI_ASM\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_HAVE_DWARF2_CFI_ASM.cpp" }, { "match": "\\b__FP_FAST_FMA\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMA.cpp" }, { "match": "\\b__FP_FAST_FMAF\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF.cpp" }, { "match": "\\b__FP_FAST_FMAL\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAL.cpp" }, { "match": "\\b__FP_FAST_FMAF16\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF16.cpp" }, { "match": "\\b__FP_FAST_FMAF32\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF32.cpp" }, { "match": "\\b__FP_FAST_FMAF64\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF64.cpp" }, { "match": "\\b__FP_FAST_FMAF128\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF128.cpp" }, { "match": "\\b__FP_FAST_FMAF32X\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF32X.cpp" }, { "match": "\\b__FP_FAST_FMAF64X\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF64X.cpp" }, { "match": "\\b__FP_FAST_FMAF128X\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FP_FAST_FMAF128X.cpp" }, { "match": "\\b__GCC_IEC_559\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_IEC_559.cpp" }, { "match": "\\b__GCC_IEC_559_COMPLEX\\b", "name": "entity.name.other.preprocessor.macro.predefined.__GCC_IEC_559_COMPLEX.cpp" }, { "match": "\\b__NO_MATH_ERRNO__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__NO_MATH_ERRNO__.cpp" }, { "match": "\\b__has_builtin\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_builtin.cpp" }, { "match": "\\b__has_feature\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_feature.cpp" }, { "match": "\\b__has_extension\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_extension.cpp" }, { "match": "\\b__has_cpp_attribute\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_cpp_attribute.cpp" }, { "match": "\\b__has_c_attribute\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_c_attribute.cpp" }, { "match": "\\b__has_attribute\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_attribute.cpp" }, { "match": "\\b__has_declspec_attribute\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_declspec_attribute.cpp" }, { "match": "\\b__is_identifier\\b", "name": "entity.name.other.preprocessor.macro.predefined.__is_identifier.cpp" }, { "match": "\\b__has_include\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_include.cpp" }, { "match": "\\b__has_include_next\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_include_next.cpp" }, { "match": "\\b__has_warning\\b", "name": "entity.name.other.preprocessor.macro.predefined.__has_warning.cpp" }, { "match": "\\b__BASE_FILE__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__BASE_FILE__.cpp" }, { "match": "\\b__FILE_NAME__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__FILE_NAME__.cpp" }, { "match": "\\b__clang__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__clang__.cpp" }, { "match": "\\b__clang_major__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__clang_major__.cpp" }, { "match": "\\b__clang_minor__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__clang_minor__.cpp" }, { "match": "\\b__clang_patchlevel__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__clang_patchlevel__.cpp" }, { "match": "\\b__clang_version__\\b", "name": "entity.name.other.preprocessor.macro.predefined.__clang_version__.cpp" }, { "match": "\\b__fp16\\b", "name": "entity.name.other.preprocessor.macro.predefined.__fp16.cpp" }, { "match": "\\b_Float16\\b", "name": "entity.name.other.preprocessor.macro.predefined._Float16.cpp" }, { "match": "(\\b__([A-Z_])__\\b)", "captures": { "1": { "name": "entity.name.other.preprocessor.macro.predefined.probably.$2.cpp" } } } ] }, "function_definition": { "name": "meta.function.definition.cpp", "begin": "((?:(?:^|\\G|(?<=;|\\}))|(?<=>))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?:((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\())", "beginCaptures": { "1": { "name": "meta.head.function.definition.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.template.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "name": "storage.modifier.$11.cpp" }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "17": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "18": { "patterns": [ { "include": "#inline_comment" } ] }, "19": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "20": { "name": "comment.block.cpp" }, "21": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "22": { "patterns": [ { "include": "#inline_comment" } ] }, "23": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "24": { "name": "comment.block.cpp" }, "25": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "27": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "28": { "name": "entity.name.scope-resolution.cpp" }, "29": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "30": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "31": { "patterns": [ { "include": "#inline_comment" } ] }, "32": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "33": { "name": "comment.block.cpp" }, "34": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "35": { "name": "entity.name.type.cpp" }, "36": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "37": { "patterns": [ { "include": "#inline_comment" } ] }, "38": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "39": { "name": "comment.block.cpp" }, "40": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "41": { "patterns": [ { "include": "#inline_comment" } ] }, "42": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "43": { "name": "comment.block.cpp" }, "44": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "45": { "patterns": [ { "include": "#inline_comment" } ] }, "46": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "47": { "name": "comment.block.cpp" }, "48": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "49": { "patterns": [ { "include": "#inline_comment" } ] }, "50": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "51": { "name": "comment.block.cpp" }, "52": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "53": { "name": "storage.type.modifier.calling-convention.cpp" }, "54": { "patterns": [ { "include": "#inline_comment" } ] }, "55": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "56": { "name": "comment.block.cpp" }, "57": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "58": { "patterns": [ { "include": "#scope_resolution_function_definition_inner_generated" } ] }, "59": { "name": "entity.name.function.definition.cpp" }, "60": { "patterns": [ { "include": "#inline_comment" } ] }, "61": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "62": { "name": "comment.block.cpp" }, "63": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "end": "(?:(?<=\\}|%>|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.function.definition.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.function.definition.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "contentName": "meta.function.definition.parameters.cpp", "begin": "(\\()", "beginCaptures": { "1": { "name": "punctuation.section.parameters.begin.bracket.round.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#parameter_or_maybe_value" }, { "include": "#comma" }, { "include": "#evaluation_context" } ] }, { "include": "$base" } ] }, { "name": "meta.body.function.definition.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "operator_overload": { "name": "meta.function.definition.special.operator-overload.cpp", "begin": "((?:(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(operator)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(?:(?:((?:\\+\\+|\\-\\-|\\(\\)|\\[\\]|\\->|\\+\\+|\\-\\-|\\+|\\-|!|~|\\*|&|new|new\\[\\]|delete|delete\\[\\]|\\->\\*|\\*|\\/|%|\\+|\\-|<<|>>|<=>|<|<=|>|>=|==|!=|&|\\^|\\||&&|\\|\\||=|\\+=|\\-=|\\*=|\\/=|%=|<<=|>>=|&=|\\^=|\\|=|,))|((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:\\[\\])?)))|(\"\")((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\<|\\())", "beginCaptures": { "1": { "name": "meta.head.function.definition.special.operator-overload.cpp" }, "2": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "3": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "4": { "patterns": [ { "include": "#inline_comment" } ] }, "5": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "6": { "name": "comment.block.cpp" }, "7": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "13": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "14": { "name": "entity.name.scope-resolution.cpp" }, "15": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "16": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "17": { "patterns": [ { "include": "#inline_comment" } ] }, "18": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "19": { "name": "comment.block.cpp" }, "20": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "21": { "name": "entity.name.type.cpp" }, "22": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "23": { "patterns": [ { "include": "#inline_comment" } ] }, "24": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "25": { "name": "comment.block.cpp" }, "26": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "27": { "patterns": [ { "include": "#inline_comment" } ] }, "28": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "29": { "name": "comment.block.cpp" }, "30": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "31": { "patterns": [ { "include": "#inline_comment" } ] }, "32": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "33": { "name": "comment.block.cpp" }, "34": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "35": { "patterns": [ { "include": "#inline_comment" } ] }, "36": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "37": { "name": "comment.block.cpp" }, "38": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "39": { "name": "storage.type.modifier.calling-convention.cpp" }, "40": { "patterns": [ { "include": "#inline_comment" } ] }, "41": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "42": { "name": "comment.block.cpp" }, "43": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "44": { "patterns": [ { "include": "#inline_comment" } ] }, "45": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "46": { "name": "comment.block.cpp" }, "47": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "48": { "patterns": [ { "match": "::", "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.operator.cpp" }, { "match": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "entity.name.operator.type.reference.cpp" } ] }, "58": { "patterns": [ { "include": "#inline_comment" } ] }, "59": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "60": { "name": "comment.block.cpp" }, "61": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "62": { "patterns": [ { "include": "#inline_comment" } ] }, "63": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "64": { "name": "comment.block.cpp" }, "65": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "66": { "patterns": [ { "include": "#inline_comment" } ] }, "67": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "68": { "name": "comment.block.cpp" }, "69": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "70": { "name": "entity.name.operator.type.array.cpp" }, "71": { "name": "entity.name.operator.custom-literal.cpp" }, "72": { "patterns": [ { "include": "#inline_comment" } ] }, "73": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "74": { "name": "comment.block.cpp" }, "75": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "76": { "name": "entity.name.operator.custom-literal.cpp" }, "77": { "patterns": [ { "include": "#inline_comment" } ] }, "78": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "79": { "name": "comment.block.cpp" }, "80": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "end": "(?:(?<=\\}|%>|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.function.definition.special.operator-overload.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.function.definition.special.operator-overload.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#template_call_range" }, { "contentName": "meta.function.definition.parameters.special.operator-overload.cpp", "begin": "(\\()", "beginCaptures": { "1": { "name": "punctuation.section.parameters.begin.bracket.round.special.operator-overload.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.special.operator-overload.cpp" } }, "patterns": [ { "include": "#function_parameter_context" }, { "include": "#evaluation_context" } ] }, { "include": "$base" } ] }, { "name": "meta.body.function.definition.special.operator-overload.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.operator-overload.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.operator-overload.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "static_assert": { "begin": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "keyword.other.static_assert.cpp" }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "name": "punctuation.section.arguments.begin.bracket.round.static_assert.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.static_assert.cpp" } }, "patterns": [ { "name": "meta.static_assert.message.cpp", "begin": "(,)\\s*(?=(?:L|u8|u|U\\s*\\\")?)", "beginCaptures": { "1": { "name": "punctuation.separator.delimiter.comma.cpp" } }, "end": "(?=\\))", "patterns": [ { "include": "#string_context" }, { "include": "#string_context_c" } ] }, { "include": "#evaluation_context" } ] }, "function_call": { "begin": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?]*|[^>]*+<[^>]*+>)++>\\s*)?(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#scope_resolution_function_call_inner_generated" } ] }, "2": { "name": "entity.name.function.call.cpp" }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "8": { "name": "punctuation.section.arguments.begin.bracket.round.function.call.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.function.call.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "curly_initializer": { "name": "meta.initialization.cpp", "begin": "(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\{)", "beginCaptures": { "1": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "2": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "13": { "name": "entity.name.scope-resolution.cpp" }, "14": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "15": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "entity.name.type.cpp" }, "21": { "patterns": [ { "include": "#inline_comment" } ] }, "22": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "23": { "name": "comment.block.cpp" }, "24": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "25": { "name": "punctuation.section.arguments.begin.bracket.curly.initializer.cpp" } }, "end": "(\\})", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.curly.initializer.cpp" } }, "patterns": [ { "include": "#evaluation_context" }, { "include": "#comma" } ] }, "builtin_storage_type_initilizer": { "begin": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "storage.type.primitive.cpp storage.type.built-in.primitive.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "storage.type.cpp storage.type.built-in.cpp" }, "15": { "patterns": [ { "include": "#inline_comment" } ] }, "16": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "17": { "name": "comment.block.cpp" }, "18": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "19": { "name": "support.type.posix-reserved.pthread.cpp support.type.built-in.posix-reserved.pthread.cpp" }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "support.type.posix-reserved.cpp support.type.built-in.posix-reserved.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "name": "punctuation.section.arguments.begin.bracket.round.initializer.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.initializer.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "constructor_inline": { "name": "meta.function.definition.special.constructor.cpp", "begin": "(^((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:inline|constexpr|mutable|friend|explicit|virtual)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.function.definition.special.constructor.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.function.definition.special.constructor.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "patterns": [ { "match": "(\\=)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(default)|(delete))", "captures": { "1": { "name": "keyword.operator.assignment.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "keyword.other.default.constructor.cpp" }, "7": { "name": "keyword.other.delete.constructor.cpp" } } } ] }, { "include": "#functional_specifiers_pre_parameters" }, { "begin": "(:)", "beginCaptures": { "1": { "name": "punctuation.separator.initializers.cpp" } }, "end": "(?=\\{)", "patterns": [ { "contentName": "meta.parameter.initialization.cpp", "begin": "((?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.constructor.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.constructor.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "constructor_root": { "name": "meta.function.definition.special.constructor.cpp", "begin": "(\\s*+((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(((?>(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))::((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\13((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\()))", "beginCaptures": { "1": { "name": "meta.head.function.definition.special.constructor.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.modifier.calling-convention.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "::", "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.constructor.cpp" }, { "match": "(?|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.function.definition.special.constructor.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.function.definition.special.constructor.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "patterns": [ { "match": "(\\=)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(default)|(delete))", "captures": { "1": { "name": "keyword.operator.assignment.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "keyword.other.default.constructor.cpp" }, "7": { "name": "keyword.other.delete.constructor.cpp" } } } ] }, { "include": "#functional_specifiers_pre_parameters" }, { "begin": "(:)", "beginCaptures": { "1": { "name": "punctuation.separator.initializers.cpp" } }, "end": "(?=\\{)", "patterns": [ { "contentName": "meta.parameter.initialization.cpp", "begin": "((?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.constructor.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.constructor.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "destructor_inline": { "name": "meta.function.definition.special.member.destructor.cpp", "begin": "(^((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:inline|constexpr|mutable|friend|explicit|virtual)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*)(~(?|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.function.definition.special.member.destructor.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.function.definition.special.member.destructor.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "patterns": [ { "match": "(\\=)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(default)|(delete))", "captures": { "1": { "name": "keyword.operator.assignment.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "keyword.other.default.constructor.cpp" }, "7": { "name": "keyword.other.delete.constructor.cpp" } } } ] }, { "contentName": "meta.function.definition.parameters.special.member.destructor.cpp", "begin": "(\\()", "beginCaptures": { "1": { "name": "punctuation.section.parameters.begin.bracket.round.special.member.destructor.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.special.member.destructor.cpp" } } }, { "include": "$base" } ] }, { "name": "meta.body.function.definition.special.member.destructor.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.member.destructor.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.member.destructor.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "destructor_root": { "name": "meta.function.definition.special.member.destructor.cpp", "begin": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(((?>(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))::((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))~\\13((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\()))", "beginCaptures": { "1": { "name": "meta.head.function.definition.special.member.destructor.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.modifier.calling-convention.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "::", "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.destructor.cpp" }, { "match": "(?|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.function.definition.special.member.destructor.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.function.definition.special.member.destructor.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "patterns": [ { "match": "(\\=)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(default)|(delete))", "captures": { "1": { "name": "keyword.operator.assignment.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "keyword.other.default.constructor.cpp" }, "7": { "name": "keyword.other.delete.constructor.cpp" } } } ] }, { "contentName": "meta.function.definition.parameters.special.member.destructor.cpp", "begin": "(\\()", "beginCaptures": { "1": { "name": "punctuation.section.parameters.begin.bracket.round.special.member.destructor.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.special.member.destructor.cpp" } } }, { "include": "$base" } ] }, { "name": "meta.body.function.definition.special.member.destructor.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.member.destructor.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.member.destructor.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "operators": { "patterns": [ { "include": "#sizeof_operator" }, { "include": "#alignof_operator" }, { "include": "#alignas_operator" }, { "include": "#typeid_operator" }, { "include": "#noexcept_operator" }, { "match": "--", "name": "keyword.operator.decrement.cpp" }, { "match": "\\+\\+", "name": "keyword.operator.increment.cpp" }, { "match": "%=|\\+=|-=|\\*=|(?>=|\\|=", "name": "keyword.operator.assignment.compound.bitwise.cpp" }, { "match": "<<|>>", "name": "keyword.operator.bitwise.shift.cpp" }, { "match": "!=|<=|>=|==|<|>", "name": "keyword.operator.comparison.cpp" }, { "match": "&&|!|\\|\\|", "name": "keyword.operator.logical.cpp" }, { "match": "&|\\||\\^|~", "name": "keyword.operator.cpp" }, { "include": "#assignment_operator" }, { "match": "%|\\*|\\/|-|\\+", "name": "keyword.operator.cpp" }, { "include": "#ternary_operator" } ] }, "wordlike_operators": { "match": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.operator.sizeof.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.operator.sizeof.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.operator.sizeof.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "alignof_operator": { "contentName": "meta.arguments.operator.alignof.cpp", "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.operator.alignof.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.operator.alignof.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.operator.alignof.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "alignas_operator": { "contentName": "meta.arguments.operator.alignas.cpp", "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.operator.alignas.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.operator.alignas.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.operator.alignas.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "typeid_operator": { "contentName": "meta.arguments.operator.typeid.cpp", "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.operator.typeid.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.operator.typeid.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.operator.typeid.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "noexcept_operator": { "contentName": "meta.arguments.operator.noexcept.cpp", "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "name": "keyword.operator.functionlike.cpp keyword.operator.noexcept.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.section.arguments.begin.bracket.round.operator.noexcept.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.operator.noexcept.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "ternary_operator": { "applyEndPatternLast": true, "begin": "(\\?)", "beginCaptures": { "1": { "name": "keyword.operator.ternary.cpp" } }, "end": "(:)", "endCaptures": { "1": { "name": "keyword.operator.ternary.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#string_context" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#method_access" }, { "include": "#member_access" }, { "include": "#predefined_macros" }, { "include": "#operators" }, { "include": "#memory_operators" }, { "include": "#wordlike_operators" }, { "include": "#type_casting_operators" }, { "include": "#control_flow_keywords" }, { "include": "#exception_keywords" }, { "include": "#the_this_keyword" }, { "include": "#language_constants" }, { "include": "#builtin_storage_type_initilizer" }, { "include": "#qualifiers_and_specifiers_post_parameters" }, { "include": "#functional_specifiers_pre_parameters" }, { "include": "#storage_types" }, { "include": "#misc_storage_modifiers" }, { "include": "#lambdas" }, { "include": "#attributes_context" }, { "include": "#parentheses" }, { "include": "#function_call" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#square_brackets" }, { "include": "#empty_square_brackets" }, { "include": "#semicolon" }, { "include": "#comma" } ] }, "function_pointer": { "begin": "(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()(\\*)\\s*((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)?)\\s*(?:(\\[)(\\w*)(\\])\\s*)*(\\))\\s*(\\()", "beginCaptures": { "1": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "2": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "13": { "name": "entity.name.scope-resolution.cpp" }, "14": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "15": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "entity.name.type.cpp" }, "21": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "22": { "patterns": [ { "include": "#inline_comment" } ] }, "23": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "24": { "name": "comment.block.cpp" }, "25": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "26": { "patterns": [ { "include": "#inline_comment" } ] }, "27": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "28": { "name": "comment.block.cpp" }, "29": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "30": { "patterns": [ { "include": "#inline_comment" } ] }, "31": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "32": { "name": "comment.block.cpp" }, "33": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "34": { "name": "punctuation.section.parens.begin.bracket.round.function.pointer.cpp" }, "35": { "name": "punctuation.definition.function.pointer.dereference.cpp" }, "36": { "name": "variable.other.definition.pointer.function.cpp" }, "37": { "name": "punctuation.definition.begin.bracket.square.cpp" }, "38": { "patterns": [ { "include": "#evaluation_context" } ] }, "39": { "name": "punctuation.definition.end.bracket.square.cpp" }, "40": { "name": "punctuation.section.parens.end.bracket.round.function.pointer.cpp" }, "41": { "name": "punctuation.section.parameters.begin.bracket.round.function.pointer.cpp" } }, "end": "(\\))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=[{=,);]|\\n)(?!\\()", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.function.pointer.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "patterns": [ { "include": "#function_parameter_context" } ] }, "function_pointer_parameter": { "begin": "(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()(\\*)\\s*((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)?)\\s*(?:(\\[)(\\w*)(\\])\\s*)*(\\))\\s*(\\()", "beginCaptures": { "1": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "2": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "13": { "name": "entity.name.scope-resolution.cpp" }, "14": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "15": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "entity.name.type.cpp" }, "21": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "22": { "patterns": [ { "include": "#inline_comment" } ] }, "23": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "24": { "name": "comment.block.cpp" }, "25": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "26": { "patterns": [ { "include": "#inline_comment" } ] }, "27": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "28": { "name": "comment.block.cpp" }, "29": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "30": { "patterns": [ { "include": "#inline_comment" } ] }, "31": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "32": { "name": "comment.block.cpp" }, "33": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "34": { "name": "punctuation.section.parens.begin.bracket.round.function.pointer.cpp" }, "35": { "name": "punctuation.definition.function.pointer.dereference.cpp" }, "36": { "name": "variable.parameter.pointer.function.cpp" }, "37": { "name": "punctuation.definition.begin.bracket.square.cpp" }, "38": { "patterns": [ { "include": "#evaluation_context" } ] }, "39": { "name": "punctuation.definition.end.bracket.square.cpp" }, "40": { "name": "punctuation.section.parens.end.bracket.round.function.pointer.cpp" }, "41": { "name": "punctuation.section.parameters.begin.bracket.round.function.pointer.cpp" } }, "end": "(\\))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=[{=,);]|\\n)(?!\\()", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.function.pointer.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "patterns": [ { "include": "#function_parameter_context" } ] }, "parameter_or_maybe_value": { "name": "meta.parameter.cpp", "begin": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\w)", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "end": "(?:(?=\\))|(,))", "endCaptures": { "1": { "name": "punctuation.separator.delimiter.comma.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#memory_operators" }, { "include": "#builtin_storage_type_initilizer" }, { "include": "#curly_initializer" }, { "include": "#function_pointer_parameter" }, { "include": "#decltype" }, { "include": "#vararg_ellipses" }, { "match": "((?:((?:const|static|volatile|register|restrict|extern))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))+)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=,|\\)|=)", "captures": { "1": { "patterns": [ { "include": "#storage_types" } ] }, "2": { "name": "storage.modifier.specifier.parameter.cpp" }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "include": "#inline_comment" } ] }, "12": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "13": { "name": "comment.block.cpp" }, "14": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "15": { "patterns": [ { "include": "#inline_comment" } ] }, "16": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "17": { "name": "comment.block.cpp" }, "18": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "19": { "name": "storage.type.primitive.cpp storage.type.built-in.primitive.cpp" }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "storage.type.cpp storage.type.built-in.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "name": "support.type.posix-reserved.pthread.cpp support.type.built-in.posix-reserved.pthread.cpp" }, "30": { "patterns": [ { "include": "#inline_comment" } ] }, "31": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "32": { "name": "comment.block.cpp" }, "33": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "34": { "name": "support.type.posix-reserved.cpp support.type.built-in.posix-reserved.cpp" }, "35": { "name": "entity.name.type.parameter.cpp" }, "36": { "patterns": [ { "include": "#inline_comment" } ] }, "37": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "38": { "name": "comment.block.cpp" }, "39": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, { "include": "#storage_types" }, { "include": "#function_call" }, { "include": "#scope_resolution_parameter_inner_generated" }, { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "begin": "(?<==)", "end": "(?:(?=\\))|(,))", "endCaptures": { "1": { "name": "punctuation.separator.delimiter.comma.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, { "match": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\)|,|\\[|=|\\n)", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.parameter.cpp" }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, { "include": "#attributes_context" }, { "name": "meta.bracket.square.array.cpp", "begin": "(\\[)", "beginCaptures": { "1": { "name": "punctuation.definition.begin.bracket.square.array.type.cpp" } }, "end": "(\\])", "endCaptures": { "1": { "name": "punctuation.definition.end.bracket.square.array.type.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\b(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*)", "captures": { "0": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, { "include": "#evaluation_context" } ] }, "parameter": { "name": "meta.parameter.cpp", "begin": "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\w)", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "end": "(?:(?=\\))|(,))", "endCaptures": { "1": { "name": "punctuation.separator.delimiter.comma.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#function_pointer_parameter" }, { "include": "#decltype" }, { "include": "#vararg_ellipses" }, { "match": "((?:((?:const|static|volatile|register|restrict|extern))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))+)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=,|\\)|=)", "captures": { "1": { "patterns": [ { "include": "#storage_types" } ] }, "2": { "name": "storage.modifier.specifier.parameter.cpp" }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "include": "#inline_comment" } ] }, "12": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "13": { "name": "comment.block.cpp" }, "14": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "15": { "patterns": [ { "include": "#inline_comment" } ] }, "16": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "17": { "name": "comment.block.cpp" }, "18": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "19": { "name": "storage.type.primitive.cpp storage.type.built-in.primitive.cpp" }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "storage.type.cpp storage.type.built-in.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "name": "support.type.posix-reserved.pthread.cpp support.type.built-in.posix-reserved.pthread.cpp" }, "30": { "patterns": [ { "include": "#inline_comment" } ] }, "31": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "32": { "name": "comment.block.cpp" }, "33": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "34": { "name": "support.type.posix-reserved.cpp support.type.built-in.posix-reserved.cpp" }, "35": { "name": "entity.name.type.parameter.cpp" }, "36": { "patterns": [ { "include": "#inline_comment" } ] }, "37": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "38": { "name": "comment.block.cpp" }, "39": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, { "include": "#storage_types" }, { "include": "#scope_resolution_parameter_inner_generated" }, { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "begin": "(?<==)", "end": "(?:(?=\\))|(,))", "endCaptures": { "1": { "name": "punctuation.separator.delimiter.comma.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, { "include": "#assignment_operator" }, { "match": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\)|,|\\[|=|\\n)", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.parameter.cpp" }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, { "include": "#attributes_context" }, { "name": "meta.bracket.square.array.cpp", "begin": "(\\[)", "beginCaptures": { "1": { "name": "punctuation.definition.begin.bracket.square.array.type.cpp" } }, "end": "(\\])", "endCaptures": { "1": { "name": "punctuation.definition.end.bracket.square.array.type.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\b(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*)", "captures": { "0": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } } ] }, "member_access": { "match": "(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\*|->)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*(?:(?:(?:\\.\\*|\\.))|(?:(?:->\\*|->)))\\s*)*)\\s*(\\b(?!auto[^(?-mix:\\w)]|void[^(?-mix:\\w)]|char[^(?-mix:\\w)]|short[^(?-mix:\\w)]|int[^(?-mix:\\w)]|signed[^(?-mix:\\w)]|unsigned[^(?-mix:\\w)]|long[^(?-mix:\\w)]|float[^(?-mix:\\w)]|double[^(?-mix:\\w)]|bool[^(?-mix:\\w)]|wchar_t[^(?-mix:\\w)]|u_char[^(?-mix:\\w)]|u_short[^(?-mix:\\w)]|u_int[^(?-mix:\\w)]|u_long[^(?-mix:\\w)]|ushort[^(?-mix:\\w)]|uint[^(?-mix:\\w)]|u_quad_t[^(?-mix:\\w)]|quad_t[^(?-mix:\\w)]|qaddr_t[^(?-mix:\\w)]|caddr_t[^(?-mix:\\w)]|daddr_t[^(?-mix:\\w)]|div_t[^(?-mix:\\w)]|dev_t[^(?-mix:\\w)]|fixpt_t[^(?-mix:\\w)]|blkcnt_t[^(?-mix:\\w)]|blksize_t[^(?-mix:\\w)]|gid_t[^(?-mix:\\w)]|in_addr_t[^(?-mix:\\w)]|in_port_t[^(?-mix:\\w)]|ino_t[^(?-mix:\\w)]|key_t[^(?-mix:\\w)]|mode_t[^(?-mix:\\w)]|nlink_t[^(?-mix:\\w)]|id_t[^(?-mix:\\w)]|pid_t[^(?-mix:\\w)]|off_t[^(?-mix:\\w)]|segsz_t[^(?-mix:\\w)]|swblk_t[^(?-mix:\\w)]|uid_t[^(?-mix:\\w)]|id_t[^(?-mix:\\w)]|clock_t[^(?-mix:\\w)]|size_t[^(?-mix:\\w)]|ssize_t[^(?-mix:\\w)]|time_t[^(?-mix:\\w)]|useconds_t[^(?-mix:\\w)]|suseconds_t[^(?-mix:\\w)]|int8_t[^(?-mix:\\w)]|int16_t[^(?-mix:\\w)]|int32_t[^(?-mix:\\w)]|int64_t[^(?-mix:\\w)]|uint8_t[^(?-mix:\\w)]|uint16_t[^(?-mix:\\w)]|uint32_t[^(?-mix:\\w)]|uint64_t[^(?-mix:\\w)]|int_least8_t[^(?-mix:\\w)]|int_least16_t[^(?-mix:\\w)]|int_least32_t[^(?-mix:\\w)]|int_least64_t[^(?-mix:\\w)]|uint_least8_t[^(?-mix:\\w)]|uint_least16_t[^(?-mix:\\w)]|uint_least32_t[^(?-mix:\\w)]|uint_least64_t[^(?-mix:\\w)]|int_fast8_t[^(?-mix:\\w)]|int_fast16_t[^(?-mix:\\w)]|int_fast32_t[^(?-mix:\\w)]|int_fast64_t[^(?-mix:\\w)]|uint_fast8_t[^(?-mix:\\w)]|uint_fast16_t[^(?-mix:\\w)]|uint_fast32_t[^(?-mix:\\w)]|uint_fast64_t[^(?-mix:\\w)]|intptr_t[^(?-mix:\\w)]|uintptr_t[^(?-mix:\\w)]|intmax_t[^(?-mix:\\w)]|intmax_t[^(?-mix:\\w)]|uintmax_t[^(?-mix:\\w)]|uintmax_t[^(?-mix:\\w)])(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\b(?!\\())", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.language.this.cpp" }, "6": { "name": "variable.other.object.access.cpp" }, "7": { "name": "punctuation.separator.dot-access.cpp" }, "8": { "name": "punctuation.separator.pointer-access.cpp" }, "9": { "patterns": [ { "match": "(?<=(?:\\.\\*|\\.|->|->\\*))\\s*(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\*|->)))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.language.this.cpp" }, "6": { "name": "variable.other.object.property.cpp" }, "7": { "name": "punctuation.separator.dot-access.cpp" }, "8": { "name": "punctuation.separator.pointer-access.cpp" } } }, { "match": "(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\*|->)))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.language.this.cpp" }, "6": { "name": "variable.other.object.access.cpp" }, "7": { "name": "punctuation.separator.dot-access.cpp" }, "8": { "name": "punctuation.separator.pointer-access.cpp" } } }, { "include": "#member_access" }, { "include": "#method_access" } ] }, "10": { "name": "variable.other.property.cpp" } } }, "method_access": { "begin": "(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\*|->)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*(?:(?:(?:\\.\\*|\\.))|(?:(?:->\\*|->)))\\s*)*)\\s*(~?(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.language.this.cpp" }, "6": { "name": "variable.other.object.access.cpp" }, "7": { "name": "punctuation.separator.dot-access.cpp" }, "8": { "name": "punctuation.separator.pointer-access.cpp" }, "9": { "patterns": [ { "match": "(?<=(?:\\.\\*|\\.|->|->\\*))\\s*(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\*|->)))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.language.this.cpp" }, "6": { "name": "variable.other.object.property.cpp" }, "7": { "name": "punctuation.separator.dot-access.cpp" }, "8": { "name": "punctuation.separator.pointer-access.cpp" } } }, { "match": "(?:((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\*|->)))", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "variable.language.this.cpp" }, "6": { "name": "variable.other.object.access.cpp" }, "7": { "name": "punctuation.separator.dot-access.cpp" }, "8": { "name": "punctuation.separator.pointer-access.cpp" } } }, { "include": "#member_access" }, { "include": "#method_access" } ] }, "10": { "name": "entity.name.function.member.cpp" }, "11": { "name": "punctuation.section.arguments.begin.bracket.round.function.member.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.arguments.end.bracket.round.function.member.cpp" } }, "patterns": [ { "include": "#evaluation_context" } ] }, "using_namespace": { "name": "meta.using-namespace.cpp", "begin": "(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)?((?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)\\s*((?|\\?\\?>)|(?=[;>\\[\\]=]))", "patterns": [ { "name": "meta.head.namespace.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.namespace.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#attributes_context" }, { "match": "((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)\\s*((?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.namespace.cpp" } }, "patterns": [ { "include": "$base" } ] }, { "name": "meta.tail.namespace.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_argument": { "match": "##?(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*(?!\\w)", "name": "variable.other.macro.argument.cpp" }, "lambdas": { "begin": "((?:(?<=[^\\s]|^)(?])|(?<=\\Wreturn|^return))\\s*(\\[(?!\\[))((?:[^\\]\\[]*\\[.*?\\](?!\\s*\\[)[^\\]\\[]*?)*[^\\]\\[]*?)(\\](?!\\[)))", "beginCaptures": { "2": { "name": "punctuation.definition.capture.begin.lambda.cpp" }, "3": { "name": "meta.lambda.capture.cpp", "patterns": [ { "include": "#the_this_keyword" }, { "match": "((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?=\\]|\\z|$)|(,))|(\\=))", "captures": { "1": { "name": "variable.parameter.capture.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "punctuation.separator.delimiter.comma.cpp" }, "7": { "name": "keyword.operator.assignment.cpp" } } }, { "include": "#evaluation_context" } ] }, "4": { "name": "punctuation.definition.capture.end.lambda.cpp" } }, "end": "(?<=})", "patterns": [ { "name": "meta.function.definition.parameters.lambda.cpp", "begin": "(\\()", "beginCaptures": { "1": { "name": "punctuation.definition.parameters.begin.lambda.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.definition.parameters.end.lambda.cpp" } }, "patterns": [ { "include": "#function_parameter_context" } ] }, { "match": "(?)((?:.+?(?=\\{|$))?)", "captures": { "1": { "name": "punctuation.definition.lambda.return-type.cpp" }, "2": { "name": "storage.type.return-type.lambda.cpp" } } }, { "name": "meta.function.definition.body.lambda.cpp", "begin": "(\\{)", "beginCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.lambda.cpp" } }, "end": "(\\})", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.lambda.cpp" } }, "patterns": [ { "include": "$base" } ] } ] }, "enumerator_list": { "match": "((?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?\\s*((?|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.enum.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.enum.cpp" } }, "patterns": [ { "include": "$base" } ] }, { "name": "meta.body.enum.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.enum.cpp" } }, "patterns": [ { "include": "#enumerator_list" }, { "include": "#comments" }, { "include": "#comma" }, { "include": "#semicolon" } ] }, { "name": "meta.tail.enum.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "inheritance_context": { "patterns": [ { "match": ",", "name": "punctuation.separator.delimiter.comma.inheritance.cpp" }, { "match": "(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))", "captures": { "1": { "name": "entity.name.type.inherited.cpp" } } } ] }, "class_block": { "name": "meta.block.class.cpp", "begin": "((((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.class.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.class.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.class.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.class.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "struct_block": { "name": "meta.block.struct.cpp", "begin": "((((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.struct.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.struct.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.struct.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.struct.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "union_block": { "name": "meta.block.union.cpp", "begin": "((((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.union.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.union.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.union.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.union.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "extern_block": { "name": "meta.block.extern.cpp", "begin": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(extern)(?=\\s*\\\"))", "beginCaptures": { "1": { "name": "meta.head.extern.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.extern.cpp" } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.extern.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.extern.cpp" } }, "patterns": [ { "include": "$base" } ] }, { "name": "meta.body.extern.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.extern.cpp" } }, "patterns": [ { "include": "$base" } ] }, { "name": "meta.tail.extern.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] }, { "include": "$base" } ] }, "typedef_class": { "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.class.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.class.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.class.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.class.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "entity.name.type.alias.cpp" } } }, { "match": "," } ] } ] } ] }, "typedef_struct": { "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.struct.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.struct.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.struct.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.struct.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "entity.name.type.alias.cpp" } } }, { "match": "," } ] } ] } ] }, "typedef_union": { "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.union.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.union.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.union.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.union.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "entity.name.type.alias.cpp" } } }, { "match": "," } ] } ] } ] }, "struct_declare": { "match": "(struct)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\b(?!final\\W|final\\$|override\\W|override\\$)((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\S)(?!:)", "captures": { "1": { "name": "storage.type.struct.declare.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.struct.cpp" }, "7": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "variable.other.object.declare.cpp" }, "21": { "patterns": [ { "include": "#inline_comment" } ] }, "22": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "23": { "name": "comment.block.cpp" }, "24": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "union_declare": { "match": "(union)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\b(?!final\\W|final\\$|override\\W|override\\$)((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\S)(?!:)", "captures": { "1": { "name": "storage.type.union.declare.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.union.cpp" }, "7": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "variable.other.object.declare.cpp" }, "21": { "patterns": [ { "include": "#inline_comment" } ] }, "22": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "23": { "name": "comment.block.cpp" }, "24": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "enum_declare": { "match": "(enum)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\b(?!final\\W|final\\$|override\\W|override\\$)((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\S)(?!:)", "captures": { "1": { "name": "storage.type.enum.declare.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.enum.cpp" }, "7": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "variable.other.object.declare.cpp" }, "21": { "patterns": [ { "include": "#inline_comment" } ] }, "22": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "23": { "name": "comment.block.cpp" }, "24": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "class_declare": { "match": "(class)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\b(?!final\\W|final\\$|override\\W|override\\$)((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\S)(?!:)", "captures": { "1": { "name": "storage.type.class.declare.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.class.cpp" }, "7": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "variable.other.object.declare.cpp" }, "21": { "patterns": [ { "include": "#inline_comment" } ] }, "22": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "23": { "name": "comment.block.cpp" }, "24": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "standard_declares": { "patterns": [ { "include": "#struct_declare" }, { "include": "#union_declare" }, { "include": "#enum_declare" }, { "include": "#class_declare" } ] }, "parameter_struct": { "match": "(struct)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:\\[((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\]((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?=,|\\)|\\n)", "captures": { "1": { "name": "storage.type.struct.parameter.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.struct.parameter.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "variable.other.object.declare.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "patterns": [ { "include": "#inline_comment" } ] }, "30": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "31": { "name": "comment.block.cpp" }, "32": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "33": { "patterns": [ { "include": "#inline_comment" } ] }, "34": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "35": { "name": "comment.block.cpp" }, "36": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "parameter_enum": { "match": "(enum)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:\\[((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\]((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?=,|\\)|\\n)", "captures": { "1": { "name": "storage.type.enum.parameter.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.enum.parameter.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "variable.other.object.declare.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "patterns": [ { "include": "#inline_comment" } ] }, "30": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "31": { "name": "comment.block.cpp" }, "32": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "33": { "patterns": [ { "include": "#inline_comment" } ] }, "34": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "35": { "name": "comment.block.cpp" }, "36": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "parameter_union": { "match": "(union)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:\\[((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\]((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?=,|\\)|\\n)", "captures": { "1": { "name": "storage.type.union.parameter.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.union.parameter.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "variable.other.object.declare.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "patterns": [ { "include": "#inline_comment" } ] }, "30": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "31": { "name": "comment.block.cpp" }, "32": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "33": { "patterns": [ { "include": "#inline_comment" } ] }, "34": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "35": { "name": "comment.block.cpp" }, "36": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "parameter_class": { "match": "(class)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:\\[((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\]((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?=,|\\)|\\n)", "captures": { "1": { "name": "storage.type.class.parameter.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "entity.name.type.class.parameter.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "patterns": [ { "include": "#inline_comment" } ] }, "21": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "22": { "name": "comment.block.cpp" }, "23": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "24": { "name": "variable.other.object.declare.cpp" }, "25": { "patterns": [ { "include": "#inline_comment" } ] }, "26": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "27": { "name": "comment.block.cpp" }, "28": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "29": { "patterns": [ { "include": "#inline_comment" } ] }, "30": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "31": { "name": "comment.block.cpp" }, "32": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "33": { "patterns": [ { "include": "#inline_comment" } ] }, "34": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "35": { "name": "comment.block.cpp" }, "36": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } } }, "over_qualified_types": { "patterns": [ { "include": "#parameter_struct" }, { "include": "#parameter_enum" }, { "include": "#parameter_union" }, { "include": "#parameter_class" } ] }, "hacky_fix_for_stray_directive": { "match": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))#define.*(?(?-mix:[a-zA-Z_$][\\w$]*)))\t # macro name\n(?:\n (\\()\n\t(\n\t \\s* \\g \\s*\t\t # first argument\n\t ((,) \\s* \\g \\s*)* # additional arguments\n\t (?:\\.\\.\\.)?\t\t\t# varargs ellipsis?\n\t)\n (\\))\n)?", "beginCaptures": { "1": { "name": "keyword.control.directive.define.cpp" }, "2": { "name": "punctuation.definition.directive.cpp" }, "3": { "name": "entity.name.function.preprocessor.cpp" }, "5": { "name": "punctuation.definition.parameters.begin.cpp" }, "6": { "name": "variable.parameter.preprocessor.cpp" }, "8": { "name": "punctuation.separator.parameters.cpp" }, "9": { "name": "punctuation.definition.parameters.end.cpp" } }, "end": "(?=(?://|/\\*))|(?", "endCaptures": { "0": { "name": "punctuation.definition.string.end.cpp" } }, "name": "string.quoted.other.lt-gt.include.cpp" } ] }, "meta_preprocessor_line": { "name": "meta.preprocessor.cpp", "begin": "^\\s*((#)\\s*line)\\b", "beginCaptures": { "1": { "name": "keyword.control.directive.line.cpp" }, "2": { "name": "punctuation.definition.directive.cpp" } }, "end": "(?=(?://|/\\*))|(?=+!]+|\\(\\)|\\[\\]))\\s*\\(\n)", "end": "(?<=\\))(?!\\w)|(?=+!]+|\\(\\)|\\[\\]))\n)\n\\s*(\\()", "beginCaptures": { "1": { "name": "entity.name.function.cpp" }, "2": { "name": "punctuation.section.arguments.begin.bracket.round.cpp" } }, "end": "(\\))|(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(((?>(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))::((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\13((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\()))", "beginCaptures": { "1": { "name": "meta.head.function.definition.special.constructor.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.modifier.calling-convention.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "::", "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.constructor.cpp" }, { "match": "(?|\\?\\?>)|(?=[;>\\[\\]=]))|(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(default)|(delete))", "captures": { "1": { "name": "keyword.operator.assignment.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "keyword.other.default.constructor.cpp" }, "7": { "name": "keyword.other.delete.constructor.cpp" } } } ] }, { "include": "#functional_specifiers_pre_parameters" }, { "begin": "(:)", "beginCaptures": { "1": { "name": "punctuation.separator.initializers.cpp" } }, "end": "(?=\\{)", "patterns": [ { "contentName": "meta.parameter.initialization.cpp", "begin": "((?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.constructor.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.constructor.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_destructor_root": { "name": "meta.function.definition.special.member.destructor.cpp", "begin": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(((?>(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))::((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))~\\13((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\()))", "beginCaptures": { "1": { "name": "meta.head.function.definition.special.member.destructor.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.modifier.calling-convention.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "patterns": [ { "match": "::", "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.destructor.cpp" }, { "match": "(?|\\?\\?>)|(?=[;>\\[\\]=]))|(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(default)|(delete))", "captures": { "1": { "name": "keyword.operator.assignment.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "keyword.other.default.constructor.cpp" }, "7": { "name": "keyword.other.delete.constructor.cpp" } } } ] }, { "contentName": "meta.function.definition.parameters.special.member.destructor.cpp", "begin": "(\\()", "beginCaptures": { "1": { "name": "punctuation.section.parameters.begin.bracket.round.special.member.destructor.cpp" } }, "end": "(\\))", "endCaptures": { "1": { "name": "punctuation.section.parameters.end.bracket.round.special.member.destructor.cpp" } } }, { "include": "$base" } ] }, { "name": "meta.body.function.definition.special.member.destructor.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.member.destructor.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.member.destructor.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_function_definition": { "name": "meta.function.definition.cpp", "begin": "((?:(?:^|\\G|(?<=;|\\}))|(?<=>))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?(?:((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\())", "beginCaptures": { "1": { "name": "meta.head.function.definition.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.template.cpp" }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "11": { "name": "storage.modifier.$11.cpp" }, "12": { "patterns": [ { "include": "#inline_comment" } ] }, "13": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "14": { "name": "comment.block.cpp" }, "15": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "16": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "17": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "18": { "patterns": [ { "include": "#inline_comment" } ] }, "19": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "20": { "name": "comment.block.cpp" }, "21": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "22": { "patterns": [ { "include": "#inline_comment" } ] }, "23": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "24": { "name": "comment.block.cpp" }, "25": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "27": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "28": { "name": "entity.name.scope-resolution.cpp" }, "29": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "30": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "31": { "patterns": [ { "include": "#inline_comment" } ] }, "32": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "33": { "name": "comment.block.cpp" }, "34": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "35": { "name": "entity.name.type.cpp" }, "36": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "37": { "patterns": [ { "include": "#inline_comment" } ] }, "38": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "39": { "name": "comment.block.cpp" }, "40": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "41": { "patterns": [ { "include": "#inline_comment" } ] }, "42": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "43": { "name": "comment.block.cpp" }, "44": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "45": { "patterns": [ { "include": "#inline_comment" } ] }, "46": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "47": { "name": "comment.block.cpp" }, "48": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "49": { "patterns": [ { "include": "#inline_comment" } ] }, "50": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "51": { "name": "comment.block.cpp" }, "52": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "53": { "name": "storage.type.modifier.calling-convention.cpp" }, "54": { "patterns": [ { "include": "#inline_comment" } ] }, "55": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "56": { "name": "comment.block.cpp" }, "57": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "58": { "patterns": [ { "include": "#scope_resolution_function_definition_inner_generated" } ] }, "59": { "name": "entity.name.function.definition.cpp" }, "60": { "patterns": [ { "include": "#inline_comment" } ] }, "61": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "62": { "name": "comment.block.cpp" }, "63": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "end": "(?:(?<=\\}|%>|\\?\\?>)|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_operator_overload": { "name": "meta.function.definition.special.operator-overload.cpp", "begin": "((?:(\\s*+((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:__cdecl|__clrcall|__stdcall|__fastcall|__thiscall|__vectorcall)?)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(operator)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*)(?:(?:((?:\\+\\+|\\-\\-|\\(\\)|\\[\\]|\\->|\\+\\+|\\-\\-|\\+|\\-|!|~|\\*|&|new|new\\[\\]|delete|delete\\[\\]|\\->\\*|\\*|\\/|%|\\+|\\-|<<|>>|<=>|<|<=|>|>=|==|!=|&|\\^|\\||&&|\\|\\||=|\\+=|\\-=|\\*=|\\/=|%=|<<=|>>=|&=|\\^=|\\|=|,))|((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?:\\[\\])?)))|(\"\")((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=\\<|\\())", "beginCaptures": { "1": { "name": "meta.head.function.definition.special.operator-overload.cpp" }, "2": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "3": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "4": { "patterns": [ { "include": "#inline_comment" } ] }, "5": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "6": { "name": "comment.block.cpp" }, "7": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "8": { "patterns": [ { "include": "#inline_comment" } ] }, "9": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "10": { "name": "comment.block.cpp" }, "11": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "13": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "14": { "name": "entity.name.scope-resolution.cpp" }, "15": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "16": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "17": { "patterns": [ { "include": "#inline_comment" } ] }, "18": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "19": { "name": "comment.block.cpp" }, "20": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "21": { "name": "entity.name.type.cpp" }, "22": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "23": { "patterns": [ { "include": "#inline_comment" } ] }, "24": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "25": { "name": "comment.block.cpp" }, "26": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "27": { "patterns": [ { "include": "#inline_comment" } ] }, "28": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "29": { "name": "comment.block.cpp" }, "30": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "31": { "patterns": [ { "include": "#inline_comment" } ] }, "32": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "33": { "name": "comment.block.cpp" }, "34": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "35": { "patterns": [ { "include": "#inline_comment" } ] }, "36": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "37": { "name": "comment.block.cpp" }, "38": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "39": { "name": "storage.type.modifier.calling-convention.cpp" }, "40": { "patterns": [ { "include": "#inline_comment" } ] }, "41": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "42": { "name": "comment.block.cpp" }, "43": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "44": { "patterns": [ { "include": "#inline_comment" } ] }, "45": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "46": { "name": "comment.block.cpp" }, "47": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "48": { "patterns": [ { "match": "::", "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.operator.cpp" }, { "match": "(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "entity.name.operator.type.reference.cpp" } ] }, "58": { "patterns": [ { "include": "#inline_comment" } ] }, "59": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "60": { "name": "comment.block.cpp" }, "61": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "62": { "patterns": [ { "include": "#inline_comment" } ] }, "63": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "64": { "name": "comment.block.cpp" }, "65": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "66": { "patterns": [ { "include": "#inline_comment" } ] }, "67": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "68": { "name": "comment.block.cpp" }, "69": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "70": { "name": "entity.name.operator.type.array.cpp" }, "71": { "name": "entity.name.operator.custom-literal.cpp" }, "72": { "patterns": [ { "include": "#inline_comment" } ] }, "73": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "74": { "name": "comment.block.cpp" }, "75": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "76": { "name": "entity.name.operator.custom-literal.cpp" }, "77": { "patterns": [ { "include": "#inline_comment" } ] }, "78": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "79": { "name": "comment.block.cpp" }, "80": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "end": "(?:(?<=\\}|%>|\\?\\?>)|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.function.definition.special.operator-overload.cpp" } }, "patterns": [ { "include": "#function_body_context" } ] }, { "name": "meta.tail.function.definition.special.operator-overload.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_using_namespace": { "name": "meta.using-namespace.cpp", "begin": "(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)?((?|\\?\\?>)|(?=[;>\\[\\]=]))|(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)\\s*((?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.namespace.cpp" } }, "patterns": [ { "include": "$base" } ] }, { "name": "meta.tail.namespace.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_extern_block": { "name": "meta.block.extern.cpp", "begin": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(extern)(?=\\s*\\\"))", "beginCaptures": { "1": { "name": "meta.head.extern.cpp" }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "name": "storage.type.extern.cpp" } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.extern.cpp" } }, "patterns": [ { "include": "$base" } ] }, { "name": "meta.tail.extern.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] }, { "include": "$base" } ] }, "macro_safe_typedef_class": { "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.class.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.class.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.class.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.class.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "entity.name.type.alias.cpp" } } }, { "match": "," } ] } ] } ] }, "macro_safe_typedef_struct": { "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.struct.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.struct.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.struct.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.struct.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "entity.name.type.alias.cpp" } } }, { "match": "," } ] } ] } ] }, "macro_safe_typedef_union": { "begin": "((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.union.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.cpp" }, "2": { "name": "punctuation.terminator.statement.cpp" } }, "patterns": [ { "name": "meta.head.union.cpp", "begin": "\\G ?", "end": "((?:\\{|<%|\\?\\?<|(?=;)))", "endCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#ever_present_context" }, { "include": "#inheritance_context" }, { "include": "#template_call_range" } ] }, { "name": "meta.body.union.cpp", "begin": "(?<=\\{|<%|\\?\\?<)", "end": "(\\}|%>|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.union.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "match": "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "2": { "patterns": [ { "include": "#inline_comment" } ] }, "3": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "4": { "name": "comment.block.cpp" }, "5": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "name": "entity.name.type.alias.cpp" } } }, { "match": "," } ] } ] } ] }, "macro_safe_class_block": { "name": "meta.block.class.cpp", "begin": "((((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.class.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.class.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.class.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_struct_block": { "name": "meta.block.struct.cpp", "begin": "((((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.struct.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.struct.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.struct.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_union_block": { "name": "meta.block.union.cpp", "begin": "((((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(DLLEXPORT)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))?((?:(?:(?:\\[\\[.*?\\]\\]|__attribute(?:__)?\\(\\(.*?\\)\\))|__declspec\\(.*?\\))|alignas\\(.*?\\))(?!\\)))?\\s*((?:(?\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:(?:(?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?:::))?(?:(?:(?:(?>\\s+)|(?:\\/\\*)(?:(?>(?:[^\\*]|(?>\\*+)[^\\/])*)(?:(?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.])))+)*))?))", "beginCaptures": { "1": { "name": "meta.head.union.cpp" }, "3": { "name": "storage.type.$3.cpp" }, "4": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "5": { "patterns": [ { "include": "#inline_comment" } ] }, "6": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "7": { "name": "comment.block.cpp" }, "8": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "9": { "name": "entity.name.other.preprocessor.macro.predefined.DLLEXPORT.cpp" }, "10": { "patterns": [ { "include": "#inline_comment" } ] }, "11": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "12": { "name": "comment.block.cpp" }, "13": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "14": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "15": { "name": "entity.name.type.$3.cpp" }, "16": { "name": "storage.type.modifier.final.cpp" }, "17": { "name": "punctuation.separator.colon.inheritance.cpp" }, "18": { "patterns": [ { "include": "#inheritance_context" } ] } }, "end": "(?:(?:(?<=\\}|%>|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.union.cpp" } }, "patterns": [ { "include": "#function_pointer" }, { "include": "#static_assert" }, { "include": "#constructor_inline" }, { "include": "#destructor_inline" }, { "include": "$base" } ] }, { "name": "meta.tail.union.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_enum_block": { "name": "meta.block.enum.cpp", "begin": "(((?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?\\s*((?|\\?\\?>)\\s*(;)|(;))|(?=[;>\\[\\]=]))|(?|\\?\\?>)", "endCaptures": { "1": { "name": "punctuation.section.block.end.bracket.curly.enum.cpp" } }, "patterns": [ { "include": "#enumerator_list" }, { "include": "#comments" }, { "include": "#comma" }, { "include": "#semicolon" } ] }, { "name": "meta.tail.enum.cpp", "begin": "(?<=\\}|%>|\\?\\?>)[\\s\\n]*", "end": "[\\s\\n]*(?=;)", "patterns": [ { "include": "$base" } ] } ] }, "macro_safe_template_definition": { "name": "meta.template.definition.cpp", "begin": "(?)|(?)", "endCaptures": { "1": { "name": "punctuation.section.angle-brackets.begin.template.call.cpp" } }, "patterns": [ { "include": "#template_call_context" } ] }, { "include": "#template_definition_context" } ] }, "macro_safe_block": { "name": "meta.block.cpp", "begin": "({)", "beginCaptures": { "1": { "name": "punctuation.section.block.begin.bracket.curly.cpp" } }, "end": "(}|(?=\\s*#\\s*(?:elif|else|endif)\\b))|(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "5": { "name": "keyword.other.static_assert.cpp" }, "6": { "patterns": [ { "include": "#inline_comment" } ] }, "7": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "8": { "name": "comment.block.cpp" }, "9": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "10": { "name": "punctuation.section.arguments.begin.bracket.round.static_assert.cpp" } }, "end": "(\\))|(?\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:(?:(?:short|signed|unsigned|long)|(?:class|struct|union|enum))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(((?:::)?(?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*\\s*+(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?::)*\\s*+)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\s*+((?]*|[^>]*+<[^>]*+>)++>\\s*)?(::))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?!(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|NULL|true|false|nullptr|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|final|override|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|if|elif|else|endif|ifdef|ifndef|define|undef|include|line|error|warning|pragma|_Pragma|defined|__has_include|__has_cpp_attribute|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized|audit|axiom|transaction_safe|transaction_safe_dynamic)\\b)((?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)\\b(?:(?]*|[^>]*+<[^>]*+>)++>\\s*)?(?![\\w<:.]))(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))?(?:(?:\\&|\\*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))*(?:\\&|\\*))?((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(\\()(\\*)\\s*((?:(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*)?)\\s*(?:(\\[)(\\w*)(\\])\\s*)*(\\))\\s*(\\()", "beginCaptures": { "1": { "name": "meta.qualified_type.cpp", "patterns": [ { "match": "(?:class|struct|union|enum)", "name": "storage.type.$0.cpp" }, { "include": "#attributes_context" }, { "include": "#function_type" }, { "include": "#storage_types" }, { "include": "#number_literal" }, { "include": "#string_context_c" }, { "include": "#comma" }, { "include": "#scope_resolution_inner_generated" }, { "include": "#template_call_range" }, { "match": "(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}))*", "name": "entity.name.type.cpp" } ] }, "2": { "patterns": [ { "include": "#attributes_context" }, { "include": "#number_literal" } ] }, "3": { "patterns": [ { "include": "#inline_comment" } ] }, "4": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "5": { "name": "comment.block.cpp" }, "6": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "7": { "patterns": [ { "include": "#inline_comment" } ] }, "8": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "9": { "name": "comment.block.cpp" }, "10": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "12": { "patterns": [ { "include": "#scope_resolution_inner_generated" } ] }, "13": { "name": "entity.name.scope-resolution.cpp" }, "14": { "name": "meta.template.call.cpp", "patterns": [ { "include": "#template_call_range" } ] }, "15": { "name": "punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp" }, "16": { "patterns": [ { "include": "#inline_comment" } ] }, "17": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "18": { "name": "comment.block.cpp" }, "19": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "20": { "name": "entity.name.type.cpp" }, "21": { "patterns": [ { "match": "\\*", "name": "storage.modifier.pointer.cpp" }, { "match": "(?:\\&((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))){2,}\\&", "captures": { "1": { "patterns": [ { "include": "#inline_comment" } ] }, "2": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "3": { "name": "comment.block.cpp" }, "4": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] } }, "name": "invalid.illegal.reference-type.cpp" }, { "match": "\\&", "name": "storage.modifier.reference.cpp" } ] }, "22": { "patterns": [ { "include": "#inline_comment" } ] }, "23": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "24": { "name": "comment.block.cpp" }, "25": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "26": { "patterns": [ { "include": "#inline_comment" } ] }, "27": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "28": { "name": "comment.block.cpp" }, "29": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "30": { "patterns": [ { "include": "#inline_comment" } ] }, "31": { "name": "comment.block.cpp punctuation.definition.comment.begin.cpp" }, "32": { "name": "comment.block.cpp" }, "33": { "patterns": [ { "match": "\\*\\/", "name": "comment.block.cpp punctuation.definition.comment.end.cpp" }, { "match": "\\*", "name": "comment.block.cpp" } ] }, "34": { "name": "punctuation.section.parens.begin.bracket.round.function.pointer.cpp" }, "35": { "name": "punctuation.definition.function.pointer.dereference.cpp" }, "36": { "name": "variable.other.definition.pointer.function.cpp" }, "37": { "name": "punctuation.definition.begin.bracket.square.cpp" }, "38": { "patterns": [ { "include": "#evaluation_context" } ] }, "39": { "name": "punctuation.definition.end.bracket.square.cpp" }, "40": { "name": "punctuation.section.parens.end.bracket.round.function.pointer.cpp" }, "41": { "name": "punctuation.section.parameters.begin.bracket.round.function.pointer.cpp" } }, "end": "(\\))((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?=[{=,);]|\\n)(?!\\()|(?