pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/MagicStack/MagicPython/commit/2c645de71031416cbbfcd1e62cc848e736dddac3

/> Further normalize string scopes · MagicStack/MagicPython@2c645de · GitHub
Skip to content

Commit 2c645de

Browse files
committed
Further normalize string scopes
1 parent 8afe08e commit 2c645de

22 files changed

+183
-183
lines changed

grammars/MagicPython.cson

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,7 @@ repository:
25832583
}
25842584
]
25852585
"string-raw-quoted-single-line":
2586-
name: "string.quoted.single.raw.python"
2586+
name: "string.quoted.raw.single.python"
25872587
begin: "\\b(([uU]R)|(R))(\\'|\")"
25882588
end: "(\\4)|((?<!\\\\)\\n)"
25892589
beginCaptures:
@@ -2604,7 +2604,7 @@ repository:
26042604
}
26052605
]
26062606
"string-bin-quoted-single-line":
2607-
name: "string.quoted.single.binary.python"
2607+
name: "string.quoted.binary.single.python"
26082608
begin: "(\\b[bB])(\\'|\")"
26092609
end: "(\\2)|((?<!\\\\)\\n)"
26102610
beginCaptures:
@@ -2623,7 +2623,7 @@ repository:
26232623
}
26242624
]
26252625
"string-raw-bin-quoted-single-line":
2626-
name: "string.quoted.single.raw.binary.python"
2626+
name: "string.quoted.raw.binary.single.python"
26272627
begin: "(\\b(?:R[bB]|[bB]R))(\\'|\")"
26282628
end: "(\\2)|((?<!\\\\)\\n)"
26292629
beginCaptures:
@@ -2663,7 +2663,7 @@ repository:
26632663
}
26642664
]
26652665
"string-raw-quoted-multi-line":
2666-
name: "string.quoted.multi.raw.python"
2666+
name: "string.quoted.raw.multi.python"
26672667
begin: "\\b(([uU]R)|(R))(\\'\\'\\'|\"\"\")"
26682668
end: "(\\4)"
26692669
beginCaptures:
@@ -2684,7 +2684,7 @@ repository:
26842684
}
26852685
]
26862686
"string-bin-quoted-multi-line":
2687-
name: "string.quoted.multi.binary.python"
2687+
name: "string.quoted.binary.multi.python"
26882688
begin: "(\\b[bB])(\\'\\'\\'|\"\"\")"
26892689
end: "(\\2)"
26902690
beginCaptures:
@@ -2703,7 +2703,7 @@ repository:
27032703
}
27042704
]
27052705
"string-raw-bin-quoted-multi-line":
2706-
name: "string.quoted.multi.raw.binary.python"
2706+
name: "string.quoted.raw.binary.multi.python"
27072707
begin: "(\\b(?:R[bB]|[bB]R))(\\'\\'\\'|\"\"\")"
27082708
end: "(\\2)"
27092709
beginCaptures:

grammars/MagicPython.tmLanguage

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4398,7 +4398,7 @@ indirectly through syntactic constructs
43984398
<key>string-raw-quoted-single-line</key>
43994399
<dict>
44004400
<key>name</key>
4401-
<string>string.quoted.single.raw.python</string>
4401+
<string>string.quoted.raw.single.python</string>
44024402
<key>begin</key>
44034403
<string>\b(([uU]R)|(R))(\&apos;|&quot;)</string>
44044404
<key>end</key>
@@ -4445,7 +4445,7 @@ indirectly through syntactic constructs
44454445
<key>string-bin-quoted-single-line</key>
44464446
<dict>
44474447
<key>name</key>
4448-
<string>string.quoted.single.binary.python</string>
4448+
<string>string.quoted.binary.single.python</string>
44494449
<key>begin</key>
44504450
<string>(\b[bB])(\&apos;|&quot;)</string>
44514451
<key>end</key>
@@ -4487,7 +4487,7 @@ indirectly through syntactic constructs
44874487
<key>string-raw-bin-quoted-single-line</key>
44884488
<dict>
44894489
<key>name</key>
4490-
<string>string.quoted.single.raw.binary.python</string>
4490+
<string>string.quoted.raw.binary.single.python</string>
44914491
<key>begin</key>
44924492
<string>(\b(?:R[bB]|[bB]R))(\&apos;|&quot;)</string>
44934493
<key>end</key>
@@ -4576,7 +4576,7 @@ indirectly through syntactic constructs
45764576
<key>string-raw-quoted-multi-line</key>
45774577
<dict>
45784578
<key>name</key>
4579-
<string>string.quoted.multi.raw.python</string>
4579+
<string>string.quoted.raw.multi.python</string>
45804580
<key>begin</key>
45814581
<string>\b(([uU]R)|(R))(\&apos;\&apos;\&apos;|&quot;&quot;&quot;)</string>
45824582
<key>end</key>
@@ -4623,7 +4623,7 @@ indirectly through syntactic constructs
46234623
<key>string-bin-quoted-multi-line</key>
46244624
<dict>
46254625
<key>name</key>
4626-
<string>string.quoted.multi.binary.python</string>
4626+
<string>string.quoted.binary.multi.python</string>
46274627
<key>begin</key>
46284628
<string>(\b[bB])(\&apos;\&apos;\&apos;|&quot;&quot;&quot;)</string>
46294629
<key>end</key>
@@ -4665,7 +4665,7 @@ indirectly through syntactic constructs
46654665
<key>string-raw-bin-quoted-multi-line</key>
46664666
<dict>
46674667
<key>name</key>
4668-
<string>string.quoted.multi.raw.binary.python</string>
4668+
<string>string.quoted.raw.binary.multi.python</string>
46694669
<key>begin</key>
46704670
<string>(\b(?:R[bB]|[bB]R))(\&apos;\&apos;\&apos;|&quot;&quot;&quot;)</string>
46714671
<key>end</key>

