diff options
author | Tom Willemse | 2019-08-28 00:11:08 -0700 |
---|---|---|
committer | Tom Willemse | 2019-08-28 00:11:08 -0700 |
commit | ca973c76e9a391fc868025d98d16fd249d00c7c9 (patch) | |
tree | 4e04bd21e19323f6a456cfb33d255a01bf9f27b1 /oni-twig/snippets/twig-mode/imp | |
parent | 567d78a12c2acc2ce0c75871948825089c94fd09 (diff) | |
download | emacs-config-ca973c76e9a391fc868025d98d16fd249d00c7c9.tar.gz emacs-config-ca973c76e9a391fc868025d98d16fd249d00c7c9.zip |
Add ‘oni-twig’
For now this only contains snippets.
Diffstat (limited to 'oni-twig/snippets/twig-mode/imp')
-rw-r--r-- | oni-twig/snippets/twig-mode/imp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oni-twig/snippets/twig-mode/imp b/oni-twig/snippets/twig-mode/imp new file mode 100644 index 0000000..01ceb69 --- /dev/null +++ b/oni-twig/snippets/twig-mode/imp @@ -0,0 +1,7 @@ +# -*- 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)} %}
\ No newline at end of file |