Path: blob/main/src/vs/editor/common/languages/highlights/regex.scm
3296 views
; Order matters! Place lower precedence first.1[2"?"3"="4"!"5] @keyword.operator.regexp67[8"("9")"10] @punctuation.definition.group.regexp1112[13">"14"{"15"}"16] @punctuation.regexp1718[19"["20"]"21] @punctuation.definition.character-class.regexp2223(24([25"(?<"26] @punctuation.definition.group.assertion.regexp)27.28[29"="30"!"31] @punctuation.definition.group.assertion.regexp32) @meta.assertion.look-behind.regexp3334(35([36"(?"37] @punctuation.definition.group.assertion.regexp)38.39[40"="41"!"42] @punctuation.definition.group.assertion.regexp43) @meta.assertion.look-ahead.regexp4445"(?:" @punctuation.definition.group.regexp @punctuation.definition.group.no-capture.regexp4647(lookaround_assertion ("!") @punctuation.definition.group.assertion.regexp)4849(named_capturing_group) @punctuation.definition.group.regexp5051(group_name) @variable.other.regexp5253[54(control_letter_escape)55(non_boundary_assertion)56] @string.escape.regexp5758[59(start_assertion)60(end_assertion)61(boundary_assertion)62] @keyword.control.anchor.regexp6364(class_character) @constant.character-class.regexp6566(identity_escape) @constant.character.escape.regexp6768[69((identity_escape) @internal.regexp (#match? @internal.regexp "\\[^ux]"))70] @constant.character.escape.regexp7172(73((identity_escape) @internal.regexp (#eq? @internal.regexp "\\u"))74.75(pattern_character) @constant.character.numeric.regexp76.77(pattern_character) @constant.character.numeric.regexp78.79(pattern_character) @constant.character.numeric.regexp80.81(pattern_character) @constant.character.numeric.regexp82) @constant.character.numeric.regexp8384(85((identity_escape) @internal.regexp (#eq? @internal.regexp "\\x"))86.87(pattern_character) @constant.character.numeric.regexp88.89(pattern_character) @constant.character.numeric.regexp90) @constant.character.numeric.regexp9192(93((identity_escape) @internal.regexp (#eq? @internal.regexp "\\x"))94.95(class_character) @constant.character.numeric.regexp96.97(class_character) @constant.character.numeric.regexp98) @constant.character.numeric.regexp99100(control_escape) @constant.other.character-class.regexp101102(character_class_escape) @constant.character.escape.regexp103104(decimal_escape) @keyword.other.back-reference.regexp105106("|") @keyword.operator.or.regexp107108[109"*"110"+"111] @keyword.operator.quantifier.regexp112113(count_quantifier) @keyword.operator.quantifier.regexp114115[116(lazy)117] @keyword.operator.quantifier.regexp118119(optional ("?") @keyword.operator.quantifier.regexp)120121(character_class122[123"^" @keyword.operator.negation.regexp124(class_range "-" @constant.other.character-class.range.regexp)125])126127128