mirror of
https://github.com/gryf/pythonhelper.git
synced 2025-12-18 12:00:27 +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(object):
|
||||
# DOC {{{
|
||||
@@ -508,7 +511,7 @@ def getTags(bufferNumber, changedTick):
|
||||
# }}}
|
||||
|
||||
# get the tags {{{
|
||||
simpleTagsParser = SimplePythonTagsParser(VimReadlineBuffer(vim.current.buffer))
|
||||
simpleTagsParser = SimplePythonTagsParser(vimBufferIterator(vim.current.buffer))
|
||||
tagLineNumbers, tags = simpleTagsParser.getTags()
|
||||
# }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user