grammars/pystring.inc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repository:
33
string-raw-quoted-${line}-line:
4-
name: string.quoted.${line}.raw.python
4+
name: string.quoted.raw.${line}.python
55
begin: \b(([uU]R)|(R))(${marker})
66
end: (\4)${guard}
77
beginCaptures:
@@ -15,7 +15,7 @@ repository:
1515
- include: '#string-raw-guts'
1616

1717
string-bin-quoted-${line}-line:
18-
name: string.quoted.${line}.binary.python
18+
name: string.quoted.binary.${line}.python
1919
begin: (\b[bB])(${marker})
2020
end: (\2)${guard}
2121
beginCaptures:
@@ -28,7 +28,7 @@ repository:
2828
- include: '#string-entity'
2929

3030
string-raw-bin-quoted-${line}-line:
31-
name: string.quoted.${line}.raw.binary.python
31+
name: string.quoted.raw.binary.${line}.python
3232
begin: (\b(?:R[bB]|[bB]R))(${marker})
3333
end: (\2)${guard}
3434
beginCaptures:

test/docstrings/class1.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ class : meta.class.python, source.python, storage.type.class.python
7575
Foo : entity.name.type.class.python, meta.class.python, source.python
7676
: : meta.class.python, punctuation.section.class.begin.python, source.python
7777
: source.python
78-
b : source.python, storage.type.string.python, string.quoted.multi.binary.python
79-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
80-
TEST : source.python, string.quoted.multi.binary.python
81-
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
78+
b : source.python, storage.type.string.python, string.quoted.binary.multi.python
79+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
80+
TEST : source.python, string.quoted.binary.multi.python
81+
''' : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python
8282
: source.python
8383
class : meta.class.python, source.python, storage.type.class.python
8484
: meta.class.python, source.python
8585
Foo : entity.name.type.class.python, meta.class.python, source.python
8686
: : meta.class.python, punctuation.section.class.begin.python, source.python
8787
: source.python
88-
B : source.python, storage.type.string.python, string.quoted.multi.binary.python
89-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
90-
TEST : source.python, string.quoted.multi.binary.python
91-
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
88+
B : source.python, storage.type.string.python, string.quoted.binary.multi.python
89+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
90+
TEST : source.python, string.quoted.binary.multi.python
91+
''' : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python

test/docstrings/class2.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ class : meta.class.python, source.python, storage.type.class.python
7676
Foo : entity.name.type.class.python, meta.class.python, source.python
7777
: : meta.class.python, punctuation.section.class.begin.python, source.python
7878
: source.python
79-
b : source.python, storage.type.string.python, string.quoted.multi.binary.python
80-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
81-
TEST : source.python, string.quoted.multi.binary.python
82-
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
79+
b : source.python, storage.type.string.python, string.quoted.binary.multi.python
80+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
81+
TEST : source.python, string.quoted.binary.multi.python
82+
""" : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python
8383
: source.python
8484
class : meta.class.python, source.python, storage.type.class.python
8585
: meta.class.python, source.python
8686
Foo : entity.name.type.class.python, meta.class.python, source.python
8787
: : meta.class.python, punctuation.section.class.begin.python, source.python
8888
: source.python
89-
B : source.python, storage.type.string.python, string.quoted.multi.binary.python
90-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
91-
TEST : source.python, string.quoted.multi.binary.python
92-
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
89+
B : source.python, storage.type.string.python, string.quoted.binary.multi.python
90+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
91+
TEST : source.python, string.quoted.binary.multi.python
92+
""" : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python

