1
0
Fork 0
emacs-config/oni-twig/snippets/twig-mode/imp

7 lines
272 B
Text
Raw Permalink Normal View History

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