unix-conf/.emacs.d/elpa/yasnippet-20160131.948/snippets/cc-mode/case
2016-02-18 14:53:30 +01: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) "\}" "")}