From 4d1cb31f4814bfe167838f59e671dad57dc8d245 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 6 Oct 2020 23:01:28 -0700 Subject: [PATCH] Add coloring for nonlocal. --- Python/Python.tmLanguage | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Python/Python.tmLanguage b/Python/Python.tmLanguage index 1e765c3..4a3ac99 100644 --- a/Python/Python.tmLanguage +++ b/Python/Python.tmLanguage @@ -119,6 +119,20 @@ \b(global)\b + + captures + + 1 + + name + storage.modifier.nonlocal.python + + + + match + \b(nonlocal)\b + + captures @@ -1606,7 +1620,7 @@ illegal_names match - \b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\b + \b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|nonlocal|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\b name invalid.illegal.name.python