Add support for rst-mode

Add hook for snippets correct work.