Skip to content

Commit 8ed3c0b

Browse files
author
Matt Morrison
committed
add exception in allcaps for PIL module
1 parent 66cf510 commit 8ed3c0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PythonImproved.tmLanguage

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@
108108
<string>comment.line.number-sign.python</string>
109109
</dict>
110110
<dict>
111+
<key>comment</key>
112+
<string>Match identifiers in ALL_CAPS as constants. Built-in exception for PIL module.</string>
111113
<key>match</key>
112-
<string>\b([A-Z_][A-Z0-9_]*)\b(?!\()</string>
114+
<string>\b(?!\bPIL\b)([A-Z_][A-Z0-9_]*)\b(?!\()</string>
113115
<key>name</key>
114116
<string>constant.other.allcaps.python</string>
115117
</dict>

0 commit comments

Comments
 (0)