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

7 lines
272 B
Text
Raw Normal View History

2016-11-24 21:41:10 +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)} %}