name Regular Expression (Escaped) patterns include #classes include #anchorsWithBackslash include #allEscapes include #anchors include #quantifiers include #granularQuantifier include #operators include #sets include #groups repository allEscapes comment Order matters. patterns include #regexpEscapeSequences include #regexpEscapedBackslash include #jsonEscapeSequences anchors match [$^] name entity.other.attribute-name.anchor.escapedregexp anchorsWithBackslash match (?:\\\\[AbBZ]) name entity.other.attribute-name.anchor.escapedregexp classes comment XXX: Add unicode escapes \x00 and escapes within comments. match \\\\[dDsSwW] name keyword.other.character-class.escapedregexp granularQuantifier captures 1 name keyword.other.punctuation.quantifier.start.escapedregexp 2 name constant.numeric.escapedregexp 3 name keyword.other.separator.escapedregexp 4 name constant.numeric.escapedregexp 5 name keyword.other.punctuation.quantifier.end.escapedregexp match (\{)([0-9]+)(,)?([0-9]+)?(\}) name meta.granular.quantifier.escapedregexp groups begin \( beginCaptures 0 name string.regexp.group.escapedregexp comment XXX: Implement named groups, options and yes/no groups. end \) endCaptures 0 name string.regexp.group.escapedregexp patterns match (\?(?:[:=!>]|<[=!])) name support.function.assertion.escapedregexp include $self jsonEscapeSequences match \\[bfntr"/] name entity.other.attribute-name.escape.sequence.json.escapedregexp operators match [|.] name keyword.other.operator.escapedregexp quantifiers match (\+|\*|\?)(\?)? name keyword.other.quantifier.escapedregexp regexpEscapeSequences comment Escape next char if the slash isn't being escaped itself. match (?<!\\\\)\\\\(?:[]^+?*.(){}$\[]) name constant.character.escape.sequence.regexp.escapedregexp regexpEscapedBackslash match \\\\ name constant.character.escape.sequence.regexp.escapedregexp sets begin (\[)(\^)?(\])? beginCaptures 1 name keyword.other.set.escapedregexp 2 name keyword.other.set.operator.negate.escapedregexp 3 name string.set.element.escapedregexp end ] endCaptures 0 name keyword.other.set.escapedregexp patterns captures 1 name keyword.operator.other.set.range.separator.escapedregexp match [A-Za-z0-9](-)[A-Za-z0-9] name support.function.set.range.escapedregexp include #regexpEscapeSequences include #classes include #jsonEscapeSequences match .*? name string.set.element.escapedregexp scopeName source.escapedregexp uuid 26c6799e-6824-4926-b2e5-87140300b97b