Skip to content

Commit 074fc4d

Browse files
committed
Update Python grammar
Fixes microsoft#98179
1 parent 1ea6771 commit 074fc4d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/python/cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"git": {
77
"name": "MagicStack/MagicPython",
88
"repositoryUrl": "https://github.com/MagicStack/MagicPython",
9-
"commitHash": "c9b3409deb69acec31bbf7913830e93a046b30cc"
9+
"commitHash": "b4b2e6eb16fee36aea0788bf0aa1853c25f7d276"
1010
}
1111
},
1212
"license": "MIT",

extensions/python/syntaxes/MagicPython.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/MagicStack/MagicPython/commit/2ca894f270f92e2bc8f09a2ebdcd482fbb3b1074",
7+
"version": "https://github.com/MagicStack/MagicPython/commit/b4b2e6eb16fee36aea0788bf0aa1853c25f7d276",
88
"name": "MagicPython",
99
"scopeName": "source.python",
1010
"patterns": [
@@ -1229,13 +1229,13 @@
12291229
},
12301230
"generator": {
12311231
"comment": "Match \"for ... in\" construct used in generators and for loops to\ncorrectly identify the \"in\" as a control flow keyword.\n",
1232-
"begin": "for",
1232+
"begin": "\\bfor\\b",
12331233
"beginCaptures": {
12341234
"0": {
12351235
"name": "keyword.control.flow.python"
12361236
}
12371237
},
1238-
"end": "in",
1238+
"end": "\\bin\\b",
12391239
"endCaptures": {
12401240
"0": {
12411241
"name": "keyword.control.flow.python"

0 commit comments

Comments
 (0)