Add coloring for nonlocal.

This commit is contained in:
Ethan Dalool 2020-10-06 23:01:28 -07:00
parent 02cbad8603
commit 4d1cb31f48

View file

@ -119,6 +119,20 @@
<string>\b(global)\b</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.nonlocal.python</string>
</dict>
</dict>
<key>match</key>
<string>\b(nonlocal)\b</string>
</dict>
<dict>
<key>captures</key>
<dict>
@ -1606,7 +1620,7 @@
<key>illegal_names</key>
<dict>
<key>match</key>
<string>\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</string>
<string>\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</string>
<key>name</key>
<string>invalid.illegal.name.python</string>
</dict>