summaryrefslogtreecommitdiff
path: root/snippets/awk.snippets
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
commitf1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch)
treebbe77eacaef8ab8a5999e517c3006973c9e3e44c /snippets/awk.snippets
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'snippets/awk.snippets')
-rw-r--r--snippets/awk.snippets82
1 files changed, 0 insertions, 82 deletions
diff --git a/snippets/awk.snippets b/snippets/awk.snippets
deleted file mode 100644
index 64f61c0..0000000
--- a/snippets/awk.snippets
+++ /dev/null
@@ -1,82 +0,0 @@
-# cannot use /usr/bin/env because it does not support parameters (as -f)
-snippet #! #!/usr/bin/awk -f
- #!/usr/bin/awk -f
-# @include is a gawk extension
-snippet inc @include
- @include "${1}"${0}
-# @load is a gawk extension
-snippet loa @load
- @load "${1}"${0}
-snippet beg BEGIN { ... }
- BEGIN {
- ${0}
- }
-# BEGINFILE is a gawk extension
-snippet begf BEGINFILE { ... }
- BEGINFILE {
- ${0}
- }
-snippet end END { ... }
- END {
- ${0}
- }
-# ENDFILE is a gawk extension
-snippet endf ENDFILE { ... }
- ENDFILE {
- ${0}
- }
-snippet pri print
- print ${1:"${2}"}${0}
-snippet printf printf
- printf("${1:%s}\n", ${2})${0}
-snippet ign IGNORECASE
- IGNORECASE = ${1:1}
-snippet if if {...}
- if (${1}) {
- ${0:${VISUAL}}
- }
-snippet ife if ... else ...
- if (${1}) {
- ${2:${VISUAL}}
- } else {
- ${0}
- }
-snippet eif else if ...
- else if (${1}) {
- ${0}
- }
-snippet el else {...}
- else {
- ${0}
- }
-snippet wh while
- while (${1}) {
- ${2}
- }
-snippet do do ... while
- do {
- ${0}
- } while (${1})
-snippet for for
- for (${2:i} = 0; i < ${1:n}; ${3:++i}) {
- ${0}
- }
-snippet fore for each
- for (${1:i} in ${2:array}) {
- ${0}
- }
-# the switch is a gawk extension
-snippet sw switch
- switch (${1}) {
- case ${2}:
- ${3}
- break
- default:
- ${0}
- break
- }
-# the switch is a gawk extension
-snippet case case
- case ${1}:
- ${0}
- break