Install yasnippet and vala-snippets packages

This commit is contained in:
Gergely Polonkai
2016-10-20 10:20:38 +02:00
parent d1468f35a7
commit a498706564
1085 changed files with 12052 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: do while loop
# key: do
# --
do {
$0
} while (${1:condition});

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for loop
# key: for
# --
for (int ${1:i} = 0; $1 < $2; $1++) {
$0
}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for each loop
# key: foreach
# --
foreach (${1:int} ${2:i} in ${3:list}) {
$0
}

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: if-else if-else statement
# key: ifee
# --
if (${1:condition}) {
$2
} else if (${3:condition}){
$4
} else {
$0
}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: if else statement
# key: ife
# --
if (${1:condition}) {
$2
} else {
$0
}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: if statement
# key: if
# --
if (${1:condition}) {
$0
}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: switch statement
# key: switch
# --
switch (${1:condition}) {
case $2:
$0
}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: while statement
# key: while
# --
while (${1:condition}) {
$0
}