my-emacs-d/elpa/yasnippet-20161022.646/snippets/cc-mode/case

8 lines
208 B
Plaintext
Raw Normal View History

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