test/docstrings/def1.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def : meta.function.python, source.python, storage.type.function.pytho
9393
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
9494
: : meta.function.python, punctuation.section.function.begin.python, source.python
9595
: source.python
96-
b : source.python, storage.type.string.python, string.quoted.multi.binary.python
97-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
98-
TEST : source.python, string.quoted.multi.binary.python
99-
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
96+
b : source.python, storage.type.string.python, string.quoted.binary.multi.python
97+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
98+
TEST : source.python, string.quoted.binary.multi.python
99+
''' : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python
100100
: source.python
101101
def : meta.function.python, source.python, storage.type.function.python
102102
: meta.function.python, source.python
@@ -105,7 +105,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
105105
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
106106
: : meta.function.python, punctuation.section.function.begin.python, source.python
107107
: source.python
108-
B : source.python, storage.type.string.python, string.quoted.multi.binary.python
109-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
110-
TEST : source.python, string.quoted.multi.binary.python
111-
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
108+
B : source.python, storage.type.string.python, string.quoted.binary.multi.python
109+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
110+
TEST : source.python, string.quoted.binary.multi.python
111+
''' : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python

test/docstrings/def2.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def : meta.function.python, source.python, storage.type.function.pytho
9393
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
9494
: : meta.function.python, punctuation.section.function.begin.python, source.python
9595
: source.python
96-
b : source.python, storage.type.string.python, string.quoted.multi.binary.python
97-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
98-
TEST : source.python, string.quoted.multi.binary.python
99-
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
96+
b : source.python, storage.type.string.python, string.quoted.binary.multi.python
97+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
98+
TEST : source.python, string.quoted.binary.multi.python
99+
""" : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python
100100
: source.python
101101
def : meta.function.python, source.python, storage.type.function.python
102102
: meta.function.python, source.python
@@ -105,7 +105,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
105105
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
106106
: : meta.function.python, punctuation.section.function.begin.python, source.python
107107
: source.python
108-
B : source.python, storage.type.string.python, string.quoted.multi.binary.python
109-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
110-
TEST : source.python, string.quoted.multi.binary.python
111-
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
108+
B : source.python, storage.type.string.python, string.quoted.binary.multi.python
109+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
110+
TEST : source.python, string.quoted.binary.multi.python
111+
""" : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python

test/docstrings/module1.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.python
3030
TEST : source.python, string.quoted.multi.python
3131
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.python
32-
b : source.python, storage.type.string.python, string.quoted.multi.binary.python
33-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
34-
TEST : source.python, string.quoted.multi.binary.python
35-
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
36-
B : source.python, storage.type.string.python, string.quoted.multi.binary.python
37-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
38-
TEST : source.python, string.quoted.multi.binary.python
39-
''' : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
32+
b : source.python, storage.type.string.python, string.quoted.binary.multi.python
33+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
34+
TEST : source.python, string.quoted.binary.multi.python
35+
''' : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python
36+
B : source.python, storage.type.string.python, string.quoted.binary.multi.python
37+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
38+
TEST : source.python, string.quoted.binary.multi.python
39+
''' : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python

test/docstrings/module2.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.python
3131
TEST : source.python, string.quoted.multi.python
3232
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.python
33-
b : source.python, storage.type.string.python, string.quoted.multi.binary.python
34-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
35-
TEST : source.python, string.quoted.multi.binary.python
36-
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
37-
B : source.python, storage.type.string.python, string.quoted.multi.binary.python
38-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.multi.binary.python
39-
TEST : source.python, string.quoted.multi.binary.python
40-
""" : punctuation.definition.string.end.python, source.python, string.quoted.multi.binary.python
33+
b : source.python, storage.type.string.python, string.quoted.binary.multi.python
34+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
35+
TEST : source.python, string.quoted.binary.multi.python
36+
""" : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python
37+
B : source.python, storage.type.string.python, string.quoted.binary.multi.python
38+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.binary.multi.python
39+
TEST : source.python, string.quoted.binary.multi.python
40+
""" : punctuation.definition.string.end.python, source.python, string.quoted.binary.multi.python

test/regexp/python1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
a : source.python
1818
= : keyword.operator.assignment.python, source.python
1919
: source.python
20-
R : source.python, storage.type.string.python, string.quoted.single.raw.python
21-
' : punctuation.definition.string.begin.python, source.python, string.quoted.single.raw.python
22-
[a-z] : source.python, string.quoted.single.raw.python
23-
' : punctuation.definition.string.end.python, source.python, string.quoted.single.raw.python
20+
R : source.python, storage.type.string.python, string.quoted.raw.single.python
21+
' : punctuation.definition.string.begin.python, source.python, string.quoted.raw.single.python
22+
[a-z] : source.python, string.quoted.raw.single.python
23+
' : punctuation.definition.string.end.python, source.python, string.quoted.raw.single.python

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy