legacy-dotfiles/emacs/.emacs.d/snippets/twig-mode/imp

7 lines
272 B
Text
Raw Normal View History

2015-12-16 22:26:55 +01:00
# -*- mode: snippet; require-final-newline: nil -*-
# name: import
# key: imp
# --
{% import "${1:module}" as ${1:$(if (string-match "/\\\\([^/]*\\\\)$" yas-text)
(match-string 1 yas-text)
yas-text)} %}