Tweaking the TextMate C snippets

This commit is contained in:
capitaomorte
2009-08-30 22:16:44 +00:00
parent c323cddbd6
commit f5aaad220f
10 changed files with 31 additions and 18 deletions

View File

@@ -1,9 +1,9 @@
# -*- mode: snippet -*-
# key: for
# contributor: Translated from TextMate Snippet
# name: For Loop
# expand-env: ((yas/wrap-around-region t))
# --
for(size_t ${2:i} = 0; $2 < ${1:count}; ${3:++$2})
for(size_t ${2:i} = 0; $2 < ${1:count}; ${3:++i$(unless yas/modified-p (concat "++" (yas/field-value 2)))})
{
${0:/* code */}
$0
}