Sha256: 362ef353d861b724a1dccc5f661cd6368e27e3fd3317d9876107342c78ee2dc2

Contents?: true

Size: 1.84 KB

Versions: 99

Compression:

Stored size: 1.84 KB

Contents

define("ace/snippets/xquery",["require","exports","module"], function(require, exports, module) {
"use strict";

exports.snippetText = "snippet for\n\
	for $${1:item} in ${2:expr}\n\
snippet return\n\
	return ${1:expr}\n\
snippet import\n\
	import module namespace ${1:ns} = \"${2:http://www.example.com/}\";\n\
snippet some\n\
	some $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
snippet every\n\
	every $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
snippet if\n\
	if(${1:true}) then ${2:expr} else ${3:true}\n\
snippet switch\n\
	switch(${1:\"foo\"})\n\
	case ${2:\"foo\"}\n\
	return ${3:true}\n\
	default return ${4:false}\n\
snippet try\n\
	try { ${1:expr} } catch ${2:*} { ${3:expr} }\n\
snippet tumbling\n\
	for tumbling window $${1:varname} in ${2:expr}\n\
	start at $${3:start} when ${4:expr}\n\
	end at $${5:end} when ${6:expr}\n\
	return ${7:expr}\n\
snippet sliding\n\
	for sliding window $${1:varname} in ${2:expr}\n\
	start at $${3:start} when ${4:expr}\n\
	end at $${5:end} when ${6:expr}\n\
	return ${7:expr}\n\
snippet let\n\
	let $${1:varname} := ${2:expr}\n\
snippet group\n\
	group by $${1:varname} := ${2:expr}\n\
snippet order\n\
	order by ${1:expr} ${2:descending}\n\
snippet stable\n\
	stable order by ${1:expr}\n\
snippet count\n\
	count $${1:varname}\n\
snippet ordered\n\
	ordered { ${1:expr} }\n\
snippet unordered\n\
	unordered { ${1:expr} }\n\
snippet treat \n\
	treat as ${1:expr}\n\
snippet castable\n\
	castable as ${1:atomicType}\n\
snippet cast\n\
	cast as ${1:atomicType}\n\
snippet typeswitch\n\
	typeswitch(${1:expr})\n\
	case ${2:type}  return ${3:expr}\n\
	default return ${4:expr}\n\
snippet var\n\
	declare variable $${1:varname} := ${2:expr};\n\
snippet fn\n\
	declare function ${1:ns}:${2:name}(){\n\
	${3:expr}\n\
	};\n\
snippet module\n\
	module namespace ${1:ns} = \"${2:http://www.example.com}\";\n\
";
exports.scope = "xquery";

});

Version data entries

99 entries across 99 versions & 3 rubygems

Version Path
optimacms-0.1.61 spec/dummy/public/js/ace/src/snippets/xquery.js
ace-rails-ap-4.2 vendor/assets/javascripts/ace/snippets/xquery.js
ace-rails-ap-4.1.5 vendor/assets/javascripts/ace/snippets/xquery.js
ace-rails-ap-4.1.4 vendor/assets/javascripts/ace/snippets/xquery.js
ace-rails-ap-4.1.3 vendor/assets/javascripts/ace/snippets/xquery.js
optimacms-0.3.9 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.3.8 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.3.7 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.3.6 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.3.5 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.3.2 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.3.1 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.2.23 spec/dummy/public/js/ace/src/snippets/xquery.js
ace-rails-ap-4.1.2 vendor/assets/javascripts/ace/snippets/xquery.js
optimacms-0.2.22 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.2.21 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.2.20 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.2.19 spec/dummy/public/js/ace/src/snippets/xquery.js
optimacms-0.2.18 spec/dummy/public/js/ace/src/snippets/xquery.js
ace-rails-ap-4.1.1 vendor/assets/javascripts/ace/snippets/xquery.js