Both have to do with triple string literals. Bug 1 gets this wrong - it thinks func2 is outside of A:
class A:
def func1():
"""this is
a comment"""
pass
def func2():
pass
Bug 2 gets this wrong:
y = 1 # """
x = 2
In fact it would ignore everything up to the next """.
The patch should fix both (I just applied it to ctags as well).
Committed, thank you very much.