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.
23 lines
738 B
Python
23 lines
738 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
"""A snipMate snippet after parsing."""
|
|
|
|
from UltiSnips.snippet.definition._base import SnippetDefinition
|
|
from UltiSnips.snippet.parsing.snipmate import parse_and_instantiate
|
|
|
|
|
|
class SnipMateSnippetDefinition(SnippetDefinition):
|
|
|
|
"""See module doc."""
|
|
|
|
SNIPMATE_SNIPPET_PRIORITY = -1000
|
|
|
|
def __init__(self, trigger, value, description, location):
|
|
SnippetDefinition.__init__(self, self.SNIPMATE_SNIPPET_PRIORITY,
|
|
trigger, value, description, '', {}, location,
|
|
None, {})
|
|
|
|
def instantiate(self, snippet_instance, initial_text, indent):
|
|
parse_and_instantiate(snippet_instance, initial_text, indent)
|