Skip to content

Commit 8afe08e

Browse files
committed
Add 'multi' to 'string.quoted.docstring' scope
1 parent 19af47f commit 8afe08e

20 files changed

+327
-327
lines changed

Diff for: grammars/MagicPython.YAML-tmLanguage

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ repository:
9797

9898
docstring:
9999
patterns:
100-
- name: string.quoted.docstring.python
100+
- name: string.quoted.docstring.multi.python
101101
begin: (\'\'\'|\"\"\")
102102
end: (\1)
103103
beginCaptures:
@@ -108,7 +108,7 @@ repository:
108108
- include: '#docstring-guts-common'
109109
- include: '#docstring-guts-unicode'
110110

111-
- name: string.quoted.docstring.raw.python
111+
- name: string.quoted.docstring.raw.multi.python
112112
begin: ([rR])(\'\'\'|\"\"\")
113113
end: (\2)
114114
beginCaptures:

Diff for: grammars/MagicPython.cson

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ repository:
7878
docstring:
7979
patterns: [
8080
{
81-
name: "string.quoted.docstring.python"
81+
name: "string.quoted.docstring.multi.python"
8282
begin: "(\\'\\'\\'|\\\"\\\"\\\")"
8383
end: "(\\1)"
8484
beginCaptures:
@@ -97,7 +97,7 @@ repository:
9797
]
9898
}
9999
{
100-
name: "string.quoted.docstring.raw.python"
100+
name: "string.quoted.docstring.raw.multi.python"
101101
begin: "([rR])(\\'\\'\\'|\\\"\\\"\\\")"
102102
end: "(\\2)"
103103
beginCaptures:

Diff for: grammars/MagicPython.tmLanguage

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<array>
121121
<dict>
122122
<key>name</key>
123-
<string>string.quoted.docstring.python</string>
123+
<string>string.quoted.docstring.multi.python</string>
124124
<key>begin</key>
125125
<string>(\&apos;\&apos;\&apos;|\&quot;\&quot;\&quot;)</string>
126126
<key>end</key>
@@ -155,7 +155,7 @@
155155
</dict>
156156
<dict>
157157
<key>name</key>
158-
<string>string.quoted.docstring.raw.python</string>
158+
<string>string.quoted.docstring.raw.multi.python</string>
159159
<key>begin</key>
160160
<string>([rR])(\&apos;\&apos;\&apos;|\&quot;\&quot;\&quot;)</string>
161161
<key>end</key>

Diff for: test/docstrings/class1.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,29 @@ class : meta.class.python, source.python, storage.type.class.python
2626
Foo : entity.name.type.class.python, meta.class.python, source.python
2727
: : meta.class.python, punctuation.section.class.begin.python, source.python
2828
: source.python
29-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.python
30-
TEST : source.python, string.quoted.docstring.python
31-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.python
29+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.multi.python
30+
TEST : source.python, string.quoted.docstring.multi.python
31+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.multi.python
3232
: source.python
3333
class : meta.class.python, source.python, storage.type.class.python
3434
: meta.class.python, source.python
3535
Foo : entity.name.type.class.python, meta.class.python, source.python
3636
: : meta.class.python, punctuation.section.class.begin.python, source.python
3737
: source.python
38-
r : source.python, storage.type.string.python, string.quoted.docstring.raw.python
39-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
40-
TEST : source.python, string.quoted.docstring.raw.python
41-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
38+
r : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
39+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
40+
TEST : source.python, string.quoted.docstring.raw.multi.python
41+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
4242
: source.python
4343
class : meta.class.python, source.python, storage.type.class.python
4444
: meta.class.python, source.python
4545
Foo : entity.name.type.class.python, meta.class.python, source.python
4646
: : meta.class.python, punctuation.section.class.begin.python, source.python
4747
: source.python
48-
R : source.python, storage.type.string.python, string.quoted.docstring.raw.python
49-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
50-
TEST : source.python, string.quoted.docstring.raw.python
51-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
48+
R : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
49+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
50+
TEST : source.python, string.quoted.docstring.raw.multi.python
51+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
5252
: source.python
5353
class : meta.class.python, source.python, storage.type.class.python
5454
: meta.class.python, source.python

Diff for: test/docstrings/class2.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ class : meta.class.python, source.python, storage.type.class.python
2727
Foo : entity.name.type.class.python, meta.class.python, source.python
2828
: : meta.class.python, punctuation.section.class.begin.python, source.python
2929
: source.python
30-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.python
31-
TEST : source.python, string.quoted.docstring.python
32-
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.python
30+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.multi.python
31+
TEST : source.python, string.quoted.docstring.multi.python
32+
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.multi.python
3333
: source.python
3434
class : meta.class.python, source.python, storage.type.class.python
3535
: meta.class.python, source.python
3636
Foo : entity.name.type.class.python, meta.class.python, source.python
3737
: : meta.class.python, punctuation.section.class.begin.python, source.python
3838
: source.python
39-
r : source.python, storage.type.string.python, string.quoted.docstring.raw.python
40-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
41-
TEST : source.python, string.quoted.docstring.raw.python
42-
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
39+
r : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
40+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
41+
TEST : source.python, string.quoted.docstring.raw.multi.python
42+
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
4343
: source.python
4444
class : meta.class.python, source.python, storage.type.class.python
4545
: meta.class.python, source.python
4646
Foo : entity.name.type.class.python, meta.class.python, source.python
4747
: : meta.class.python, punctuation.section.class.begin.python, source.python
4848
: source.python
49-
R : source.python, storage.type.string.python, string.quoted.docstring.raw.python
50-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
51-
TEST : source.python, string.quoted.docstring.raw.python
52-
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
49+
R : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
50+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
51+
TEST : source.python, string.quoted.docstring.raw.multi.python
52+
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
5353
: source.python
5454
class : meta.class.python, source.python, storage.type.class.python
5555
: meta.class.python, source.python

Diff for: test/docstrings/continuation1.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
: source.python
4343
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
4444
docstring : comment.line.number-sign.python, source.python
45-
r : source.python, storage.type.string.python, string.quoted.docstring.raw.python
46-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
47-
>>> : keyword.control.flow.python, source.python, string.quoted.docstring.raw.python
48-
print() : source.python, string.quoted.docstring.raw.python
49-
a[wer] : source.python, string.quoted.docstring.raw.python
50-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
45+
r : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
46+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
47+
>>> : keyword.control.flow.python, source.python, string.quoted.docstring.raw.multi.python
48+
print() : source.python, string.quoted.docstring.raw.multi.python
49+
a[wer] : source.python, string.quoted.docstring.raw.multi.python
50+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python

Diff for: test/docstrings/def1.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def : meta.function.python, source.python, storage.type.function.pytho
2828
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
2929
: : meta.function.python, punctuation.section.function.begin.python, source.python
3030
: source.python
31-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.python
32-
TE : source.python, string.quoted.docstring.python
33-
\' : constant.character.python, source.python, string.quoted.docstring.python
34-
''ST : source.python, string.quoted.docstring.python
35-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.python
31+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.multi.python
32+
TE : source.python, string.quoted.docstring.multi.python
33+
\' : constant.character.python, source.python, string.quoted.docstring.multi.python
34+
''ST : source.python, string.quoted.docstring.multi.python
35+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.multi.python
3636
: source.python
3737
def : meta.function.python, source.python, storage.type.function.python
3838
: meta.function.python, source.python
@@ -41,12 +41,12 @@ def : meta.function.python, source.python, storage.type.function.pytho
4141
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
4242
: : meta.function.python, punctuation.section.function.begin.python, source.python
4343
: source.python
44-
r : source.python, storage.type.string.python, string.quoted.docstring.raw.python
45-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
46-
TE : source.python, string.quoted.docstring.raw.python
47-
\' : source.python, string.quoted.docstring.raw.python
48-
''ST : source.python, string.quoted.docstring.raw.python
49-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
44+
r : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
45+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
46+
TE : source.python, string.quoted.docstring.raw.multi.python
47+
\' : source.python, string.quoted.docstring.raw.multi.python
48+
''ST : source.python, string.quoted.docstring.raw.multi.python
49+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
5050
: source.python
5151
def : meta.function.python, source.python, storage.type.function.python
5252
: meta.function.python, source.python
@@ -55,12 +55,12 @@ def : meta.function.python, source.python, storage.type.function.pytho
5555
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
5656
: : meta.function.python, punctuation.section.function.begin.python, source.python
5757
: source.python
58-
R : source.python, storage.type.string.python, string.quoted.docstring.raw.python
59-
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
60-
TE : source.python, string.quoted.docstring.raw.python
61-
\' : source.python, string.quoted.docstring.raw.python
62-
''ST : source.python, string.quoted.docstring.raw.python
63-
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
58+
R : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
59+
''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
60+
TE : source.python, string.quoted.docstring.raw.multi.python
61+
\' : source.python, string.quoted.docstring.raw.multi.python
62+
''ST : source.python, string.quoted.docstring.raw.multi.python
63+
''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
6464
: source.python
6565
def : meta.function.python, source.python, storage.type.function.python
6666
: meta.function.python, source.python

Diff for: test/docstrings/def2.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def : meta.function.python, source.python, storage.type.function.pytho
2828
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
2929
: : meta.function.python, punctuation.section.function.begin.python, source.python
3030
: source.python
31-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.python
32-
TE : source.python, string.quoted.docstring.python
33-
\" : constant.character.python, source.python, string.quoted.docstring.python
34-
""ST : source.python, string.quoted.docstring.python
35-
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.python
31+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.multi.python
32+
TE : source.python, string.quoted.docstring.multi.python
33+
\" : constant.character.python, source.python, string.quoted.docstring.multi.python
34+
""ST : source.python, string.quoted.docstring.multi.python
35+
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.multi.python
3636
: source.python
3737
def : meta.function.python, source.python, storage.type.function.python
3838
: meta.function.python, source.python
@@ -41,12 +41,12 @@ def : meta.function.python, source.python, storage.type.function.pytho
4141
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
4242
: : meta.function.python, punctuation.section.function.begin.python, source.python
4343
: source.python
44-
r : source.python, storage.type.string.python, string.quoted.docstring.raw.python
45-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
46-
TE : source.python, string.quoted.docstring.raw.python
47-
\" : source.python, string.quoted.docstring.raw.python
48-
""ST : source.python, string.quoted.docstring.raw.python
49-
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
44+
r : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
45+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
46+
TE : source.python, string.quoted.docstring.raw.multi.python
47+
\" : source.python, string.quoted.docstring.raw.multi.python
48+
""ST : source.python, string.quoted.docstring.raw.multi.python
49+
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
5050
: source.python
5151
def : meta.function.python, source.python, storage.type.function.python
5252
: meta.function.python, source.python
@@ -55,12 +55,12 @@ def : meta.function.python, source.python, storage.type.function.pytho
5555
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
5656
: : meta.function.python, punctuation.section.function.begin.python, source.python
5757
: source.python
58-
R : source.python, storage.type.string.python, string.quoted.docstring.raw.python
59-
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.python
60-
TE : source.python, string.quoted.docstring.raw.python
61-
\" : source.python, string.quoted.docstring.raw.python
62-
""ST : source.python, string.quoted.docstring.raw.python
63-
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.python
58+
R : source.python, storage.type.string.python, string.quoted.docstring.raw.multi.python
59+
""" : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.raw.multi.python
60+
TE : source.python, string.quoted.docstring.raw.multi.python
61+
\" : source.python, string.quoted.docstring.raw.multi.python
62+
""ST : source.python, string.quoted.docstring.raw.multi.python
63+
""" : punctuation.definition.string.end.python, source.python, string.quoted.docstring.raw.multi.python
6464
: source.python
6565
def : meta.function.python, source.python, storage.type.function.python
6666
: meta.function.python, source.python

0 commit comments

Comments
 (0)