mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Tweaking the TextMate C snippets
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user