Skip to content

Commit 9b1ab9a

Browse files
committed
Rename top level scope 'source.regexp' to 'source.regexp.pyhton'.
1 parent 290f19d commit 9b1ab9a

27 files changed

+243
-225
lines changed

grammars/MagicPython.YAML-tmLanguage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ repository:
250250
'1': {name: punctuation.definition.string.end.python}
251251
'2': {name: invalid.illegal.newline.python}
252252
patterns:
253-
- include: 'source.regexp'
253+
- include: 'source.regexp.python'
254254

255255
regexp-double-quoted-single-line:
256256
name: string.quoted.double.raw.python
@@ -263,7 +263,7 @@ repository:
263263
'1': {name: punctuation.definition.string.end.python}
264264
'2': {name: invalid.illegal.newline.python}
265265
patterns:
266-
- include: 'source.regexp'
266+
- include: 'source.regexp.python'
267267

268268
regexp-single-quoted-multi-line:
269269
name: string.quoted.triple.raw.python
@@ -275,7 +275,7 @@ repository:
275275
endCaptures:
276276
'0': {name: punctuation.definition.string.end.python}
277277
patterns:
278-
- include: 'source.regexp'
278+
- include: 'source.regexp.python'
279279

280280
regexp-double-quoted-multi-line:
281281
name: string.quoted.triple.raw.python
@@ -287,7 +287,7 @@ repository:
287287
endCaptures:
288288
'0': {name: punctuation.definition.string.end.python}
289289
patterns:
290-
- include: 'source.regexp'
290+
- include: 'source.regexp.python'
291291

292292
string:
293293
name: string.python

grammars/MagicPython.cson

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ repository:
395395
name: "invalid.illegal.newline.python"
396396
patterns: [
397397
{
398-
include: "source.regexp"
398+
include: "source.regexp.python"
399399
}
400400
]
401401
"regexp-double-quoted-single-line":
@@ -414,7 +414,7 @@ repository:
414414
name: "invalid.illegal.newline.python"
415415
patterns: [
416416
{
417-
include: "source.regexp"
417+
include: "source.regexp.python"
418418
}
419419
]
420420
"regexp-single-quoted-multi-line":
@@ -431,7 +431,7 @@ repository:
431431
name: "punctuation.definition.string.end.python"
432432
patterns: [
433433
{
434-
include: "source.regexp"
434+
include: "source.regexp.python"
435435
}
436436
]
437437
"regexp-double-quoted-multi-line":
@@ -448,7 +448,7 @@ repository:
448448
name: "punctuation.definition.string.end.python"
449449
patterns: [
450450
{
451-
include: "source.regexp"
451+
include: "source.regexp.python"
452452
}
453453
]
454454
string:

grammars/MagicPython.tmLanguage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
<array>
635635
<dict>
636636
<key>include</key>
637-
<string>source.regexp</string>
637+
<string>source.regexp.python</string>
638638
</dict>
639639
</array>
640640
</dict>
@@ -676,7 +676,7 @@
676676
<array>
677677
<dict>
678678
<key>include</key>
679-
<string>source.regexp</string>
679+
<string>source.regexp.python</string>
680680
</dict>
681681
</array>
682682
</dict>
@@ -713,7 +713,7 @@
713713
<array>
714714
<dict>
715715
<key>include</key>
716-
<string>source.regexp</string>
716+
<string>source.regexp.python</string>
717717
</dict>
718718
</array>
719719
</dict>
@@ -750,7 +750,7 @@
750750
<array>
751751
<dict>
752752
<key>include</key>
753-
<string>source.regexp</string>
753+
<string>source.regexp.python</string>
754754
</dict>
755755
</array>
756756
</dict>

grammars/MagicRegExp.YAML-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# [PackageDev] target_format: plist, ext: tmLanguage
22
---
33
name: MagicRegExp
4-
scopeName: source.regexp
4+
scopeName: source.regexp.python
55
fileTypes: [re]
66
uuid: 39e15186-71e6-11e5-b82c-7c6d62900c7c
77
author: Victor Petrovykh victor@magic.io

grammars/MagicRegExp.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTOGENERATED FROM grammars/MagicRegExp.YAML-tmLanguage
22
name: "MagicRegExp"
3-
scopeName: "source.regexp"
3+
scopeName: "source.regexp.python"
44
fileTypes: [
55
"re"
66
]

grammars/MagicRegExp.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<key>name</key>
77
<string>MagicRegExp</string>
88
<key>scopeName</key>
9-
<string>source.regexp</string>
9+
<string>source.regexp.python</string>
1010
<key>fileTypes</key>
1111
<array>
1212
<string>re</string>

