/Test/simple.py

http://github.com/fishman/ctags · Python · 63 lines · 38 code · 17 blank · 8 comment · 1 complexity · e9b4377d9c79b817e13673d3bc9b27c4 MD5 · raw file

  1. """A long string
  2. literal
  3. """
  4. from bsddb import btopen
  5. # Public global constants
  6. VERSION = '1.2.0'
  7. # Flags for list() and children()
  8. ALL = 0xff
  9. KEY = 0x01
  10. TREEID = 0x02
  11. INDENT = 0x04
  12. DATA = 0x08 # Used by dbtreedata
  13. class one:
  14. x = lambda x: x
  15. y = 0
  16. def __init__(self, filename, pathsep='', treegap=64):
  17. """Another string
  18. literal"""
  19. def __private_function__(self, key, data):
  20. def public_function(self, key):
  21. class this_is_ignored:
  22. def _pack(self, i, s): '''this is''' """a""" '''string
  23. literal'''"""
  24. class inside_string:
  25. """
  26. class so_is_this:
  27. def _test(test, code, outcome, exception):
  28. def ignored_function():
  29. def more_nesting():
  30. class deeply_nested():
  31. def even_more():
  32. @blah class this is seen???
  33. @bleh def this also? good!
  34. if __name__ == '__main__':
  35. class two (one):
  36. def only(arg):
  37. # line continuation
  38. class\
  39. three\
  40. (A, B,
  41. C):
  42. def\
  43. foo(
  44. x
  45. ,
  46. y, z):