1
# -*- mode: snippet -*-
4
# condition: (= (length "mod") (current-column))
5
# expand-env: ((yas-indent-line 'fixed))
6
# contributor: Luke Hoersten <luke@hoersten.org>
8
module ${1:`(if (not buffer-file-name) "Module"
9
(let ((name (file-name-sans-extension (buffer-file-name))))
10
(if (search "src/" name)
11
(replace-regexp-in-string "/" "." (car (last (split-string name "src/"))))
12
(file-name-nondirectory name))))`} where
b'\\ No newline at end of file'