test/regexp/comments1.re

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ foo(?#comment)bar
22

33

44

5-
foo : source.regexp
6-
(?# : comment.regexp, punctuation.comments.begin.regexp, source.regexp
7-
comment : comment.regexp, source.regexp
8-
) : comment.regexp, punctuation.comments.end.regexp, source.regexp
9-
bar : source.regexp
5+
foo : source.regexp.python
6+
(?# : comment.regexp, punctuation.comments.begin.regexp, source.regexp.python
7+
comment : comment.regexp, source.regexp.python
8+
) : comment.regexp, punctuation.comments.end.regexp, source.regexp.python
9+
bar : source.regexp.python

test/regexp/comments2.re

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ comment 1
66

77

88

9-
(?x) : source.regexp, storage.modifier.flag.regexp
10-
foo : source.regexp
11-
(?# : comment.regexp, punctuation.comments.begin.regexp, source.regexp
12-
comment 1 : comment.regexp, source.regexp
13-
: comment.regexp, source.regexp
14-
) : comment.regexp, punctuation.comments.end.regexp, source.regexp
15-
bar : source.regexp
16-
(?# : comment.regexp, punctuation.comments.begin.regexp, source.regexp
17-
comment 2 : comment.regexp, source.regexp
18-
) : comment.regexp, punctuation.comments.end.regexp, source.regexp
9+
(?x) : source.regexp.python, storage.modifier.flag.regexp
10+
foo : source.regexp.python
11+
(?# : comment.regexp, punctuation.comments.begin.regexp, source.regexp.python
12+
comment 1 : comment.regexp, source.regexp.python
13+
: comment.regexp, source.regexp.python
14+
) : comment.regexp, punctuation.comments.end.regexp, source.regexp.python
15+
bar : source.regexp.python
16+
(?# : comment.regexp, punctuation.comments.begin.regexp, source.regexp.python
17+
comment 2 : comment.regexp, source.regexp.python
18+
) : comment.regexp, punctuation.comments.end.regexp, source.regexp.python

test/regexp/conditional1.re

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33

44

5-
( : punctuation.parenthesis.begin.regexp support.other.parenthesis.regexp, source.regexp
6-
< : source.regexp
7-
) : punctuation.parenthesis.end.regexp support.other.parenthesis.regexp, source.regexp
8-
? : keyword.operator.quantifier.regexp, source.regexp
9-
( : punctuation.parenthesis.begin.regexp support.other.parenthesis.regexp, source.regexp
10-
\w : source.regexp, support.other.escape.special.regexp
11-
+ : keyword.operator.quantifier.regexp, source.regexp
12-
@ : source.regexp
13-
\w : source.regexp, support.other.escape.special.regexp
14-
+ : keyword.operator.quantifier.regexp, source.regexp
15-
(?: : punctuation.parenthesis.non-capturing.begin.regexp support.other.parenthesis.regexp, source.regexp
16-
\. : constant.character.escape.regexp, source.regexp
17-
\w : source.regexp, support.other.escape.special.regexp
18-
+ : keyword.operator.quantifier.regexp, source.regexp
19-
) : punctuation.parenthesis.non-capturing.end.regexp support.other.parenthesis.regexp, source.regexp
20-
+ : keyword.operator.quantifier.regexp, source.regexp
21-
) : punctuation.parenthesis.end.regexp support.other.parenthesis.regexp, source.regexp
22-
( : keyword.operator.conditional.regexp, punctuation.parenthesis.conditional.begin.regexp, source.regexp
23-
?(1) : keyword.operator.conditional.regexp, source.regexp
24-
> : source.regexp
25-
| : keyword.operator.disjunction.regexp, source.regexp
26-
$ : source.regexp, support.other.match.end.regexp
27-
) : punctuation.parenthesis.conditional.end.regexp keyword.operator.conditional.negative.regexp, source.regexp
5+
( : punctuation.parenthesis.begin.regexp support.other.parenthesis.regexp, source.regexp.python
6+
< : source.regexp.python
7+
) : punctuation.parenthesis.end.regexp support.other.parenthesis.regexp, source.regexp.python
8+
? : keyword.operator.quantifier.regexp, source.regexp.python
9+
( : punctuation.parenthesis.begin.regexp support.other.parenthesis.regexp, source.regexp.python
10+
\w : source.regexp.python, support.other.escape.special.regexp
11+
+ : keyword.operator.quantifier.regexp, source.regexp.python
12+
@ : source.regexp.python
13+
\w : source.regexp.python, support.other.escape.special.regexp
14+
+ : keyword.operator.quantifier.regexp, source.regexp.python
15+
(?: : punctuation.parenthesis.non-capturing.begin.regexp support.other.parenthesis.regexp, source.regexp.python
16+
\. : constant.character.escape.regexp, source.regexp.python
17+
\w : source.regexp.python, support.other.escape.special.regexp
18+
+ : keyword.operator.quantifier.regexp, source.regexp.python
19+
) : punctuation.parenthesis.non-capturing.end.regexp support.other.parenthesis.regexp, source.regexp.python
20+
+ : keyword.operator.quantifier.regexp, source.regexp.python
21+
) : punctuation.parenthesis.end.regexp support.other.parenthesis.regexp, source.regexp.python
22+
( : keyword.operator.conditional.regexp, punctuation.parenthesis.conditional.begin.regexp, source.regexp.python
23+
?(1) : keyword.operator.conditional.regexp, source.regexp.python
24+
> : source.regexp.python
25+
| : keyword.operator.disjunction.regexp, source.regexp.python
26+
$ : source.regexp.python, support.other.match.end.regexp
27+
) : punctuation.parenthesis.conditional.end.regexp keyword.operator.conditional.negative.regexp, source.regexp.python

test/regexp/escaping1.re

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ bar
33

44

55

6-
foo : source.regexp
7-
\ : constant.character.escape.regexp, source.regexp
8-
bar : source.regexp
6+
foo : source.regexp.python
7+
\ : constant.character.escape.regexp, source.regexp.python
8+
bar : source.regexp.python

0 commit comments

Comments
 (0)