#4 fix for two small tagmanager bugs for python

closed-fixed
tagmanager (1)
5
2011-06-15
2011-06-15
Elias Pschernig
No

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).

Discussion

  • Enrico Tröger
    Enrico Tröger
    2011-06-15

    Committed, thank you very much.

     
  • Enrico Tröger
    Enrico Tröger
    2011-06-15

    • labels: --> tagmanager
    • assigned_to: nobody --> eht16
    • status: open --> closed-fixed