Files
openide/python/testData/highlighting/yieldInNestedFunction.py
andrey.matveev 11c12e56c9 PY-33235 Add highlighting annotator for nested functions
GitOrigin-RevId: 0329f4af71bb86128531ab92c581a407339e1c7d
2020-08-13 17:37:39 +00:00

6 lines
407 B
Python

# func declarations are red
def <info descr="PY.FUNC_DEFINITION" foreground="0xff0000" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">foo</info>():
def <info descr="PY.NESTED_FUNC_DEFINITION" foreground="0xff0000" background="0x000000" effectcolor="0xffffff" effecttype="BOXED" fonttype="1">a</info>():
yield 1
return <info descr="PY.BUILTIN_NAME">False</info>