11# [PackageDev] target_format: plist, ext: tmLanguage
22comment : Matches Python's regular expression syntax.
33name : Regular Expressions (PythonImproved)
4- scopeName : source.regex .python
4+ scopeName : source.regexp .python.improved
55fileTypes : [re]
66uuid : DD867ABF-1EC6-415D-B047-687F550A1D51
77
88patterns :
9- - name : keyword.control.anchor.regex
9+ - name : keyword.control.anchor.regexp
1010 match : \\[bBAZzG]|\^|\$
1111
12- - name : keyword.other.back-reference.regex
12+ - name : keyword.other.back-reference.regexp
1313 match : \\[1-9][0-9]?
1414
15- - name : keyword.operator.quantifier.regex
15+ - name : keyword.operator.quantifier.regexp
1616 match : ' [?+*][?+]?|\{(\d+,\d+|\d+,|,\d+|\d+)\}\??'
1717
18- - name : keyword.operator.or.regex
18+ - name : keyword.operator.or.regexp
1919 match : \|
2020
21- - name : comment.block.regex
21+ - name : comment.block.regexp
2222 begin : \(\?\#
2323 end : \)
2424
2525- comment : We are restrictive in what we allow to go after the comment character to
26- avoid false positives, since the availability of comments depend on regex flags.
27- name : comment.line.number-sign.regex
26+ avoid false positives, since the availability of comments depend on regexp flags.
27+ name : comment.line.number-sign.regexp
2828 match : (?<=^|\s)#\s[[a-zA-Z0-9,. \t?!-:][^\x{00}-\x{7F}]]*$
2929
30- - name : keyword.other.option-toggle.regex
30+ - name : keyword.other.option-toggle.regexp
3131 match : \(\?[iLmsux]+\)
3232
33- - name : keyword.other.back-reference.named.regex
33+ - name : keyword.other.back-reference.named.regexp
3434 match : (\()(\?P=([a-zA-Z_][a-zA-Z_0-9]*\w*))(\))
3535
36- - name : meta.group.assertion.regex
36+ - name : meta.group.assertion.regexp
3737 begin : (\()((\?=)|(\?!)|(\?<=)|(\?<!))
3838 beginCaptures :
39- ' 1 ' : {name: punctuation.definition.group.regex }
40- ' 2 ' : {name: punctuation.definition.group.assertion.regex }
41- ' 3 ' : {name: meta.assertion.look-ahead.regex }
42- ' 4 ' : {name: meta.assertion.negative-look-ahead.regex }
43- ' 5 ' : {name: meta.assertion.look-behind.regex }
44- ' 6 ' : {name: meta.assertion.negative-look-behind.regex }
39+ ' 1 ' : {name: punctuation.definition.group.regexp }
40+ ' 2 ' : {name: punctuation.definition.group.assertion.regexp }
41+ ' 3 ' : {name: meta.assertion.look-ahead.regexp }
42+ ' 4 ' : {name: meta.assertion.negative-look-ahead.regexp }
43+ ' 5 ' : {name: meta.assertion.look-behind.regexp }
44+ ' 6 ' : {name: meta.assertion.negative-look-behind.regexp }
4545 end : (\))
4646 endCaptures :
47- ' 1 ' : {name: punctuation.definition.group.regex }
47+ ' 1 ' : {name: punctuation.definition.group.regexp }
4848 patterns :
4949 - include : $self
5050
5151- comment : we can make this more sophisticated to match the | character that separates
5252 yes-pattern from no-pattern, but it's not really necessary.
53- name : meta.group.assertion.conditional.regex
53+ name : meta.group.assertion.conditional.regexp
5454 begin : (\()(\?\(([1-9][0-9]?|[a-zA-Z_][a-zA-Z_0-9]*)\))
5555 beginCaptures :
56- ' 1 ' : {name: punctuation.definition.group.regex }
57- ' 2 ' : {name: punctuation.definition.group.assertion.conditional.regex }
58- ' 3 ' : {name: entity.name.section.back-reference.regex }
56+ ' 1 ' : {name: punctuation.definition.group.regexp }
57+ ' 2 ' : {name: punctuation.definition.group.assertion.conditional.regexp }
58+ ' 3 ' : {name: entity.name.section.back-reference.regexp }
5959 end : (\))
6060 patterns :
6161 - include : $self
6262
63- - name : meta.group.regex
63+ - name : meta.group.regexp
6464 begin : (\()((\?P<)([A-Za-z]\w*)(>)|(\?:))?
6565 beginCaptures :
66- ' 1 ' : {name: punctuation.definition.group.regex }
67- ' 3 ' : {name: punctuation.definition.group.capture.regex }
68- ' 4 ' : {name: entity.name.section.group.regex }
69- ' 5 ' : {name: punctuation.definition.group.capture.regex }
70- ' 6 ' : {name: punctuation.definition.group.no-capture.regex }
66+ ' 1 ' : {name: punctuation.definition.group.regexp }
67+ ' 3 ' : {name: punctuation.definition.group.capture.regexp }
68+ ' 4 ' : {name: entity.name.section.group.regexp }
69+ ' 5 ' : {name: punctuation.definition.group.capture.regexp }
70+ ' 6 ' : {name: punctuation.definition.group.no-capture.regexp }
7171 end : (\))
7272 endCaptures :
73- ' 1 ' : {name: punctuation.definition.group.regex }
73+ ' 1 ' : {name: punctuation.definition.group.regexp }
7474 patterns :
7575 - include : $self
7676
@@ -90,28 +90,28 @@ repository:
9090 (D)
9191 )
9292 captures:
93- '2': {name: constant.character.character-class.word.regex }
94- '3': {name: constant.character.character-class.non-word.regex }
95- '4': {name: constant.character.character-class.whitespace.regex }
96- '5': {name: constant.character.character-class.non-whitespace.regex }
97- '6': {name: constant.character.character-class.digit.regex }
98- '7': {name: constant.character.character-class.non-digit.regex }
99- - name : constant.character.escape.backslash.regex
93+ '2': {name: constant.character.character-class.word.regexp }
94+ '3': {name: constant.character.character-class.non-word.regexp }
95+ '4': {name: constant.character.character-class.whitespace.regexp }
96+ '5': {name: constant.character.character-class.non-whitespace.regexp }
97+ '6': {name: constant.character.character-class.digit.regexp }
98+ '7': {name: constant.character.character-class.non-digit.regexp }
99+ - name : constant.character.escape.backslash.regexp
100100 match : \\.
101- - name : constant.other.character-class.set.regex
101+ - name : constant.other.character-class.set.regexp
102102 begin : (\[)(\^)?
103103 beginCaptures :
104- ' 1 ' : {name: punctuation.definition.character-class.regex }
105- ' 2 ' : {name: keyword.operator.negation.regex }
104+ ' 1 ' : {name: punctuation.definition.character-class.regexp }
105+ ' 2 ' : {name: keyword.operator.negation.regexp }
106106 end : (\])
107107 endCaptures :
108- ' 1 ' : {name: punctuation.definition.character-class.regex }
108+ ' 1 ' : {name: punctuation.definition.character-class.regexp }
109109 patterns :
110110 - include : ' #character-class'
111- - name : constant.other.character-class.range.regex
111+ - name : constant.other.character-class.range.regexp
112112 match : ((\\.)|.)\-((\\.)|[^\]])
113113 captures :
114- ' 2 ' : {name: constant.character.escape.backslash.regex }
115- ' 4 ' : {name: constant.character.escape.backslash.regex }
114+ ' 2 ' : {name: constant.character.escape.backslash.regexp }
115+ ' 4 ' : {name: constant.character.escape.backslash.regexp }
116116foldingStartMarker : (/\*|\{|\()
117117foldingStopMarker : (\*/|\}|\))
0 commit comments