Skip to content

Commit 933bc1d

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ patterns:
4040
'1': {name: punctuation.definition.comment.python}
4141

4242
- name: constant.other.allcaps.python
43-
match: \b([A-Z_][A-Z0-9_]*)\b(?!\()
43+
match: \b(?!\bPIL\b)([A-Z_][A-Z0-9_]*)\b(?!\()
44+
comment: Match identifiers in ALL_CAPS as constants. Built-in exception for PIL module.
4445

4546
- name: constant.numeric.integer.long.hexadecimal.python
4647
match: \b(?i:(0x\h*)L)

0 commit comments

Comments
 (0)