Make print purple instead of blue by making it a keyword again.

I've been looking at purple print statements for seven years now so
the shift to builtin-blue was jarring to me. Also, this syntax made
print look purple before putting the parens on, then blue after,
which made it even more unpleasant.
master
voussoir 2021-08-24 23:40:05 -07:00
parent abb9825c22
commit e358a26480
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ contexts:
scope: keyword.control.flow.assert.python
- match: \b(del)\b
scope: keyword.other.del.python
- match: \b(print)\b(?! *([,.()\]}]))
- match: \b(print)\b(?! *([,.\]}]))
scope: keyword.other.print.python
- match: \b(exec)\b(?! *($|[,.()\]}]))
scope: keyword.other.exec.python
@ -1142,7 +1142,7 @@ contexts:
# Python 2 functions
|apply|cmp|coerce|execfile|intern|raw_input|reduce|reload|unichr|xrange
# Python 3 functions
|breakpoint|exec|print
|breakpoint|exec
)\b
scope: support.function.builtin.python