overleaf/services/web/frontend/js/vendor/ace-1.4.12/snippets/velocity.js
Chrystal Maria Griffiths cc65ec32c5 Merge pull request #3178 from overleaf/cmg-ace-upgrade-1.4.12
Upgrade ace to 1.4.12

GitOrigin-RevId: a381b3815248e710cf8f02558e8c9f74b063fc96
2020-09-17 02:04:49 +00:00

43 lines
No EOL
1 KiB
JavaScript

ace.define("ace/snippets/velocity",[], function(require, exports, module) {
"use strict";
exports.snippetText = "# macro\n\
snippet #macro\n\
#macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\
${3:## macro code}\n\
#end\n\
# foreach\n\
snippet #foreach\n\
#foreach ( ${1:\\$item} in ${2:\\$collection} )\n\
${3:## foreach code}\n\
#end\n\
# if\n\
snippet #if\n\
#if ( ${1:true} )\n\
${0}\n\
#end\n\
# if ... else\n\
snippet #ife\n\
#if ( ${1:true} )\n\
${2}\n\
#else\n\
${0}\n\
#end\n\
#import\n\
snippet #import\n\
#import ( \"${1:path/to/velocity/format}\" )\n\
# set\n\
snippet #set\n\
#set ( $${1:var} = ${0} )\n\
";
exports.scope = "velocity";
exports.includeScopes = ["html", "javascript", "css"];
}); (function() {
ace.require(["ace/snippets/velocity"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();