Blender Git Loki

Git Commits -> Revision 81d5f15

Revision 81d5f15 by Jacques Lucke (master)
March 11, 2019, 15:15 (GMT)
Fix T61253: Wrong syntax highlighting when @ is used as multiplication

This is obviously not a perfect solution. However, to do proper
highlighting a more advanced Python parser would be necessary.
I think this patch implements a good heuristic to differentiate
between the cases when `@` is used for a decorator vs for
multiplication.

When `@` is directly followed by an identifier, it is interpreted
as decorated. Otherwise not.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4495

Commit Details:

Full Hash: 81d5f15a2a71eaa7c506b0b87706059b9c48d23a
Parent Commit: a65b068
Lines Changed: +15, -11

1 Modified Path:

/source/blender/editors/space_text/text_format_py.c (+15, -11) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021