You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
390 B
Python
14 lines
390 B
Python
11 years ago
|
#!/usr/bin/env python
|
||
|
# encoding: utf-8
|
||
|
|
||
|
"""Handles manually added snippets UltiSnips_Manager.add_snippet()."""
|
||
|
|
||
|
from UltiSnips.providers._base import SnippetProvider
|
||
|
|
||
|
class AddedSnippetsProvider(SnippetProvider):
|
||
|
"""See module docstring."""
|
||
|
|
||
|
def add_snippet(self, ft, snippet):
|
||
|
"""Adds the given 'snippet' for 'ft'."""
|
||
|
self._snippets[ft].add_snippet(snippet, None)
|