Skip to content

Commit 98a8dbc

Browse files
committed
Add match case
1 parent 2802ded commit 98a8dbc

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Victor Petrovykh <victor@magic.io>
22
Yury Selivanov <yury@magic.io>
3+
Joe Smo <joesmo.joesmo12@gmail.com>

grammars/MagicPython.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ repository:
288288
(?x)
289289
\\b(?<!\\.)(
290290
async | continue | del | assert | break | finally | for
291-
| from | elif | else | if | except | pass | raise
291+
| from | elif | else | if | except | pass | raise | match | case
292292
| return | try | while | with
293293
)\\b
294294

grammars/MagicPython.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ it's probably control flow like:
450450
<string>(?x)
451451
\b(?&lt;!\.)(
452452
async | continue | del | assert | break | finally | for
453-
| from | elif | else | if | except | pass | raise
453+
| from | elif | else | if | except | pass | raise | match | case
454454
| return | try | while | with
455455
)\b
456456
</string>

grammars/src/MagicPython.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ repository:
378378
(?x)
379379
\b(?<!\.)(
380380
async | continue | del | assert | break | finally | for
381-
| from | elif | else | if | except | pass | raise
381+
| from | elif | else | if | except | pass | raise | match | case
382382
| return | try | while | with
383383
)\b
384384
- name: storage.modifier.declaration.python

0 commit comments

Comments
 (0)