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