Skip to content

Commit 3f5ad45

Browse files
committed
added prefetch keyword
1 parent 79b83a9 commit 3f5ad45

File tree

4 files changed

+10
-31
lines changed

4 files changed

+10
-31
lines changed

grammars/MagicPython.cson

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ repository:
287287
\\b(?<!\\.)(
288288
async | continue | del | assert | break | finally | for
289289
| from | elif | else | if | except | pass | raise
290-
| return | try | while | with | match | case
290+
| return | try | while | with | match | case | prefetch
291291
)\\b
292292
293293
'''
@@ -4978,9 +4978,6 @@ repository:
49784978
{
49794979
include: "#seqstring-single-core"
49804980
}
4981-
{
4982-
include: "#seqstring-single-wildcards"
4983-
}
49844981
]
49854982
"seqstring-normseq-quoted-single-line":
49864983
name: "meta.seqstring.python"
@@ -5002,9 +4999,6 @@ repository:
50024999
{
50035000
include: "#seqstring-single-core"
50045001
}
5005-
{
5006-
include: "#seqstring-single-wildcards"
5007-
}
50085002
]
50095003
"seqstring-raw-quoted-single-line":
50105004
name: "meta.seqstring.python"
@@ -5024,9 +5018,6 @@ repository:
50245018
{
50255019
include: "seqstring-raw-single-core"
50265020
}
5027-
{
5028-
include: "#seqstring-single-wildcards"
5029-
}
50305021
]
50315022
"seqstring-single-core":
50325023
name: "string.quoted.single.python string.interpolated.python"
@@ -5071,5 +5062,5 @@ repository:
50715062
50725063
'''
50735064
"seqstring-single-wildcards":
5074-
name: "storage.type.string.python"
5065+
name: "constant.character.format.placeholder.other.python"
50755066
match: "(\\.\\.\\.)|(_+)"

grammars/MagicPython.tmLanguage

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ it's probably control flow like:
449449
\b(?&lt;!\.)(
450450
async | continue | del | assert | break | finally | for
451451
| from | elif | else | if | except | pass | raise
452-
| return | try | while | with | match | case
452+
| return | try | while | with | match | case | prefetch
453453
)\b
454454
</string>
455455
</dict>
@@ -8704,10 +8704,6 @@ indirectly through syntactic constructs
87048704
<key>include</key>
87058705
<string>#seqstring-single-core</string>
87068706
</dict>
8707-
<dict>
8708-
<key>include</key>
8709-
<string>#seqstring-single-wildcards</string>
8710-
</dict>
87118707
</array>
87128708
</dict>
87138709
<key>seqstring-normseq-quoted-single-line</key>
@@ -8755,10 +8751,6 @@ indirectly through syntactic constructs
87558751
<key>include</key>
87568752
<string>#seqstring-single-core</string>
87578753
</dict>
8758-
<dict>
8759-
<key>include</key>
8760-
<string>#seqstring-single-wildcards</string>
8761-
</dict>
87628754
</array>
87638755
</dict>
87648756
<key>seqstring-raw-quoted-single-line</key>
@@ -8801,10 +8793,6 @@ indirectly through syntactic constructs
88018793
<key>include</key>
88028794
<string>seqstring-raw-single-core</string>
88038795
</dict>
8804-
<dict>
8805-
<key>include</key>
8806-
<string>#seqstring-single-wildcards</string>
8807-
</dict>
88088796
</array>
88098797
</dict>
88108798
<key>seqstring-single-core</key>
@@ -8856,7 +8844,7 @@ indirectly through syntactic constructs
88568844
<key>seqstring-single-wildcards</key>
88578845
<dict>
88588846
<key>name</key>
8859-
<string>storage.type.string.python</string>
8847+
<string>constant.character.format.placeholder.other.python</string>
88608848
<key>match</key>
88618849
<string>(\.\.\.)|(_+)</string>
88628850
</dict>

grammars/src/MagicPython.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ repository:
386386
\b(?<!\.)(
387387
async | continue | del | assert | break | finally | for
388388
| from | elif | else | if | except | pass | raise
389-
| return | try | while | with | match | case
389+
| return | try | while | with | match | case | prefetch
390390
)\b
391391
- name: storage.modifier.declaration.python
392392
match: |

grammars/src/pyseqstring.inc.syntax.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ seqstring-seqnorm-quoted-${line}-line:
2222
punctuation.definition.string.end.python}
2323
'2': {name: invalid.illegal.newline.python}
2424
patterns:
25+
# - include: '#seqstring-${line}-wildcards'
2526
- include: '#seqstring-${line}-core'
26-
- include: '#seqstring-${line}-wildcards'
2727

2828
seqstring-normseq-quoted-${line}-line:
2929
name: meta.seqstring.python
@@ -42,8 +42,8 @@ seqstring-normseq-quoted-${line}-line:
4242
punctuation.definition.string.end.python}
4343
'2': {name: invalid.illegal.newline.python}
4444
patterns:
45+
# - include: '#seqstring-${line}-wildcards'
4546
- include: '#seqstring-${line}-core'
46-
- include: '#seqstring-${line}-wildcards'
4747

4848
seqstring-raw-quoted-${line}-line:
4949
name: meta.seqstring.python
@@ -61,8 +61,8 @@ seqstring-raw-quoted-${line}-line:
6161
punctuation.definition.string.end.python}
6262
'2': {name: invalid.illegal.newline.python}
6363
patterns:
64+
# - include: '#seqstring-${line}-wildcards'
6465
- include: 'seqstring-raw-${line}-core'
65-
- include: '#seqstring-${line}-wildcards'
6666

6767
seqstring-${line}-core:
6868
name: string.quoted.${line}.python string.interpolated.python
@@ -105,8 +105,8 @@ seqstring-raw-${line}-core:
105105
| \n
106106
107107
seqstring-${line}-wildcards:
108-
name: storage.type.string.python
109-
match: '(\.\.\.)|(_+)'
108+
name: constant.character.format.placeholder.other.python
109+
match: (\.\.\.)|(_+)
110110

111111
# fstring-${line}-brace:
112112
# comment: value interpolation using { ... }

0 commit comments

Comments
 (0)