mirror of
https://github.com/gryf/pythonhelper.git
synced 2025-12-19 12:28:16 +01:00
Starting refactor towards an iterator.
This commit is contained in:
@@ -389,6 +389,9 @@ class SimplePythonTagsParser(object):
|
|||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
def vimBufferIterator(vimBuffer):
|
||||||
|
return VimReadlineBuffer(vimBuffer)
|
||||||
|
|
||||||
# class VimReadlineBuffer() {{{
|
# class VimReadlineBuffer() {{{
|
||||||
class VimReadlineBuffer(object):
|
class VimReadlineBuffer(object):
|
||||||
# DOC {{{
|
# DOC {{{
|
||||||
@@ -508,7 +511,7 @@ def getTags(bufferNumber, changedTick):
|
|||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# get the tags {{{
|
# get the tags {{{
|
||||||
simpleTagsParser = SimplePythonTagsParser(VimReadlineBuffer(vim.current.buffer))
|
simpleTagsParser = SimplePythonTagsParser(vimBufferIterator(vim.current.buffer))
|
||||||
tagLineNumbers, tags = simpleTagsParser.getTags()
|
tagLineNumbers, tags = simpleTagsParser.getTags()
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user