Merge pull request #198 from gorodinskiy/master

wrong comment syntax in coffeescript snippets for snipmate
This commit is contained in:
Honza Pokorny 2013-04-25 12:02:49 -07:00
commit 690e7bd9a7

View File

@ -6,33 +6,33 @@ snippet forindo
# Array comprehension # Array comprehension
snippet fora snippet fora
for ${1:name} in ${2:array} for ${1:name} in ${2:array}
${3:// body...} ${3:# body...}
# Object comprehension # Object comprehension
snippet foro snippet foro
for ${1:key}, ${2:value} of ${3:object} for ${1:key}, ${2:value} of ${3:object}
${4:// body...} ${4:# body...}
# Range comprehension (inclusive) # Range comprehension (inclusive)
snippet forr snippet forr
for ${1:name} in [${2:start}..${3:finish}] for ${1:name} in [${2:start}..${3:finish}]
${4:// body...} ${4:# body...}
snippet forrb snippet forrb
for ${1:name} in [${2:start}..${3:finish}] by ${4:step} for ${1:name} in [${2:start}..${3:finish}] by ${4:step}
${5:// body...} ${5:# body...}
# Range comprehension (exclusive) # Range comprehension (exclusive)
snippet forrex snippet forrex
for ${1:name} in [${2:start}...${3:finish}] for ${1:name} in [${2:start}...${3:finish}]
${4:// body...} ${4:# body...}
snippet forrexb snippet forrexb
for ${1:name} in [${2:start}...${3:finish}] by ${4:step} for ${1:name} in [${2:start}...${3:finish}] by ${4:step}
${5:// body...} ${5:# body...}
# Function # Function
snippet fun snippet fun
(${1:args}) -> (${1:args}) ->
${2:// body...} ${2:# body...}
# Function (bound) # Function (bound)
snippet bfun snippet bfun
(${1:args}) => (${1:args}) =>
${2:// body...} ${2:# body...}
# Class # Class
snippet cla class .. snippet cla class ..
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
@ -55,17 +55,17 @@ snippet cla class .. extends .. constructor: ..
# If # If
snippet if snippet if
if ${1:condition} if ${1:condition}
${2:// body...} ${2:# body...}
# If __ Else # If __ Else
snippet ife snippet ife
if ${1:condition} if ${1:condition}
${2:// body...} ${2:# body...}
else else
${3:// body...} ${3:# body...}
# Else if # Else if
snippet elif snippet elif
else if ${1:condition} else if ${1:condition}
${2:// body...} ${2:# body...}
# Ternary If # Ternary If
snippet ifte snippet ifte
if ${1:condition} then ${2:value} else ${3:other} if ${1:condition} then ${2:value} else ${3:other}
@ -76,7 +76,7 @@ snippet unl
snippet swi snippet swi
switch ${1:object} switch ${1:object}
when ${2:value} when ${2:value}
${3:// body...} ${3:# body...}
# Log # Log
snippet log snippet log