| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | # bg is always black. |
| 2 | # effect is white |
| 3 | # func decl: red bold |
| 4 | # class decl: blue bold |
| 5 | # predefined decl: green bold |
| 6 | # predefined usage: yellow bold |
| 7 | |
| 8 | <info descr="null" type="INFORMATION" foreground="0x00ff00" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">len</info>("") |
| 9 | len = [] # redefine |
| 10 | len # no highlight |
| 11 | |
| 12 | class <info descr="null" type="INFORMATION">A</info>(<info descr="null" type="INFORMATION" foreground="0x00ff00" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">object</info>): |
| 13 | <info descr="null" type="INFORMATION" foreground="0xffff00" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">__metaclass__</info> = M # assignment target |
| 14 | |
| 15 | <info descr="null" type="INFORMATION" foreground="0x00ff00" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">@</info><info descr="null" type="INFORMATION">classmethod</info> |
| 16 | def <info descr="null" type="INFORMATION">foo</info>(<info descr="null">cls</info>): |
| 17 | pass |
| 18 | |
| 19 | try: |
| 20 | 1/0 |
| 21 | except <info descr="null" type="INFORMATION" foreground="0x00ff00" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">ArithmeticError</info>: |
| 22 | pass |