1
0
Fork 0
mirror of synced 2024-12-27 00:53:20 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/racket.snippets

73 lines
954 B
Text
Raw Normal View History

2018-09-24 20:40:17 -04:00
snippet #r
#lang racket
snippet #tr
#lang typed/racket
snippet #rg
#lang racket/gui
snippet #sb
#lang scribble/base
snippet #d
#lang datalog
snippet #wi
#lang web-server/insta
snippet def
(define ${1} ${0})
snippet defun
(define (${1})
${0})
snippet if
(if ${1} ${2} ${0})
snippet ifn
(if (not ${1}) ${2} {0})
snippet ifl
(if ${1}
(let ()
${2})
${0})
snippet ifnl
(if (not ${1})
(let ()
${2})
${0})
snippet when
(when ${1}
${0})
snippet cond
(cond
[(${1})
${0}])
snippet case
(case ${1}
[(${2})
${0}])
snippet match
(match ${1}
[(${2})
${0}])
snippet letcc
(let/cc here (set! ${1} here) ${0})
snippet for
(for ([${1} ${2}])
${0})
snippet req
(require ${0})
snippet unless
(unless ${1} ${2} ${0})
snippet let
(let ([${1}]) ${0})
snippet begin
(begin
${0})
snippet lambda
(lambda (${1}) ${0})
snippet ifb
(if ${1}
(begin
${2})
${0})
snippet ifnb
(if (not ${1})
(begin
${2})
${0})