Some typos and a todo.
This commit is contained in:
parent
991609e461
commit
2e7e61edae
@ -96,7 +96,7 @@ class SnippetSyntaxError(RuntimeError):
|
|||||||
msg, filename, line_index))
|
msg, filename, line_index))
|
||||||
|
|
||||||
class UltiSnipsFileProvider(SnippetProvider):
|
class UltiSnipsFileProvider(SnippetProvider):
|
||||||
"""Manages all snippets definitons found in rtp."""
|
"""Manages all snippets definitions found in rtp."""
|
||||||
|
|
||||||
def get_snippets(self, filetypes, before, possible):
|
def get_snippets(self, filetypes, before, possible):
|
||||||
for ft in filetypes:
|
for ft in filetypes:
|
||||||
@ -157,6 +157,8 @@ class UltiSnipsFileProvider(SnippetProvider):
|
|||||||
_vim.escape(filename))
|
_vim.escape(filename))
|
||||||
raise SnippetSyntaxError(filename, line_index, msg)
|
raise SnippetSyntaxError(filename, line_index, msg)
|
||||||
elif event == "clearsnippets":
|
elif event == "clearsnippets":
|
||||||
|
# TODO(sirver): clear snippets should clear for
|
||||||
|
# more providers, not only ultisnips files.
|
||||||
triggers, = data
|
triggers, = data
|
||||||
self._snippets[ft].clear_snippets(triggers)
|
self._snippets[ft].clear_snippets(triggers)
|
||||||
elif event == "extends":
|
elif event == "extends":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user