solorice/vscode/extensions/magicstack.magicpython-1.1.1/test/regexp/group1.re
2022-04-28 20:54:44 +03:00

31 lines
1.9 KiB
C++

(?x)
(?:not) (foo)
.* (?P<bar>BAR)
\1 (?P=bar)
(?x) : source.regexp.python, storage.modifier.flag.regexp
: source.regexp.python
(?: : punctuation.parenthesis.non-capturing.begin.regexp, source.regexp.python, support.other.parenthesis.regexp
not : source.regexp.python
) : punctuation.parenthesis.non-capturing.end.regexp, source.regexp.python, support.other.parenthesis.regexp
: source.regexp.python
( : punctuation.parenthesis.begin.regexp, source.regexp.python, support.other.parenthesis.regexp
foo : source.regexp.python
) : punctuation.parenthesis.end.regexp, source.regexp.python, support.other.parenthesis.regexp
: source.regexp.python
. : source.regexp.python, support.other.match.any.regexp
* : keyword.operator.quantifier.regexp, source.regexp.python
: source.regexp.python
( : meta.named.regexp, punctuation.parenthesis.named.begin.regexp, source.regexp.python, support.other.parenthesis.regexp
?P<bar> : entity.name.tag.named.group.regexp, meta.named.regexp, source.regexp.python
BAR : meta.named.regexp, source.regexp.python
) : meta.named.regexp, punctuation.parenthesis.named.end.regexp, source.regexp.python, support.other.parenthesis.regexp
: source.regexp.python
\1 : entity.name.tag.backreference.regexp, meta.backreference.regexp, source.regexp.python
: source.regexp.python
( : meta.backreference.named.regexp, punctuation.parenthesis.backreference.named.begin.regexp, source.regexp.python, support.other.parenthesis.regexp
?P=bar : entity.name.tag.named.backreference.regexp, meta.backreference.named.regexp, source.regexp.python
) : meta.backreference.named.regexp, punctuation.parenthesis.backreference.named.end.regexp, source.regexp.python, support.other.parenthesis.regexp