Add coloring for nonlocal.
This commit is contained in:
parent
02cbad8603
commit
4d1cb31f48
1 changed files with 15 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue