From 074fc4d8da3f3bc8d2a3ca2a9d4034d8c4f6e1bb Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Wed, 20 May 2020 10:43:20 +0200 Subject: [PATCH] Update Python grammar Fixes #98179 --- extensions/python/cgmanifest.json | 2 +- extensions/python/syntaxes/MagicPython.tmLanguage.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/python/cgmanifest.json b/extensions/python/cgmanifest.json index 37a21b2de54..6b1df10ed8f 100644 --- a/extensions/python/cgmanifest.json +++ b/extensions/python/cgmanifest.json @@ -6,7 +6,7 @@ "git": { "name": "MagicStack/MagicPython", "repositoryUrl": "https://github.com/MagicStack/MagicPython", - "commitHash": "c9b3409deb69acec31bbf7913830e93a046b30cc" + "commitHash": "b4b2e6eb16fee36aea0788bf0aa1853c25f7d276" } }, "license": "MIT", diff --git a/extensions/python/syntaxes/MagicPython.tmLanguage.json b/extensions/python/syntaxes/MagicPython.tmLanguage.json index eb3c96990b9..b8822299e63 100644 --- a/extensions/python/syntaxes/MagicPython.tmLanguage.json +++ b/extensions/python/syntaxes/MagicPython.tmLanguage.json @@ -4,7 +4,7 @@ "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], - "version": "https://github.com/MagicStack/MagicPython/commit/2ca894f270f92e2bc8f09a2ebdcd482fbb3b1074", + "version": "https://github.com/MagicStack/MagicPython/commit/b4b2e6eb16fee36aea0788bf0aa1853c25f7d276", "name": "MagicPython", "scopeName": "source.python", "patterns": [ @@ -1229,13 +1229,13 @@ }, "generator": { "comment": "Match \"for ... in\" construct used in generators and for loops to\ncorrectly identify the \"in\" as a control flow keyword.\n", - "begin": "for", + "begin": "\\bfor\\b", "beginCaptures": { "0": { "name": "keyword.control.flow.python" } }, - "end": "in", + "end": "\\bin\\b", "endCaptures": { "0": { "name": "keyword.control.flow.python"