Sha256: 0a78dc51864a27278d204fb8713ba53f0dc3be71bb9f46f94fe2a78c23540f62

Contents?: true

Size: 947 Bytes

Versions: 11

Compression:

Stored size: 947 Bytes

Contents

snippet #!
	#!/usr/bin/env falcon

# Import	
snippet imp
	import ${1:module}

# Function
snippet fun
	function ${2:function_name}(${3})	
		${4:/* code */}
	end	

# Class
snippet class
	class ${1:class_name}(${2:class_params})
		${3:/* members/methods */}
	end

# If 
snippet if
	if ${1:condition}
		${2:/* code */}		
	end

# If else
snippet ife
	if ${1:condition}
		${2:/* code */}		
	else
	    ${1}	
	end

# If else if	
snippet elif
	elif ${1:condition}
		${2:/* code */}	        

# Switch case
snippet switch
	switch ${1:expression}
		case ${2:item}
		case ${3:item}
		default 
	end

# Select
snippet select 
	select ${1:variable}
		case ${2:TypeSpec}
		case ${3:TypeSpec}
		default
	end

# For/in Loop
snippet forin
	for ${1:element} in ${2:container}
		${3:/* code */}
	end

# For/to Loop
snippet forto
	for ${1:lowerbound} to ${2:upperbound}
		${3:/* code */}
	end

# While Loop
snippet while 
	while ${1:conidition}
		${2:/* code */}	
	end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
gollum-4.1.4 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
gollum-4.1.3 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
inc_gollum-4.1.2d lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
inc_gollum-4.1.2c lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
gollum-4.1.2 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
gollum-4.1.1 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
gollum-4.1.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
gollum-4.0.1 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
pollypost-0.0.2 vendor/assets/ace-1.1.8/snippets/falcon.snippets
gollum-4.0.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets
gollum-3.1.3 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets