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

7 lines
No EOL
272 B
Text

# -*- 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)} %}