my-emacs-d/elpa/yasnippet-20160924.2001/snippets/cc-mode/case
2016-10-20 10:27:10 +02:00

8 lines
208 B
Plaintext

# -*- mode: snippet -*-
# name : case : {...}
# key: case
# --
`(indent-region (- (point) 20) (+ (point) 20) nil)`case ${2:constexpr}:${3: \{}
$0
break;
${3:$(if (string-match "\{" yas-text) "\}" "")}