├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── docs
└── language
│ ├── LANGUAGE_DOCUMENTATION.md
│ ├── assets
│ ├── Book..svg
│ ├── Book.svg
│ └── Diagram.svg
│ ├── css
│ ├── hljs.css
│ ├── language.css
│ ├── markdown-github-like.css
│ └── sintax-diagram.css
│ ├── index.html
│ └── js
│ ├── SintaxDiagram.js
│ ├── highlight.min.js
│ ├── hljs_robotscript.js
│ ├── index.js
│ ├── marked.js
│ └── mdToHTML.js
├── general
├── PageManager.js
├── StorageAdministrator.js
├── assets
│ ├── RobotScript-Icon.ico
│ └── svg
│ │ ├── Arrow-left.svg
│ │ ├── Arrow-right.svg
│ │ ├── Cross.svg
│ │ ├── Menu.svg
│ │ └── RobotScript-Icon.svg
├── base.css
└── base.html
├── ide
├── assets
│ ├── city
│ │ ├── map
│ │ │ ├── background-city-sunshine-1920x1920.jpg
│ │ │ ├── background-grass-1920x1920.png
│ │ │ ├── background-grass-64x64.png
│ │ │ ├── background-mountain-sunshine-1920x1920.jpg
│ │ │ ├── background-sunshine-siluets-1920x1080.png
│ │ │ ├── city-bordered-1624x1624.png
│ │ │ └── city-default.png
│ │ ├── object
│ │ │ ├── camera
│ │ │ │ ├── camera-32x8-invisible.png
│ │ │ │ └── camera-32x8-visible.png
│ │ │ ├── item
│ │ │ │ ├── flower-8x8.png
│ │ │ │ ├── paper-8x8.png
│ │ │ │ └── rock-8x8.png
│ │ │ └── robot
│ │ │ │ ├── Robot-Animation.png
│ │ │ │ ├── robot-32x8-0.png
│ │ │ │ ├── robot-32x8-1.png
│ │ │ │ ├── robot-32x8-2.png
│ │ │ │ ├── robot-32x8-3.png
│ │ │ │ ├── robot-32x8-4.png
│ │ │ │ ├── robot-32x8-5.png
│ │ │ │ ├── robot-32x8-6.png
│ │ │ │ └── robot-32x8-7.png
│ │ ├── robotstatus
│ │ │ └── robotstatus-plate.png
│ │ └── sprite-default.png
│ └── svg
│ │ ├── Camera.svg
│ │ ├── City.svg
│ │ ├── Clean.svg
│ │ ├── Compile.svg
│ │ ├── Copy.svg
│ │ ├── Download.svg
│ │ ├── Editor.svg
│ │ ├── Execute.svg
│ │ ├── FontSize.svg
│ │ ├── Info.svg
│ │ ├── Pause.svg
│ │ ├── Play.svg
│ │ ├── Reload.svg
│ │ └── Upload.svg
├── css
│ └── index.css
├── js
│ ├── editor
│ │ ├── EditorManager.js
│ │ ├── RSLexer.js
│ │ ├── ast-generator.js
│ │ ├── ast-validator.js
│ │ └── backup.js
│ ├── general
│ │ ├── IdeStorage.js
│ │ ├── Manager.js
│ │ └── PageManager.js
│ ├── index.js
│ └── interpreter
│ │ ├── InterpreterManager.js
│ │ └── city
│ │ ├── CameraHandler.js
│ │ ├── City.js
│ │ ├── CityMap.js
│ │ ├── CityObject.js
│ │ ├── hud
│ │ ├── Hud.js
│ │ └── RobotStatus.js
│ │ ├── noUsed
│ │ ├── CityEvent.js
│ │ ├── DirectionInput.js
│ │ ├── KeyPressListener.js
│ │ ├── PauseMenu.js
│ │ └── TextMessage.js
│ │ └── utils.js
└── lib
│ ├── ace
│ ├── ace.js
│ ├── ext-beautify.js
│ ├── ext-code_lens.js
│ ├── ext-elastic_tabstops_lite.js
│ ├── ext-emmet.js
│ ├── ext-error_marker.js
│ ├── ext-hardwrap.js
│ ├── ext-keybinding_menu.js
│ ├── ext-language_tools.js
│ ├── ext-linking.js
│ ├── ext-modelist.js
│ ├── ext-options.js
│ ├── ext-prompt.js
│ ├── ext-rtl.js
│ ├── ext-searchbox.js
│ ├── ext-settings_menu.js
│ ├── ext-spellcheck.js
│ ├── ext-split.js
│ ├── ext-static_highlight.js
│ ├── ext-statusbar.js
│ ├── ext-textarea.js
│ ├── ext-themelist.js
│ ├── ext-whitespace.js
│ ├── keybinding-sublime.js
│ ├── keybinding-vim.js
│ ├── keybinding-vscode.js
│ ├── mode-c_cpp.js
│ ├── mode-javascript.js
│ ├── mode-robotscript.js
│ ├── snippets
│ │ ├── abap.js
│ │ ├── abc.js
│ │ ├── actionscript.js
│ │ ├── ada.js
│ │ ├── alda.js
│ │ ├── apache_conf.js
│ │ ├── apex.js
│ │ ├── applescript.js
│ │ ├── aql.js
│ │ ├── asciidoc.js
│ │ ├── asl.js
│ │ ├── assembly_x86.js
│ │ ├── autohotkey.js
│ │ ├── batchfile.js
│ │ ├── c9search.js
│ │ ├── c_cpp.js
│ │ ├── cirru.js
│ │ ├── clojure.js
│ │ ├── cobol.js
│ │ ├── coffee.js
│ │ ├── coldfusion.js
│ │ ├── crystal.js
│ │ ├── csharp.js
│ │ ├── csound_document.js
│ │ ├── csound_orchestra.js
│ │ ├── csound_score.js
│ │ ├── csp.js
│ │ ├── css.js
│ │ ├── curly.js
│ │ ├── d.js
│ │ ├── dart.js
│ │ ├── diff.js
│ │ ├── django.js
│ │ ├── dockerfile.js
│ │ ├── dot.js
│ │ ├── drools.js
│ │ ├── edifact.js
│ │ ├── eiffel.js
│ │ ├── ejs.js
│ │ ├── elixir.js
│ │ ├── elm.js
│ │ ├── erlang.js
│ │ ├── forth.js
│ │ ├── fortran.js
│ │ ├── fsharp.js
│ │ ├── fsl.js
│ │ ├── ftl.js
│ │ ├── gcode.js
│ │ ├── gherkin.js
│ │ ├── gitignore.js
│ │ ├── glsl.js
│ │ ├── gobstones.js
│ │ ├── golang.js
│ │ ├── graphqlschema.js
│ │ ├── groovy.js
│ │ ├── haml.js
│ │ ├── handlebars.js
│ │ ├── haskell.js
│ │ ├── haskell_cabal.js
│ │ ├── haxe.js
│ │ ├── hjson.js
│ │ ├── html.js
│ │ ├── html_elixir.js
│ │ ├── html_ruby.js
│ │ ├── ini.js
│ │ ├── io.js
│ │ ├── jack.js
│ │ ├── jade.js
│ │ ├── java.js
│ │ ├── javascript.js
│ │ ├── json.js
│ │ ├── json5.js
│ │ ├── jsoniq.js
│ │ ├── jsp.js
│ │ ├── jssm.js
│ │ ├── jsx.js
│ │ ├── julia.js
│ │ ├── kotlin.js
│ │ ├── latex.js
│ │ ├── latte.js
│ │ ├── less.js
│ │ ├── liquid.js
│ │ ├── lisp.js
│ │ ├── livescript.js
│ │ ├── logiql.js
│ │ ├── logtalk.js
│ │ ├── lsl.js
│ │ ├── lua.js
│ │ ├── luapage.js
│ │ ├── lucene.js
│ │ ├── makefile.js
│ │ ├── markdown.js
│ │ ├── mask.js
│ │ ├── matlab.js
│ │ ├── maze.js
│ │ ├── mediawiki.js
│ │ ├── mel.js
│ │ ├── mips.js
│ │ ├── mixal.js
│ │ ├── mushcode.js
│ │ ├── mysql.js
│ │ ├── nginx.js
│ │ ├── nim.js
│ │ ├── nix.js
│ │ ├── nsis.js
│ │ ├── nunjucks.js
│ │ ├── objectivec.js
│ │ ├── ocaml.js
│ │ ├── pascal.js
│ │ ├── perl.js
│ │ ├── pgsql.js
│ │ ├── php.js
│ │ ├── php_laravel_blade.js
│ │ ├── pig.js
│ │ ├── plain_text.js
│ │ ├── powershell.js
│ │ ├── praat.js
│ │ ├── prisma.js
│ │ ├── prolog.js
│ │ ├── properties.js
│ │ ├── protobuf.js
│ │ ├── puppet.js
│ │ ├── python.js
│ │ ├── qml.js
│ │ ├── r.js
│ │ ├── raku.js
│ │ ├── razor.js
│ │ ├── rdoc.js
│ │ ├── red.js
│ │ ├── redshift.js
│ │ ├── rhtml.js
│ │ ├── rst.js
│ │ ├── ruby.js
│ │ ├── rust.js
│ │ ├── sass.js
│ │ ├── scad.js
│ │ ├── scala.js
│ │ ├── scheme.js
│ │ ├── scrypt.js
│ │ ├── scss.js
│ │ ├── sh.js
│ │ ├── sjs.js
│ │ ├── slim.js
│ │ ├── smarty.js
│ │ ├── smithy.js
│ │ ├── snippets.js
│ │ ├── soy_template.js
│ │ ├── space.js
│ │ ├── sparql.js
│ │ ├── sql.js
│ │ ├── sqlserver.js
│ │ ├── stylus.js
│ │ ├── svg.js
│ │ ├── swift.js
│ │ ├── tcl.js
│ │ ├── terraform.js
│ │ ├── tex.js
│ │ ├── text.js
│ │ ├── textile.js
│ │ ├── toml.js
│ │ ├── tsx.js
│ │ ├── turtle.js
│ │ ├── twig.js
│ │ ├── typescript.js
│ │ ├── vala.js
│ │ ├── vbscript.js
│ │ ├── velocity.js
│ │ ├── verilog.js
│ │ ├── vhdl.js
│ │ ├── visualforce.js
│ │ ├── wollok.js
│ │ ├── xml.js
│ │ ├── xquery.js
│ │ ├── yaml.js
│ │ └── zeek.js
│ ├── theme-darkplus.js
│ ├── theme-dracula.js
│ ├── worker-base.js
│ └── worker-javascript.js
│ └── chevrotain
│ ├── chevrotain.js
│ └── lodash.js
└── index.html
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | package*
3 | .vscode/
4 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contribuyendo
2 |
3 | Primero que nada, gracias por contibuir a RobotScript. Gracias a personas como vos que sin esperar nada a cambio mejora projectos apuntados al crecimiento de la sociedad.
4 |
5 | Seguir esta guia hace llegar que respetas el tiempo y esfuerzo de los desarrolladores que manejan y desarrollan este project de codigo abierto. En respuesta, ellos deberan reciprocramente respetar en recibir tus issues, changes y pull request.
6 |
7 | RobotScript es un projecto de codigo abierto y siempre esta con los brazos abiertos de recibir contribuciones de parte de la comunidad que lo consume como de la que solo quiere mejorarlo. Las formas de contribuir no tienen restricciones, pero como ejemplo algunas de ellas pueden ser:
8 | - Escribir turoriales de la pagina o del lenguage.
9 | - Mejorar la documentacion existente.
10 | - Enviar reportes de bugs o solicitud de nuevas features.
11 | - Enviar mejoras de codigo o implementaciones de nuevas features.
12 |
13 |
14 | ## Codigo de Conducta de la Comunidad
15 |
16 | Primero que nada, leer el [CODIGO DE CONDUCTA](./CODE_OF_CONDUCT.md)
17 |
18 | El objetivo es fomentar y mantener una comunidad plasentera y de utilidad para el otro. Es por este motivo que es casi un requerimiento que cualquier contribuiyente y/o sujeto que interactuee con esta comunidad siga este codigo de conducta.
19 |
20 | ### Se considerado
21 |
22 | Tu trabajo, aportes y comentarios seran vistos-usados por otros, y asi mismo vos tambien te encuentras en la misma situacion de dependencia. Cualquier accion afecta a usuarios y colegas, y se espera que al momento de actuar previamente se tengan en cuenta las consecuencias de tus acciones a corto y largo plazo.
23 |
24 | ### Se respetuoso
25 |
26 | La comunidad de RobotScript trata a cualquier individuo con respeto. Cualquiera puede hacer una contribucion importante a RobotScript por mas pequeña que sea. Algunas veces no se llegara a un acuerdo o se aceptara, pero lo contrario no es excusa para un manejo y trato con el otro pobre y deshumano. A pesar de las condiciones sociomentales que estemos transitando todos debemos ser considerados con el otro y mantener la confortabilidad y buen proceder que se espera recibir.
27 |
28 | ### Se colaborativo
29 |
30 | La colaboracion es un pieza fundamental en el codigo abierto. Siempre debemos estas abiertos a colaborar y aceptar a quienes desean hacerlo. Se alienta a los individuos a que contribueyan siempre y cuando lo hagan con buena intencion y de la manera correcta.
31 |
32 | ### Cuando no estes seguro, consulta por ayuda
33 |
34 | Nadie nace sabiendo todo, y nadie es experto en todos los campos. Solicitar ayuda puede ahorrar mal estar emocional, menos perdida de tiempo y acelerar el proceso que estes transitando. Al momento de preguntar sienta la comodidad de hacerlo pero de manera adecuada y donde corresponde, asi mismo al momento de constestar debe ser de la misma manera.
35 |
36 |
37 | ## Tu primera contribucion
38 |
39 | No estas seguro de como contribuir, aqui una pequeña guia: [How to Contribute to an Open Source Project on GitHub](https://kcd.im/pull-request)
40 |
41 | No dudes en preguntar, las primeras veces suelen ser las mas dificiles
42 |
43 |
44 | ## Como reportar un bug
45 |
46 | Al momento de reportar un bug o error encontrado, antes de proseguir verifique si el problema ya fue reportado en la seccion de Issues para evitar duplicar reportes
47 |
48 | Cuando este creando un reporte, tenga en cuenta que debe contestar estas 5 preguntar minimamente:
49 |
50 | 1. En que dispositivo se encuentra?
51 |
52 | 1. Que navegador esta utilizando?
53 |
54 | 1. Que fue lo que hizo?
55 |
56 | 1. Que esperaba que sucediera?
57 |
58 | 1. Que es lo que sucedio?
59 |
60 |
61 | ## Como sugerir una nueva fuincionalidad o mejora
62 |
63 | Si te encuentras en la situacion de que necesitas o deseas una nueva funcionalidad que no existe en RobotScript, seguramente no estas solo, debe haber mas usuarios que puedan pensar igual lo importante es transmitirlo.
64 |
65 | Para hacerlo solo crea una nueva Issue donde se describa en que consiste y como deberia funcionar, si se encuentra dentro de los objetivos e ideales del proyecto seguramente con el tiempo va a ser implementada o mejor aun tu podrias ser quien la implemente.
66 |
67 |
68 | ## Proceso de revision de codigo
69 |
70 | El equipo de desarrollo frecuentemente examina los pull request solicitados. Si estan bien fundamentados, no causan conflictos con el resto del codigo y aportan al proyecto seran mergeados con total aceptacion.
71 |
72 | Si hay algo que cambiar o errores seran comunicados para la revision por el emitente para su recodificacion.
73 |
74 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Josue Suarez
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # RobotScript
4 |
5 |
6 | ## Introducción
7 |
8 | RobotScript es una reversion del entorno de programación R-Info usada en la facultad UNLP Informatica para la enseñanza de contenido. El objetivo es llevar el concepto a tiempos modernos, aumentando las herramientas que brinda, mejorando la interfaz y el acceso a la misma, ya que ahora al ser una pagina web puede ser utilizada en cualquier navegador sin la necesidad de descargar ni instalar algo.
9 |
10 |
11 | **Pagina web: [https://josu-dev.github.io/RobotScript/](https://josu-dev.github.io/RobotScript/)**
12 |
13 | > En estado funcional pero desarrollo no terminado
14 |
15 |
16 | ## Importante
17 |
18 | Existen algunas diferencias de sintaxis entre R-Info y RobotScript, estas son:
19 |
20 | | R-Info | RobotScript |
21 | | :-: | :-: |
22 | | V | verdad |
23 | | F | falso |
24 | | { | /* |
25 | | } | */ |
26 |
27 | Las expresiones para las instrucciones si, repetir y mientras deben estar contenidas en parentesis:
28 |
29 | - R-Info
30 |
31 | ```text
32 | si 16 < cantidad
33 |
34 | repetir 5
35 |
36 | mientras (56 > n) & estado
37 | ```
38 |
39 | - RobotScript
40 |
41 | ```text
42 | si (16 < cantidad)
43 |
44 | repetir (5)
45 |
46 | mientras ((56 > n) & estado)
47 | ```
48 |
49 |
50 |
51 |
52 |
53 | ## Características
54 |
55 | - Editor de codigo integrado
56 | - Compilación con validación de errores
57 | - Interpretador de codigo integrado
58 | - Multiples instancias
59 | - Documentacion
60 | - Apto movil (funcional)
61 | - Y mas
62 |
63 |
64 |
65 |
66 |
67 | ## Implementaciones futuras
68 |
69 | - Hud de estado de instancias
70 | - Selección de camara, libre o seguir una instancia
71 | - Interfaz y funcionalidad para modificar el tiempo entre actualizaciones
72 |
73 |
74 |
75 |
76 |
77 | ## Librerias usadas
78 |
79 | - Chevrotain - [repository](https://github.com/Chevrotain/chevrotain)
80 | - Ace - [repository](https://github.com/ajaxorg/ace)
81 |
82 |
83 |
84 |
85 |
86 | ## Contribuir
87 |
88 | Lea [CONTRIBUTING.md](./CONTRIBUTING.md) para mas detalles en los codigos de conducta del proyecto y del proceso de contribucion.
89 |
90 |
91 |
92 |
93 |
94 | ## Autores
95 |
96 | - Josue Suarez - *Creador*
97 |
98 |
99 |
100 |
101 |
102 | ## Licencia
103 |
104 | Este projecto esta licenciado bajo la Licencia MIT, lea [LICENSE](./LICENSE) para mas detalles.
105 |
106 |
107 |
108 |
109 |
110 |
111 | > Desarrollado unicamente para aportar a la educación y ayudar al otro.
112 |
--------------------------------------------------------------------------------
/docs/language/css/language.css:
--------------------------------------------------------------------------------
1 | @import url('../../../general/base.css');
2 |
3 | .content {
4 | overflow: hidden;
5 | border-radius: 0.5rem;
6 | border: 1px solid var(--clr-bg-400);
7 | }
8 |
--------------------------------------------------------------------------------
/docs/language/css/sintax-diagram.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --clr-txt-default: hsl(32, 10%, 90%);
3 |
4 | --clr-bg-900: hsl(0,0%,4%);
5 | --clr-bg-800: hsl(0,0%,8%);
6 | --clr-bg-700: hsl(0,0%,12%);
7 | --clr-bg-600: hsl(0,0%,16%);
8 | --clr-bg-500: hsl(0,0%,20%);
9 | --clr-bg-400: hsl(0,0%,24%);
10 |
11 | --clr-br-0: hsl(32,100%,40%);
12 | --clr-br-no-seleccion-1: hsl(16,100%,40%);
13 | --clr-br-no-seleccion-2: hsl(24,100%,40%);
14 | --clr-br-seleccion-1: hsl(12,100%,50%);
15 | --clr-br-seleccion-2: hsl(20,100%,50%);
16 |
17 | --clr-bg-no-seleccion-1: hsl(0,100%,90%);
18 | --clr-bg-no-seleccion-2: hsl(0,100%,96%);
19 | --clr-bg-seleccion-1: hsl(60,100%,50%);
20 | --clr-bg-seleccion-2: hsl(60,100%,45%);
21 | --clr-bg-seleccion-3: hsl(60,100%,15%);
22 |
23 | --gdt-tb-rs: to bottom, hsl(0,100%,50%) , hsl(30,100%,50%);
24 | --gdt-tb-rs-a0: to bottom, hsl(0,100%,35%) , hsl(30,100%,35%);
25 | --gdt-tr-rs: to right, hsl(0,100%,50%) , hsl(30,100%,50%);
26 | --gdt-tl-rs: to left, hsl(0,100%,50%) , hsl(30,100%,50%);
27 | --gdt-tl-rs-a0: to left, hsl(0,100%,35%) , hsl(30,100%,35%);
28 | }
29 |
30 | body {
31 | background-color: var(--clr-bg-700);
32 | color: var(--clr-txt-default);
33 | }
34 |
35 | svg {
36 | fill: black;
37 | }
38 |
39 | svg.railroad-diagram path {
40 | stroke-width: 3;
41 | stroke: var(--clr-br-0);
42 | fill: rgba(0, 0, 0, 0);
43 | }
44 |
45 | svg.railroad-diagram text {
46 | font: bold 14px monospace;
47 | text-anchor: middle;
48 | }
49 |
50 | svg.railroad-diagram text.label {
51 | text-anchor: start;
52 | }
53 |
54 | svg.railroad-diagram text.comment {
55 | font: italic 12px monospace;
56 | }
57 |
58 | svg.railroad-diagram g.non-terminal rect {
59 | stroke-width: 1;
60 | stroke: black;
61 | fill: var(--clr-bg-no-seleccion-1);
62 | }
63 |
64 | svg.railroad-diagram rect {
65 | stroke-width: 1;
66 | stroke: black;
67 | fill: var(--clr-bg-no-seleccion-2);
68 | }
69 |
70 | .diagramHeader {
71 | display: inline-block;
72 | -webkit-touch-callout: default;
73 | -webkit-user-select: text;
74 | -khtml-user-select: text;
75 | -moz-user-select: text;
76 | -ms-user-select: text;
77 | user-select: text;
78 | font-weight: bold;
79 | font-family: monospace;
80 | font-size: 18px;
81 | margin-bottom: -8px;
82 | text-align: center;
83 | }
84 |
85 | .diagramHeaderDef {
86 | background-color: var(--clr-bg-seleccion-3);
87 | }
88 |
89 | svg.railroad-diagram text {
90 | -webkit-touch-callout: default;
91 | -webkit-user-select: text;
92 | -khtml-user-select: text;
93 | -moz-user-select: text;
94 | -ms-user-select: text;
95 | user-select: text;
96 | }
97 |
98 | svg.railroad-diagram g.non-terminal rect.diagramRectUsage {
99 | color: green;
100 | fill: var(--clr-bg-seleccion-1);
101 | stroke-width: 2;
102 | stroke: var(--clr-br-seleccion-1);
103 | }
104 |
105 | svg.railroad-diagram g.terminal rect.diagramRectUsage {
106 | color: green;
107 | fill: var(--clr-bg-seleccion-2);
108 | stroke-width: 2;
109 | stroke: var(--clr-br-seleccion-1);
110 | }
111 |
112 | div {
113 | -webkit-touch-callout: none;
114 | -webkit-user-select: none;
115 | -khtml-user-select: none;
116 | -moz-user-select: none;
117 | -ms-user-select: none;
118 | user-select: none;
119 | }
120 |
121 | svg {
122 | width: 100%;
123 | }
124 |
125 | svg.railroad-diagram g.non-terminal text {
126 | cursor: pointer;
127 | }
128 |
129 |
130 | ::-webkit-scrollbar {
131 | width: 0.5rem;
132 | height: 0.5rem;
133 | }
134 |
135 | ::-webkit-scrollbar-track {
136 | background: var(--clr-bg-700);
137 | }
138 |
139 | ::-webkit-scrollbar-thumb:vertical {
140 | background: linear-gradient(var(--gdt-tb-rs-a0));
141 | }
142 | ::-webkit-scrollbar-thumb:vertical:hover {
143 | background: linear-gradient(var(--gdt-tb-rs));
144 | }
145 | ::-webkit-scrollbar-thumb:horizontal {
146 | background: linear-gradient(var(--gdt-tl-rs-a0));
147 | }
148 | ::-webkit-scrollbar-thumb:horizontal:hover {
149 | background: linear-gradient(var(--gdt-tl-rs));
150 | }
--------------------------------------------------------------------------------
/docs/language/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
block, highlight.js css expects a top-level 'hljs' class.
19 | mangle: true, // If true, autolinked email address is escaped with HTML character references.
20 | pedantic: false, // If true, conform to the original markdown.pl as much as possible. Don't fix original markdown bugs or behavior. Turns off and overrides gfm.
21 | sanitize: false,
22 | sanitizer: null,
23 | smartLists: true,
24 | smartypants: false,
25 | xhtml: false
26 | });
27 |
28 | function mdToHTML(mdString) {
29 | const htmlOutput = marked.parse(mdString);
30 | return htmlOutput;
31 | }
32 |
33 | export default mdToHTML;
--------------------------------------------------------------------------------
/general/PageManager.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | class PageManager {
4 | constructor(config) {
5 | this.storage = config.storage;
6 |
7 | // Elements
8 | this.mainBar = {
9 | mode : {
10 | btnLeft : document.querySelector(".mode-btn.left"),
11 | btnRight : document.querySelector(".mode-btn.right")
12 | },
13 | primaryNav : document.querySelector(".primary-navigation"),
14 | navToggle : document.querySelector(".primary-nav-toggle")
15 | };
16 | this.mainContent = {
17 | left : document.querySelector(".content.left"),
18 | right : document.querySelector(".content.right")
19 | };
20 |
21 | // Events
22 | this.mainBar.navToggle.addEventListener("click", () => {
23 | const visivility = this.mainBar.primaryNav.getAttribute("data-visible");
24 | if (visivility === "false") {
25 | this.mainBar.primaryNav.setAttribute("data-visible", true);
26 | this.mainBar.navToggle.setAttribute("aria-expanded", true);
27 | }
28 | else {
29 | this.mainBar.primaryNav.setAttribute("data-visible", false);
30 | this.mainBar.navToggle.setAttribute("aria-expanded", false);
31 | }
32 | });
33 |
34 | this.mainBar.mode.btnLeft.addEventListener("click", () => {
35 | const selected = this.mainBar.mode.btnLeft.getAttribute("data-selected");
36 | if (selected === "true") return;
37 |
38 | this.toContentLeft();
39 | });
40 | this.mainBar.mode.btnRight.addEventListener("click", () => {
41 | const selected = this.mainBar.mode.btnRight.getAttribute("data-selected");
42 | if (selected === "true") return;
43 |
44 | this.toContentRight();
45 | });
46 |
47 | const contentMode = this.storage.getLocalValue("content-mode", "left");
48 | if (contentMode !== "left") this.toContentRight();
49 | }
50 |
51 | toContentLeft() {
52 | this.mainBar.mode.btnLeft.setAttribute("data-selected", true);
53 | this.mainBar.mode.btnRight.setAttribute("data-selected", false);
54 | this.mainContent.left.setAttribute("data-visible", true);
55 | this.mainContent.right.setAttribute("data-visible", false);
56 |
57 | this.storage.setLocalValue("content-mode", "left");
58 | }
59 |
60 | toContentRight() {
61 | this.mainBar.mode.btnLeft.setAttribute("data-selected", false);
62 | this.mainBar.mode.btnRight.setAttribute("data-selected", true);
63 | this.mainContent.left.setAttribute("data-visible", false);
64 | this.mainContent.right.setAttribute("data-visible", true);
65 |
66 | this.storage.setLocalValue("content-mode", "right");
67 | }
68 | }
69 |
70 | export default PageManager;
71 |
--------------------------------------------------------------------------------
/general/StorageAdministrator.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | class LocalItem {
4 | constructor(key = "", defaultValue = "") {
5 | if (!localStorage.getItem(key)) {
6 | localStorage.setItem(key, defaultValue);
7 | }
8 | this.key = key;
9 | }
10 |
11 | getValue() {
12 | return localStorage.getItem(this.key);
13 | }
14 |
15 | setValue(value) {
16 | localStorage.setItem(this.key, value);
17 | }
18 | }
19 |
20 | class StorageAdministrator {
21 | constructor() {
22 | this.localKeys = [];
23 | this.localItems = [];
24 |
25 | Object.keys(localStorage).forEach(key => {
26 | this.localKeys.push(key);
27 | this.localItems.push(new LocalItem(key, ""))
28 | })
29 | }
30 |
31 | addLocalItem (key = "", defaultValue ) {
32 | if (key === "") return;
33 | this.localKeys.push(key);
34 | const newItem = new LocalItem(key, defaultValue);
35 | this.localItems.push(newItem);
36 | }
37 |
38 | getLocalValue (key = "", defaultValue ) {
39 | const keyIndex = this.localKeys.indexOf(key);
40 | if (keyIndex === -1) {
41 | this.addLocalItem(key, defaultValue);
42 | return defaultValue;
43 | };
44 |
45 | const value = this.localItems[keyIndex].getValue();
46 |
47 | return value;
48 | }
49 |
50 | setLocalValue (key = "", value ) {
51 | const keyIndex = this.localKeys.indexOf(key);
52 | if (keyIndex === -1) {
53 | this.addLocalItem(key, value);
54 | return;
55 | }
56 |
57 | this.localItems[keyIndex].setValue(value);
58 | }
59 |
60 | clear () {
61 | localStorage.clear();
62 | }
63 | }
64 |
65 | export default StorageAdministrator;
66 |
--------------------------------------------------------------------------------
/general/assets/RobotScript-Icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/general/assets/RobotScript-Icon.ico
--------------------------------------------------------------------------------
/general/base.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Page name
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | RobotScript
21 |
22 |
23 |
24 |
28 |
29 |
33 |
34 |
35 |
36 |
38 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/ide/assets/city/map/background-city-sunshine-1920x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/background-city-sunshine-1920x1920.jpg
--------------------------------------------------------------------------------
/ide/assets/city/map/background-grass-1920x1920.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/background-grass-1920x1920.png
--------------------------------------------------------------------------------
/ide/assets/city/map/background-grass-64x64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/background-grass-64x64.png
--------------------------------------------------------------------------------
/ide/assets/city/map/background-mountain-sunshine-1920x1920.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/background-mountain-sunshine-1920x1920.jpg
--------------------------------------------------------------------------------
/ide/assets/city/map/background-sunshine-siluets-1920x1080.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/background-sunshine-siluets-1920x1080.png
--------------------------------------------------------------------------------
/ide/assets/city/map/city-bordered-1624x1624.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/city-bordered-1624x1624.png
--------------------------------------------------------------------------------
/ide/assets/city/map/city-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/map/city-default.png
--------------------------------------------------------------------------------
/ide/assets/city/object/camera/camera-32x8-invisible.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/camera/camera-32x8-invisible.png
--------------------------------------------------------------------------------
/ide/assets/city/object/camera/camera-32x8-visible.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/camera/camera-32x8-visible.png
--------------------------------------------------------------------------------
/ide/assets/city/object/item/flower-8x8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/item/flower-8x8.png
--------------------------------------------------------------------------------
/ide/assets/city/object/item/paper-8x8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/item/paper-8x8.png
--------------------------------------------------------------------------------
/ide/assets/city/object/item/rock-8x8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/item/rock-8x8.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/Robot-Animation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/Robot-Animation.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-0.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-1.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-2.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-3.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-4.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-5.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-6.png
--------------------------------------------------------------------------------
/ide/assets/city/object/robot/robot-32x8-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/object/robot/robot-32x8-7.png
--------------------------------------------------------------------------------
/ide/assets/city/robotstatus/robotstatus-plate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/robotstatus/robotstatus-plate.png
--------------------------------------------------------------------------------
/ide/assets/city/sprite-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josu-dev/RobotScript/6fa2cc24441a84b38f2a75fc06003e9d49d32686/ide/assets/city/sprite-default.png
--------------------------------------------------------------------------------
/ide/js/general/IdeStorage.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | import StorageAdministrator from "../../../general/StorageAdministrator.js";
4 |
5 | class IdeStorage extends StorageAdministrator {
6 | constructor() {
7 | super();
8 |
9 | /**
10 | * @type {{new: boolean, ast: RSast}}
11 | */
12 | this.program = {
13 | new : false,
14 | ast : null
15 | }
16 |
17 | const w1 = document.querySelector(".window-editor");
18 | const w2 = document.querySelector(".window-interpreter");
19 | let width = 0, height = 0;
20 | if (w1.clientWidth > 0 && w1.clientWidth < 1440) {
21 | width = w1.clientWidth;
22 | height = w1.clientHeight;
23 | } else {
24 | width = w2.clientWidth;
25 | height = w2.clientHeight;
26 | }
27 |
28 | this.camera = {
29 | scale : 1,
30 | origin : {
31 | x : 0,
32 | y : 0
33 | },
34 | width : width,
35 | height : height
36 | }
37 |
38 | this.items = {
39 | flowers : [],
40 | papers : []
41 | }
42 | }
43 | /**
44 | * Loads a RobotScript ast passed by argument, if its null it removes the last ast if any was loaded
45 | * @param {RSast|null} newProgram
46 | */
47 | loadProgram ( newProgram ) {
48 | if (!newProgram) {
49 | this.program.new = false;
50 | this.program.ast = null;
51 | }
52 | else {
53 | this.program.new = true;
54 | this.program.ast = newProgram;
55 | }
56 | }
57 |
58 | /**
59 | * If a RobotScript ast was loaded it returns it, if not return null
60 | * @returns {RSast|null} a {@link RSast} or null
61 | */
62 | getProgram () {
63 | return this.program.ast;
64 | }
65 |
66 | addItems (config) {
67 | config.items.forEach(newI => {
68 |
69 | const addedIndex = this.items[config.type].findIndex(oldI => (oldI.x === newI.x && oldI.y === newI.y));
70 |
71 | if (addedIndex === -1) this.items[config.type].push(newI);
72 | else this.items[config.type][addedIndex].quantity += newI.quantity;
73 | });
74 | };
75 | clearItems (config) {
76 | for (let i=0; i= config.x.min && f.x <= config.x.max && f.y >= config.y.min && f.y <= config.y.max ) {
79 | this.items.flowers.splice(i, 1);
80 | i--;
81 | }
82 | };
83 | for (let i=0; i= config.x.min && f.x <= config.x.max && f.y >= config.y.min && f.y <= config.y.max ) {
86 | this.items.papers.splice(i, 1);
87 | i--;
88 | }
89 | };
90 | }
91 | }
92 |
93 | export default IdeStorage;
94 |
--------------------------------------------------------------------------------
/ide/js/general/Manager.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | import StorageAdministrator from "./IdeStorage.js";
4 |
5 | /**
6 | * Base class for manegin windows
7 | * @module Manager
8 | */
9 | class Manager {
10 | /**
11 | *
12 | * @param {object} config
13 | * @param {HTMLElement} config.container
14 | * @param {string} config.defaultName
15 | * @param {StorageAdministrator} config.storage
16 | */
17 | constructor({ container, defaultName, storage }) {
18 | this.container = container;
19 | this.defaultName = defaultName;
20 | this.storage = storage;
21 |
22 | this.toolBar = {}
23 |
24 | this.window = this.container.querySelector(".window")
25 |
26 | this.stateBar = {
27 | container: this.container.querySelector(".state-bar"),
28 | logs: this.container.querySelector(".console-logs")
29 | }
30 |
31 | /**
32 | * @typedef {"default" | "info" | "valid" | "warning" | "error"} LogState
33 | * @typedef {{
34 | * state: LogState,
35 | * emitter?: string,
36 | * message: string
37 | * }} LogMessage
38 | */
39 | this.console = {
40 | /**
41 | * @param {LogMessage[]} logs
42 | */
43 | set: (logs) => {
44 | const actualTime = new Date().toTimeString().slice(0, 5);
45 | let newLog = "";
46 | logs.forEach(log => newLog = `${actualTime} ${log.emitter || this.defaultName}: ${log.message}\n${newLog}`)
47 | this.stateBar.logs.innerHTML = `${newLog}
`;
48 | },
49 | /**
50 | * @param {LogMessage[]} logs
51 | */
52 | add: (logs) => {
53 | const actualTime = new Date().toTimeString().slice(0, 5);
54 | const oldLog = this.stateBar.logs.innerHTML;
55 | let newLog = ""
56 | if (oldLog.length > 3) newLog = oldLog.slice(3, (oldLog.length - 4));
57 | logs.forEach(log => newLog = `${actualTime} ${log.emitter || this.defaultName}: ${log.message}\n${newLog}`)
58 | this.stateBar.logs.innerHTML = `${newLog}
`;
59 | },
60 | clear: () => {
61 | this.stateBar.logs.innerHTML = "";
62 | }
63 | }
64 | }
65 | }
66 |
67 | export default Manager;
68 |
--------------------------------------------------------------------------------
/ide/js/general/PageManager.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | class PageManager {
4 | constructor(config) {
5 | this.storage = config.storage;
6 |
7 | this.mainBar = {
8 | mode : {
9 | btnEditor : document.querySelector(".mode-btn.btnEditor"),
10 | btnInterpreter : document.querySelector(".mode-btn.btnInterpreter")
11 | },
12 | primaryNav : document.querySelector(".primary-navigation"),
13 | navToggle : document.querySelector(".primary-nav-toggle")
14 | };
15 |
16 | this.mainContent = {
17 | editor : document.querySelector(".content.editor"),
18 | interpreter : document.querySelector(".content.interpreter")
19 | };
20 |
21 | this.mainBar.navToggle.addEventListener("click", () => {
22 | const visivility = this.mainBar.primaryNav.getAttribute("data-visible");
23 | if (visivility === "false") {
24 | this.mainBar.primaryNav.setAttribute("data-visible", true);
25 | this.mainBar.navToggle.setAttribute("aria-expanded", true);
26 | }
27 | else {
28 | this.mainBar.primaryNav.setAttribute("data-visible", false);
29 | this.mainBar.navToggle.setAttribute("aria-expanded", false);
30 | }
31 | });
32 |
33 | this.mainContent = {
34 | editor : document.querySelector(".content.editor"),
35 | interpreter : document.querySelector(".content.interpreter")
36 | };
37 |
38 | this.mainBar.mode.btnEditor.addEventListener("click", () => {
39 | const selected = this.mainBar.mode.btnEditor.getAttribute("data-selected");
40 | if (selected === "true") return;
41 |
42 | this.toEditor();
43 | });
44 | this.mainBar.mode.btnInterpreter.addEventListener("click", () => {
45 | const selected = this.mainBar.mode.btnInterpreter.getAttribute("data-selected");
46 | if (selected === "true") return;
47 |
48 | this.toInterpreter();
49 | });
50 |
51 | const isSelection = this.storage.getLocalValue("content-mode", "editor");
52 | if (isSelection !== "editor") this.toInterpreter();
53 | }
54 |
55 | toEditor() {
56 | this.mainBar.mode.btnEditor.setAttribute("data-selected", true);
57 | this.mainBar.mode.btnInterpreter.setAttribute("data-selected", false);
58 | this.mainContent.editor.setAttribute("data-visible", true);
59 | this.mainContent.interpreter.setAttribute("data-visible", false);
60 |
61 | this.storage.setLocalValue("content-mode", "editor");
62 | }
63 |
64 | toInterpreter() {
65 | this.mainBar.mode.btnEditor.setAttribute("data-selected", false);
66 | this.mainBar.mode.btnInterpreter.setAttribute("data-selected", true);
67 | this.mainContent.editor.setAttribute("data-visible", false);
68 | this.mainContent.interpreter.setAttribute("data-visible", true);
69 |
70 | this.storage.setLocalValue("content-mode", "interpreter");
71 | }
72 | }
73 |
74 | export default PageManager;
75 |
--------------------------------------------------------------------------------
/ide/js/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | import IdeStorage from "./general/IdeStorage.js";
4 | import PageManager from "./../../general/PageManager.js";
5 | import EditorManager from "./editor/EditorManager.js";
6 | import InterpreterManager from "./interpreter/InterpreterManager.js"
7 |
8 | const myStorage = new IdeStorage();
9 |
10 | const myPage = new PageManager({
11 | storage : myStorage
12 | });
13 |
14 | const myEditor = new EditorManager({
15 | container : document.querySelector(".content.left"),
16 | storage : myStorage
17 | });
18 |
19 | const myInterpreter = new InterpreterManager({
20 | container : document.querySelector(".content.right"),
21 | storage : myStorage
22 | });
--------------------------------------------------------------------------------
/ide/js/interpreter/city/hud/Hud.js:
--------------------------------------------------------------------------------
1 | class Hud {
2 | constructor(city) {
3 | this.city = city;
4 | this.statusboards = [];
5 | }
6 |
7 | update() {
8 | this.statusboards.forEach(s => {
9 | s.update(window.programState.instances[s.id]);
10 | });
11 | }
12 |
13 | createElement() {
14 | this.element = document.createElement("div");
15 | this.element.classList.add("Hud");
16 |
17 | const { programState } = window;
18 | programState.instances.forEach(key => {
19 | const robot = programState.robots[key];
20 | const statusboard = new RobotStatus({
21 | id : key,
22 | ...robot
23 | }, this.city);
24 | statusboard.createElement();
25 | this.statusboards.push(statusboard);
26 | this.element.appendChild(statusboard.hudElement);
27 |
28 | });
29 | this.update();
30 | }
31 |
32 | init(container) {
33 | this.createElement();
34 | container.appendChild(this.element);
35 |
36 | document.addEventListener("ProgramStateUpdated", () => {
37 | this.update();
38 | })
39 | }
40 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/hud/RobotStatus.js:
--------------------------------------------------------------------------------
1 | class RobotStatus {
2 | constructor(config, city) {
3 | Object.keys(config).forEach(key => {
4 | this[key] = config[key];
5 | })
6 | this.city = city;
7 | }
8 |
9 | createElement() {
10 | this.hudElement = document.createElement("div");
11 | this.hudElement.classList.add("RobotStatus");
12 | this.hudElement.setAttribute("data-robotstatus", this.id);
13 | this.hudElement.innerHTML = (`
14 | ${this.name}
15 |
16 |
17 |
18 | Inventario
19 | F: ${this.inventory.flowers} | P: ${this.inventory.papers}
20 | Position
21 | Ca: ${this.x} | Av: ${this.y}
22 | `);
23 |
24 | this.inventoryElement = this.hudElement.querySelector(".RobotStatus_inventory");
25 | this.positionElement = this.hudElement.querySelector(".RobotStatus_position");
26 | }
27 |
28 | update(changes={}) {
29 | Object.keys(changes).forEach(key => {
30 | this[key] = changes[key];
31 | });
32 |
33 | this.inventoryElement.innerText = `F: ${this.inventory.flowers} | P: ${this.inventory.papers}`;
34 | this.positionElement.innerText = `Ca: ${this.x} | Av: ${this.y}`;
35 | }
36 |
37 | init(container) {
38 | this.createElement();
39 | container.appendChild(this.hudElement);
40 |
41 | this.update();
42 | }
43 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/noUsed/CityEvent.js:
--------------------------------------------------------------------------------
1 | class CityEvent {
2 | constructor({ map, event }) {
3 | this.map = map;
4 | this.event = event;
5 | }
6 |
7 | move(resolve) {
8 | const who = this.map.cityObjects[ this.event.who ];
9 | who.startBehavior({
10 | map: this.map
11 | }, {
12 | type: "move",
13 | direction: this.event.direction
14 | });
15 |
16 | //Set up a handler when the correct robot finish and resolve the event
17 | const completeHandler = e =>{
18 | if (e.detail.whoId === this.event.who) {
19 | document.removeEventListener("RobotMovingComplete", completeHandler);
20 | resolve();
21 | }
22 | }
23 |
24 | document.addEventListener("RobotMovingComplete", completeHandler)
25 | }
26 |
27 | rotate(resolve) {
28 | const who = this.map.cityObjects[ this.event.who ];
29 | who.startBehavior({
30 | map: this.map
31 | }, {
32 | type: "rotate",
33 | direction: this.event.direction,
34 | time: this.event.time
35 | });
36 |
37 | //Set up a handler when the correct robot finish and resolve the event
38 | const completeHandler = e =>{
39 | if (e.detail.whoId === this.event.who) {
40 | document.removeEventListener("RobotRotateComplete", completeHandler);
41 | resolve();
42 | }
43 | }
44 |
45 | document.addEventListener("RobotRotateComplete", completeHandler)
46 |
47 | }
48 |
49 | textMessage(resolve) {
50 | const message = new TextMessage({
51 | text: this.event.text,
52 | onComplete: () => resolve()
53 | });
54 | message.init(document.querySelector(".city-container"));
55 | }
56 |
57 | pause(resolve) {
58 | this.map.isPaused = true;
59 | const menu = new PauseMenu({
60 | onComplete: () => {
61 | resolve();
62 | this.map.isPaused = false;
63 | this.map.city.startCityLoop();
64 | }
65 | });
66 | menu.init(document.querySelector(".city-container"));
67 | }
68 |
69 | init() {
70 | return new Promise(resolve => {
71 | this[this.event.type](resolve)
72 | });
73 | }
74 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/noUsed/DirectionInput.js:
--------------------------------------------------------------------------------
1 | class DirectionInput {
2 | constructor() {
3 | this.heldDirection = [];
4 |
5 | this.map = {
6 | "ArrowUp": "up",
7 | "KeyW": "up",
8 | "ArrowDown": "down",
9 | "KeyS": "down",
10 | "ArrowLeft": "left",
11 | "KeyA": "left",
12 | "ArrowRight": "right",
13 | "KeyD": "right",
14 | }
15 | }
16 |
17 | get direction() {
18 | return this.heldDirection[0];
19 | }
20 |
21 | init() {
22 | document.addEventListener("keydown", e => {
23 | const dir = this.map[e.code];
24 | if (dir && this.heldDirection.indexOf(dir) === -1) {
25 | this.heldDirection.unshift(dir);
26 | }
27 | });
28 | document.addEventListener("keyup", e => {
29 | const dir = this.map[e.code];
30 | const index = this.heldDirection.indexOf(dir);
31 | if (index > -1) {
32 | this.heldDirection.splice(index, 1);
33 | }
34 | });
35 | }
36 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/noUsed/KeyPressListener.js:
--------------------------------------------------------------------------------
1 | class KeyPressListener {
2 | constructor(keyCode, callback) {
3 | let keySafe = true;
4 | this.keydownFunction = function(event) {
5 | if (event.code === keyCode) {
6 | if (keySafe) {
7 | keySafe = false;
8 | callback();
9 | }
10 | }
11 | };
12 | this.keyupFunction = function(event) {
13 | if (event.code === keyCode) {
14 | keySafe = true;
15 | }
16 | };
17 | document.addEventListener("keydown", this.keydownFunction);
18 | document.addEventListener("keyup", this.keyupFunction);
19 | }
20 |
21 | unbind() {
22 | document.removeEventListener("keydown", this.keydownFunction);
23 | document.removeEventListener("keyup", this.keyupFunction);
24 | }
25 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/noUsed/PauseMenu.js:
--------------------------------------------------------------------------------
1 | class PauseMenu {
2 | constructor({onComplete}) {
3 | this.onComplete = onComplete;
4 | }
5 |
6 | getOptions(pageKey) {
7 | if (pageKey === "root") {
8 | return [
9 | {
10 | label: "Close",
11 | description: "Close the pause menu",
12 | handler: () => {
13 | this.close();
14 | }
15 | }
16 | ]
17 | }
18 |
19 | return [];
20 | }
21 |
22 | createElement() {
23 | this.element = document.createElement("div");
24 | this.element.classList.add("PauseMenu");
25 | this.element.innerHTML = (`
26 | Pause Menu
27 | `);
28 | }
29 |
30 | close() {
31 | this.esc?.unbind();
32 | //this.keyboardMenu.end();
33 | this.element.remove();
34 | this.onComplete();
35 | }
36 |
37 | async init(container) {
38 | this.createElement();
39 | /*
40 | this.keyboardMenu = new KeyboardMenu({
41 | descriptionContainer: container
42 | })
43 | this.keyboardMenu.init(this.element);
44 | this.keyboardMenu.setOptions(this.getOptions("root"));
45 | */
46 | container.appendChild(this.element);
47 |
48 | this.esc = new KeyPressListener("Escape", () => {
49 | this.close();
50 | })
51 | }
52 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/noUsed/TextMessage.js:
--------------------------------------------------------------------------------
1 | class TextMessage {
2 | constructor({ text, onComplete }) {
3 | this.text = text;
4 | this.onComplete = onComplete;
5 | this.element = null;
6 | }
7 |
8 | createElement() {
9 | this.element = document.createElement("div");
10 | this.element.classList.add("TextMessage");
11 |
12 | this.element.innerHTML = (`
13 | ${this.text}
14 |
15 | `);
16 |
17 | this.element.querySelector("button").addEventListener("click", () => {
18 | this.done();
19 | });
20 |
21 | this.actionListener = new KeyPressListener("Enter", () => {
22 | this.actionListener.unbind();
23 | this.done();
24 | })
25 | }
26 |
27 | done() {
28 | this.element.remove();
29 | this.onComplete();
30 | };
31 |
32 | init(container) {
33 | this.createElement();
34 | container.appendChild(this.element);
35 | }
36 | }
--------------------------------------------------------------------------------
/ide/js/interpreter/city/utils.js:
--------------------------------------------------------------------------------
1 | const gScale = 16;
2 |
3 | const utils = {
4 | withGrid(n) {
5 | return n * gScale;
6 | },
7 | asGridCoord(x,y) {
8 | return `${x * gScale},${y * gScale}`
9 | },
10 | nextPosition(initialX, initialY, direction) {
11 | let x = initialX;
12 | let y = initialY;
13 | const size = gScale;
14 | switch (direction) {
15 | case "up": y += size; break;
16 | case "down": y -= size; break;
17 | case "left": x -= size; break;
18 | case "right": x += size; break;
19 | default : console.log("Error: no valid direction at nextPosition call utils.js file");
20 | };
21 | return {x, y};
22 | },
23 | emitEvent(name, detail) {
24 | const event = new CustomEvent(name, {
25 | detail
26 | });
27 | document.dispatchEvent(event);
28 | }
29 | }
--------------------------------------------------------------------------------
/ide/lib/ace/ext-error_marker.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/ext/error_marker"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/ext-hardwrap.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/hardwrap",["require","exports","module","ace/range"], function(require, exports, module) {
2 | "use strict";
3 |
4 | var Range = require("../range").Range;
5 |
6 | function hardWrap(editor, options) {
7 | var max = options.column || editor.getOption("printMarginColumn");
8 |
9 | var row = Math.min(options.startRow, options.endRow);
10 | var endRow = Math.max(options.startRow, options.endRow);
11 |
12 | var session = editor.session;
13 |
14 | while (row <= endRow) {
15 | var line = session.getLine(row);
16 | if (line.length > max) {
17 | var space = findSpace(line, max, 5);
18 | if (space) {
19 | session.replace(new Range(row,space.start,row,space.end), "\n");
20 | }
21 | endRow++;
22 | } else if (/\S/.test(line) && row != endRow) {
23 | var nextLine = session.getLine(row + 1);
24 | if (nextLine && /\S/.test(nextLine)) {
25 | var trimmedLine = line.replace(/\s+$/, "");
26 | var trimmedNextLine = nextLine.replace(/^\s+/, "");
27 | var mergedLine = trimmedLine + " " + trimmedNextLine;
28 |
29 | var space = findSpace(mergedLine, max, 5);
30 | if (space && space.start > trimmedLine.length || mergedLine.length < max) {
31 | var replaceRange = new Range(row,trimmedLine.length,row + 1,nextLine.length - trimmedNextLine.length);
32 | session.replace(replaceRange, " ");
33 | row--;
34 | endRow--;
35 | }
36 | }
37 | }
38 | row++;
39 | }
40 |
41 | function findSpace(line, max, min) {
42 | if (line.length < max)
43 | return;
44 | var before = line.slice(0, max);
45 | var after = line.slice(max);
46 | var spaceAfter = /^(?:(\s+)|(\S+)(\s+))/.exec(after);
47 | var spaceBefore = /(?:(\s+)|(\s+)(\S+))$/.exec(before);
48 | var start = 0;
49 | var end = 0;
50 | if (spaceBefore && !spaceBefore[2]) {
51 | start = max - spaceBefore[1].length;
52 | end = max;
53 | }
54 | if (spaceAfter && !spaceAfter[2]) {
55 | if (!start)
56 | start = max;
57 | end = max + spaceAfter[1].length;
58 | }
59 | if (start) {
60 | return {
61 | start: start,
62 | end: end
63 | };
64 | }
65 | if (spaceBefore && spaceBefore[2] && spaceBefore.index > min) {
66 | return {
67 | start: spaceBefore.index,
68 | end: spaceBefore.index + spaceBefore[3].length
69 | };
70 | }
71 |
72 | }
73 |
74 | }
75 |
76 | exports.hardWrap = hardWrap;
77 |
78 | }); (function() {
79 | window.require(["ace/ext/hardwrap"], function(m) {
80 | if (typeof module == "object" && typeof exports == "object" && module) {
81 | module.exports = m;
82 | }
83 | });
84 | })();
85 |
--------------------------------------------------------------------------------
/ide/lib/ace/ext-linking.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) {
2 |
3 | var Editor = require("../editor").Editor;
4 |
5 | require("../config").defineOptions(Editor.prototype, "editor", {
6 | enableLinking: {
7 | set: function(val) {
8 | if (val) {
9 | this.on("click", onClick);
10 | this.on("mousemove", onMouseMove);
11 | } else {
12 | this.off("click", onClick);
13 | this.off("mousemove", onMouseMove);
14 | }
15 | },
16 | value: false
17 | }
18 | });
19 |
20 | exports.previousLinkingHover = false;
21 |
22 | function onMouseMove(e) {
23 | var editor = e.editor;
24 | var ctrl = e.getAccelKey();
25 |
26 | if (ctrl) {
27 | var editor = e.editor;
28 | var docPos = e.getDocumentPosition();
29 | var session = editor.session;
30 | var token = session.getTokenAt(docPos.row, docPos.column);
31 |
32 | if (exports.previousLinkingHover && exports.previousLinkingHover != token) {
33 | editor._emit("linkHoverOut");
34 | }
35 | editor._emit("linkHover", {position: docPos, token: token});
36 | exports.previousLinkingHover = token;
37 | } else if (exports.previousLinkingHover) {
38 | editor._emit("linkHoverOut");
39 | exports.previousLinkingHover = false;
40 | }
41 | }
42 |
43 | function onClick(e) {
44 | var ctrl = e.getAccelKey();
45 | var button = e.getButton();
46 |
47 | if (button == 0 && ctrl) {
48 | var editor = e.editor;
49 | var docPos = e.getDocumentPosition();
50 | var session = editor.session;
51 | var token = session.getTokenAt(docPos.row, docPos.column);
52 |
53 | editor._emit("linkClick", {position: docPos, token: token});
54 | }
55 | }
56 |
57 | }); (function() {
58 | window.require(["ace/ext/linking"], function(m) {
59 | if (typeof module == "object" && typeof exports == "object" && module) {
60 | module.exports = m;
61 | }
62 | });
63 | })();
64 |
--------------------------------------------------------------------------------
/ide/lib/ace/ext-rtl.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/rtl",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) {
2 | "use strict";
3 |
4 | var commands = [{
5 | name: "leftToRight",
6 | bindKey: { win: "Ctrl-Alt-Shift-L", mac: "Command-Alt-Shift-L" },
7 | exec: function(editor) {
8 | editor.session.$bidiHandler.setRtlDirection(editor, false);
9 | },
10 | readOnly: true
11 | }, {
12 | name: "rightToLeft",
13 | bindKey: { win: "Ctrl-Alt-Shift-R", mac: "Command-Alt-Shift-R" },
14 | exec: function(editor) {
15 | editor.session.$bidiHandler.setRtlDirection(editor, true);
16 | },
17 | readOnly: true
18 | }];
19 |
20 | var Editor = require("../editor").Editor;
21 | require("../config").defineOptions(Editor.prototype, "editor", {
22 | rtlText: {
23 | set: function(val) {
24 | if (val) {
25 | this.on("change", onChange);
26 | this.on("changeSelection", onChangeSelection);
27 | this.renderer.on("afterRender", updateLineDirection);
28 | this.commands.on("exec", onCommandEmitted);
29 | this.commands.addCommands(commands);
30 | } else {
31 | this.off("change", onChange);
32 | this.off("changeSelection", onChangeSelection);
33 | this.renderer.off("afterRender", updateLineDirection);
34 | this.commands.off("exec", onCommandEmitted);
35 | this.commands.removeCommands(commands);
36 | clearTextLayer(this.renderer);
37 | }
38 | this.renderer.updateFull();
39 | }
40 | },
41 | rtl: {
42 | set: function(val) {
43 | this.session.$bidiHandler.$isRtl = val;
44 | if (val) {
45 | this.setOption("rtlText", false);
46 | this.renderer.on("afterRender", updateLineDirection);
47 | this.session.$bidiHandler.seenBidi = true;
48 | } else {
49 | this.renderer.off("afterRender", updateLineDirection);
50 | clearTextLayer(this.renderer);
51 | }
52 | this.renderer.updateFull();
53 | }
54 | }
55 | });
56 | function onChangeSelection(e, editor) {
57 | var lead = editor.getSelection().lead;
58 | if (editor.session.$bidiHandler.isRtlLine(lead.row)) {
59 | if (lead.column === 0) {
60 | if (editor.session.$bidiHandler.isMoveLeftOperation && lead.row > 0) {
61 | editor.getSelection().moveCursorTo(lead.row - 1, editor.session.getLine(lead.row - 1).length);
62 | } else {
63 | if (editor.getSelection().isEmpty())
64 | lead.column += 1;
65 | else
66 | lead.setPosition(lead.row, lead.column + 1);
67 | }
68 | }
69 | }
70 | }
71 |
72 | function onCommandEmitted(commadEvent) {
73 | commadEvent.editor.session.$bidiHandler.isMoveLeftOperation = /gotoleft|selectleft|backspace|removewordleft/.test(commadEvent.command.name);
74 | }
75 | function onChange(delta, editor) {
76 | var session = editor.session;
77 | session.$bidiHandler.currentRow = null;
78 | if (session.$bidiHandler.isRtlLine(delta.start.row) && delta.action === 'insert' && delta.lines.length > 1) {
79 | for (var row = delta.start.row; row < delta.end.row; row++) {
80 | if (session.getLine(row + 1).charAt(0) !== session.$bidiHandler.RLE)
81 | session.doc.$lines[row + 1] = session.$bidiHandler.RLE + session.getLine(row + 1);
82 | }
83 | }
84 | }
85 |
86 | function updateLineDirection(e, renderer) {
87 | var session = renderer.session;
88 | var $bidiHandler = session.$bidiHandler;
89 | var cells = renderer.$textLayer.$lines.cells;
90 | var width = renderer.layerConfig.width - renderer.layerConfig.padding + "px";
91 | cells.forEach(function(cell) {
92 | var style = cell.element.style;
93 | if ($bidiHandler && $bidiHandler.isRtlLine(cell.row)) {
94 | style.direction = "rtl";
95 | style.textAlign = "right";
96 | style.width = width;
97 | } else {
98 | style.direction = "";
99 | style.textAlign = "";
100 | style.width = "";
101 | }
102 | });
103 | }
104 |
105 | function clearTextLayer(renderer) {
106 | var lines = renderer.$textLayer.$lines;
107 | lines.cells.forEach(clear);
108 | lines.cellCache.forEach(clear);
109 | function clear(cell) {
110 | var style = cell.element.style;
111 | style.direction = style.textAlign = style.width = "";
112 | }
113 | }
114 |
115 | }); (function() {
116 | window.require(["ace/ext/rtl"], function(m) {
117 | if (typeof module == "object" && typeof exports == "object" && module) {
118 | module.exports = m;
119 | }
120 | });
121 | })();
122 |
--------------------------------------------------------------------------------
/ide/lib/ace/ext-spellcheck.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/spellcheck",["require","exports","module","ace/lib/event","ace/editor","ace/config"], function(require, exports, module) {
2 | "use strict";
3 | var event = require("../lib/event");
4 |
5 | exports.contextMenuHandler = function(e){
6 | var host = e.target;
7 | var text = host.textInput.getElement();
8 | if (!host.selection.isEmpty())
9 | return;
10 | var c = host.getCursorPosition();
11 | var r = host.session.getWordRange(c.row, c.column);
12 | var w = host.session.getTextRange(r);
13 |
14 | host.session.tokenRe.lastIndex = 0;
15 | if (!host.session.tokenRe.test(w))
16 | return;
17 | var PLACEHOLDER = "\x01\x01";
18 | var value = w + " " + PLACEHOLDER;
19 | text.value = value;
20 | text.setSelectionRange(w.length, w.length + 1);
21 | text.setSelectionRange(0, 0);
22 | text.setSelectionRange(0, w.length);
23 |
24 | var afterKeydown = false;
25 | event.addListener(text, "keydown", function onKeydown() {
26 | event.removeListener(text, "keydown", onKeydown);
27 | afterKeydown = true;
28 | });
29 |
30 | host.textInput.setInputHandler(function(newVal) {
31 | if (newVal == value)
32 | return '';
33 | if (newVal.lastIndexOf(value, 0) === 0)
34 | return newVal.slice(value.length);
35 | if (newVal.substr(text.selectionEnd) == value)
36 | return newVal.slice(0, -value.length);
37 | if (newVal.slice(-2) == PLACEHOLDER) {
38 | var val = newVal.slice(0, -2);
39 | if (val.slice(-1) == " ") {
40 | if (afterKeydown)
41 | return val.substring(0, text.selectionEnd);
42 | val = val.slice(0, -1);
43 | host.session.replace(r, val);
44 | return "";
45 | }
46 | }
47 |
48 | return newVal;
49 | });
50 | };
51 | var Editor = require("../editor").Editor;
52 | require("../config").defineOptions(Editor.prototype, "editor", {
53 | spellcheck: {
54 | set: function(val) {
55 | var text = this.textInput.getElement();
56 | text.spellcheck = !!val;
57 | if (!val)
58 | this.removeListener("nativecontextmenu", exports.contextMenuHandler);
59 | else
60 | this.on("nativecontextmenu", exports.contextMenuHandler);
61 | },
62 | value: true
63 | }
64 | });
65 |
66 | }); (function() {
67 | window.require(["ace/ext/spellcheck"], function(m) {
68 | if (typeof module == "object" && typeof exports == "object" && module) {
69 | module.exports = m;
70 | }
71 | });
72 | })();
73 |
--------------------------------------------------------------------------------
/ide/lib/ace/ext-statusbar.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"], function(require, exports, module) {
2 | "use strict";
3 | var dom = require("../lib/dom");
4 | var lang = require("../lib/lang");
5 |
6 | var StatusBar = function(editor, parentNode) {
7 | this.element = dom.createElement("div");
8 | this.element.className = "ace_status-indicator";
9 | this.element.style.cssText = "display: inline-block;";
10 | parentNode.appendChild(this.element);
11 |
12 | var statusUpdate = lang.delayedCall(function(){
13 | this.updateStatus(editor);
14 | }.bind(this)).schedule.bind(null, 100);
15 |
16 | editor.on("changeStatus", statusUpdate);
17 | editor.on("changeSelection", statusUpdate);
18 | editor.on("keyboardActivity", statusUpdate);
19 | };
20 |
21 | (function(){
22 | this.updateStatus = function(editor) {
23 | var status = [];
24 | function add(str, separator) {
25 | str && status.push(str, separator || "|");
26 | }
27 |
28 | add(editor.keyBinding.getStatusText(editor));
29 | if (editor.commands.recording)
30 | add("REC");
31 |
32 | var sel = editor.selection;
33 | var c = sel.lead;
34 |
35 | if (!sel.isEmpty()) {
36 | var r = editor.getSelectionRange();
37 | add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")", " ");
38 | }
39 | add(c.row + ":" + c.column, " ");
40 | if (sel.rangeCount)
41 | add("[" + sel.rangeCount + "]", " ");
42 | status.pop();
43 | this.element.textContent = status.join("");
44 | };
45 | }).call(StatusBar.prototype);
46 |
47 | exports.StatusBar = StatusBar;
48 |
49 | }); (function() {
50 | window.require(["ace/ext/statusbar"], function(m) {
51 | if (typeof module == "object" && typeof exports == "object" && module) {
52 | module.exports = m;
53 | }
54 | });
55 | })();
56 |
--------------------------------------------------------------------------------
/ide/lib/ace/ext-themelist.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/themelist",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | var themeData = [
5 | ["Chrome" ],
6 | ["Clouds" ],
7 | ["Crimson Editor" ],
8 | ["Dawn" ],
9 | ["Dreamweaver" ],
10 | ["Eclipse" ],
11 | ["GitHub" ],
12 | ["IPlastic" ],
13 | ["Solarized Light"],
14 | ["TextMate" ],
15 | ["Tomorrow" ],
16 | ["Xcode" ],
17 | ["Kuroir"],
18 | ["KatzenMilch"],
19 | ["SQL Server" ,"sqlserver" , "light"],
20 | ["Ambiance" ,"ambiance" , "dark"],
21 | ["Chaos" ,"chaos" , "dark"],
22 | ["Clouds Midnight" ,"clouds_midnight" , "dark"],
23 | ["Dracula" ,"" , "dark"],
24 | ["Cobalt" ,"cobalt" , "dark"],
25 | ["Gruvbox" ,"gruvbox" , "dark"],
26 | ["Green on Black" ,"gob" , "dark"],
27 | ["idle Fingers" ,"idle_fingers" , "dark"],
28 | ["krTheme" ,"kr_theme" , "dark"],
29 | ["Merbivore" ,"merbivore" , "dark"],
30 | ["Merbivore Soft" ,"merbivore_soft" , "dark"],
31 | ["Mono Industrial" ,"mono_industrial" , "dark"],
32 | ["Monokai" ,"monokai" , "dark"],
33 | ["Nord Dark" ,"nord_dark" , "dark"],
34 | ["One Dark" ,"one_dark" , "dark"],
35 | ["Pastel on dark" ,"pastel_on_dark" , "dark"],
36 | ["Solarized Dark" ,"solarized_dark" , "dark"],
37 | ["Terminal" ,"terminal" , "dark"],
38 | ["Tomorrow Night" ,"tomorrow_night" , "dark"],
39 | ["Tomorrow Night Blue" ,"tomorrow_night_blue" , "dark"],
40 | ["Tomorrow Night Bright","tomorrow_night_bright" , "dark"],
41 | ["Tomorrow Night 80s" ,"tomorrow_night_eighties" , "dark"],
42 | ["Twilight" ,"twilight" , "dark"],
43 | ["Vibrant Ink" ,"vibrant_ink" , "dark"]
44 | ];
45 |
46 |
47 | exports.themesByName = {};
48 | exports.themes = themeData.map(function(data) {
49 | var name = data[1] || data[0].replace(/ /g, "_").toLowerCase();
50 | var theme = {
51 | caption: data[0],
52 | theme: "ace/theme/" + name,
53 | isDark: data[2] == "dark",
54 | name: name
55 | };
56 | exports.themesByName[name] = theme;
57 | return theme;
58 | });
59 |
60 | }); (function() {
61 | window.require(["ace/ext/themelist"], function(m) {
62 | if (typeof module == "object" && typeof exports == "object" && module) {
63 | module.exports = m;
64 | }
65 | });
66 | })();
67 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/abap.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/abap"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/abc.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/abc",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "\n\
5 | snippet zupfnoter.print\n\
6 | %%%%hn.print {\"startpos\": ${1:pos_y}, \"t\":\"${2:title}\", \"v\":[${3:voices}], \"s\":[[${4:syncvoices}1,2]], \"f\":[${5:flowlines}], \"sf\":[${6:subflowlines}], \"j\":[${7:jumplines}]}\n\
7 | \n\
8 | snippet zupfnoter.note\n\
9 | %%%%hn.note {\"pos\": [${1:pos_x},${2:pos_y}], \"text\": \"${3:text}\", \"style\": \"${4:style}\"}\n\
10 | \n\
11 | snippet zupfnoter.annotation\n\
12 | %%%%hn.annotation {\"id\": \"${1:id}\", \"pos\": [${2:pos}], \"text\": \"${3:text}\"}\n\
13 | \n\
14 | snippet zupfnoter.lyrics\n\
15 | %%%%hn.lyrics {\"pos\": [${1:x_pos},${2:y_pos}]}\n\
16 | \n\
17 | snippet zupfnoter.legend\n\
18 | %%%%hn.legend {\"pos\": [${1:x_pos},${2:y_pos}]}\n\
19 | \n\
20 | \n\
21 | \n\
22 | snippet zupfnoter.target\n\
23 | \"^:${1:target}\"\n\
24 | \n\
25 | snippet zupfnoter.goto\n\
26 | \"^@${1:target}@${2:distance}\"\n\
27 | \n\
28 | snippet zupfnoter.annotationref\n\
29 | \"^#${1:target}\"\n\
30 | \n\
31 | snippet zupfnoter.annotation\n\
32 | \"^!${1:text}@${2:x_offset},${3:y_offset}\"\n\
33 | \n\
34 | \n\
35 | ";
36 | exports.scope = "abc";
37 |
38 | }); (function() {
39 | window.require(["ace/snippets/abc"], function(m) {
40 | if (typeof module == "object" && typeof exports == "object" && module) {
41 | module.exports = m;
42 | }
43 | });
44 | })();
45 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/actionscript.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/actionscript",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet main\n\
5 | package {\n\
6 | import flash.display.*;\n\
7 | import flash.Events.*;\n\
8 | \n\
9 | public class Main extends Sprite {\n\
10 | public function Main ( ) {\n\
11 | trace(\"start\");\n\
12 | stage.scaleMode = StageScaleMode.NO_SCALE;\n\
13 | stage.addEventListener(Event.RESIZE, resizeListener);\n\
14 | }\n\
15 | \n\
16 | private function resizeListener (e:Event):void {\n\
17 | trace(\"The application window changed size!\");\n\
18 | trace(\"New width: \" + stage.stageWidth);\n\
19 | trace(\"New height: \" + stage.stageHeight);\n\
20 | }\n\
21 | \n\
22 | }\n\
23 | \n\
24 | }\n\
25 | snippet class\n\
26 | ${1:public|internal} class ${2:name} ${3:extends } {\n\
27 | public function $2 ( ) {\n\
28 | (\"start\");\n\
29 | }\n\
30 | }\n\
31 | snippet all\n\
32 | package name {\n\
33 | \n\
34 | ${1:public|internal|final} class ${2:name} ${3:extends } {\n\
35 | private|public| static const FOO = \"abc\";\n\
36 | private|public| static var BAR = \"abc\";\n\
37 | \n\
38 | // class initializer - no JIT !! one time setup\n\
39 | if Cababilities.os == \"Linux|MacOS\" {\n\
40 | FOO = \"other\";\n\
41 | }\n\
42 | \n\
43 | // constructor:\n\
44 | public function $2 ( ){\n\
45 | super2();\n\
46 | trace(\"start\");\n\
47 | }\n\
48 | public function name (a, b...){\n\
49 | super.name(..);\n\
50 | lable:break\n\
51 | }\n\
52 | }\n\
53 | }\n\
54 | \n\
55 | function A(){\n\
56 | // A can only be accessed within this file\n\
57 | }\n\
58 | snippet switch\n\
59 | switch(${1}){\n\
60 | case ${2}:\n\
61 | ${3}\n\
62 | break;\n\
63 | default:\n\
64 | }\n\
65 | snippet case\n\
66 | case ${1}:\n\
67 | ${2}\n\
68 | break;\n\
69 | snippet package\n\
70 | package ${1:package}{\n\
71 | ${2}\n\
72 | }\n\
73 | snippet wh\n\
74 | while ${1:cond}{\n\
75 | ${2}\n\
76 | }\n\
77 | snippet do\n\
78 | do {\n\
79 | ${2}\n\
80 | } while (${1:cond})\n\
81 | snippet while\n\
82 | while ${1:cond}{\n\
83 | ${2}\n\
84 | }\n\
85 | snippet for enumerate names\n\
86 | for (${1:var} in ${2:object}){\n\
87 | ${3}\n\
88 | }\n\
89 | snippet for enumerate values\n\
90 | for each (${1:var} in ${2:object}){\n\
91 | ${3}\n\
92 | }\n\
93 | snippet get_set\n\
94 | function get ${1:name} {\n\
95 | return ${2}\n\
96 | }\n\
97 | function set $1 (newValue) {\n\
98 | ${3}\n\
99 | }\n\
100 | snippet interface\n\
101 | interface name {\n\
102 | function method(${1}):${2:returntype};\n\
103 | }\n\
104 | snippet try\n\
105 | try {\n\
106 | ${1}\n\
107 | } catch (error:ErrorType) {\n\
108 | ${2}\n\
109 | } finally {\n\
110 | ${3}\n\
111 | }\n\
112 | # For Loop (same as c.snippet)\n\
113 | snippet for for (..) {..}\n\
114 | for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\
115 | ${4:/* code */}\n\
116 | }\n\
117 | # Custom For Loop\n\
118 | snippet forr\n\
119 | for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {\n\
120 | ${5:/* code */}\n\
121 | }\n\
122 | # If Condition\n\
123 | snippet if\n\
124 | if (${1:/* condition */}) {\n\
125 | ${2:/* code */}\n\
126 | }\n\
127 | snippet el\n\
128 | else {\n\
129 | ${1}\n\
130 | }\n\
131 | # Ternary conditional\n\
132 | snippet t\n\
133 | ${1:/* condition */} ? ${2:a} : ${3:b}\n\
134 | snippet fun\n\
135 | function ${1:function_name}(${2})${3}\n\
136 | {\n\
137 | ${4:/* code */}\n\
138 | }\n\
139 | # FlxSprite (usefull when using the flixel library)\n\
140 | snippet FlxSprite\n\
141 | package\n\
142 | {\n\
143 | import org.flixel.*\n\
144 | \n\
145 | public class ${1:ClassName} extends ${2:FlxSprite}\n\
146 | {\n\
147 | public function $1(${3: X:Number, Y:Number}):void\n\
148 | {\n\
149 | super(X,Y);\n\
150 | ${4: //code...}\n\
151 | }\n\
152 | \n\
153 | override public function update():void\n\
154 | {\n\
155 | super.update();\n\
156 | ${5: //code...}\n\
157 | }\n\
158 | }\n\
159 | }\n\
160 | \n\
161 | ";
162 | exports.scope = "actionscript";
163 |
164 | }); (function() {
165 | window.require(["ace/snippets/actionscript"], function(m) {
166 | if (typeof module == "object" && typeof exports == "object" && module) {
167 | module.exports = m;
168 | }
169 | });
170 | })();
171 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/ada.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/ada"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/alda.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/alda"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/apache_conf.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/apache_conf"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/apex.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/apex"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/applescript.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/applescript"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/aql.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/aql"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/asciidoc.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/asciidoc"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/asl.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/asl"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/assembly_x86.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/assembly_x86"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/autohotkey.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/autohotkey"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/batchfile.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/batchfile"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/c9search.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/c9search"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/c_cpp.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/c_cpp",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "## STL Collections\n\
5 | # std::array\n\
6 | snippet array\n\
7 | std::array<${1:T}, ${2:N}> ${3};${4}\n\
8 | # std::vector\n\
9 | snippet vector\n\
10 | std::vector<${1:T}> ${2};${3}\n\
11 | # std::deque\n\
12 | snippet deque\n\
13 | std::deque<${1:T}> ${2};${3}\n\
14 | # std::forward_list\n\
15 | snippet flist\n\
16 | std::forward_list<${1:T}> ${2};${3}\n\
17 | # std::list\n\
18 | snippet list\n\
19 | std::list<${1:T}> ${2};${3}\n\
20 | # std::set\n\
21 | snippet set\n\
22 | std::set<${1:T}> ${2};${3}\n\
23 | # std::map\n\
24 | snippet map\n\
25 | std::map<${1:Key}, ${2:T}> ${3};${4}\n\
26 | # std::multiset\n\
27 | snippet mset\n\
28 | std::multiset<${1:T}> ${2};${3}\n\
29 | # std::multimap\n\
30 | snippet mmap\n\
31 | std::multimap<${1:Key}, ${2:T}> ${3};${4}\n\
32 | # std::unordered_set\n\
33 | snippet uset\n\
34 | std::unordered_set<${1:T}> ${2};${3}\n\
35 | # std::unordered_map\n\
36 | snippet umap\n\
37 | std::unordered_map<${1:Key}, ${2:T}> ${3};${4}\n\
38 | # std::unordered_multiset\n\
39 | snippet umset\n\
40 | std::unordered_multiset<${1:T}> ${2};${3}\n\
41 | # std::unordered_multimap\n\
42 | snippet ummap\n\
43 | std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}\n\
44 | # std::stack\n\
45 | snippet stack\n\
46 | std::stack<${1:T}> ${2};${3}\n\
47 | # std::queue\n\
48 | snippet queue\n\
49 | std::queue<${1:T}> ${2};${3}\n\
50 | # std::priority_queue\n\
51 | snippet pqueue\n\
52 | std::priority_queue<${1:T}> ${2};${3}\n\
53 | ##\n\
54 | ## Access Modifiers\n\
55 | # private\n\
56 | snippet pri\n\
57 | private\n\
58 | # protected\n\
59 | snippet pro\n\
60 | protected\n\
61 | # public\n\
62 | snippet pub\n\
63 | public\n\
64 | # friend\n\
65 | snippet fr\n\
66 | friend\n\
67 | # mutable\n\
68 | snippet mu\n\
69 | mutable\n\
70 | ## \n\
71 | ## Class\n\
72 | # class\n\
73 | snippet cl\n\
74 | class ${1:`Filename('$1', 'name')`} \n\
75 | {\n\
76 | public:\n\
77 | $1(${2});\n\
78 | ~$1();\n\
79 | \n\
80 | private:\n\
81 | ${3:/* data */}\n\
82 | };\n\
83 | # member function implementation\n\
84 | snippet mfun\n\
85 | ${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {\n\
86 | ${5:/* code */}\n\
87 | }\n\
88 | # namespace\n\
89 | snippet ns\n\
90 | namespace ${1:`Filename('', 'my')`} {\n\
91 | ${2}\n\
92 | } /* namespace $1 */\n\
93 | ##\n\
94 | ## Input/Output\n\
95 | # std::cout\n\
96 | snippet cout\n\
97 | std::cout << ${1} << std::endl;${2}\n\
98 | # std::cin\n\
99 | snippet cin\n\
100 | std::cin >> ${1};${2}\n\
101 | ##\n\
102 | ## Iteration\n\
103 | # for i \n\
104 | snippet fori\n\
105 | for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\
106 | ${4:/* code */}\n\
107 | }${5}\n\
108 | \n\
109 | # foreach\n\
110 | snippet fore\n\
111 | for (${1:auto} ${2:i} : ${3:container}) {\n\
112 | ${4:/* code */}\n\
113 | }${5}\n\
114 | # iterator\n\
115 | snippet iter\n\
116 | for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {\n\
117 | ${6}\n\
118 | }${7}\n\
119 | \n\
120 | # auto iterator\n\
121 | snippet itera\n\
122 | for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {\n\
123 | ${2:std::cout << *$1 << std::endl;}\n\
124 | }${3}\n\
125 | ##\n\
126 | ## Lambdas\n\
127 | # lamda (one line)\n\
128 | snippet ld\n\
129 | [${1}](${2}){${3:/* code */}}${4}\n\
130 | # lambda (multi-line)\n\
131 | snippet lld\n\
132 | [${1}](${2}){\n\
133 | ${3:/* code */}\n\
134 | }${4}\n\
135 | ";
136 | exports.scope = "c_cpp";
137 |
138 | }); (function() {
139 | window.require(["ace/snippets/c_cpp"], function(m) {
140 | if (typeof module == "object" && typeof exports == "object" && module) {
141 | module.exports = m;
142 | }
143 | });
144 | })();
145 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/cirru.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/cirru"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/clojure.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/clojure",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet comm\n\
5 | (comment\n\
6 | ${1}\n\
7 | )\n\
8 | snippet condp\n\
9 | (condp ${1:pred} ${2:expr}\n\
10 | ${3})\n\
11 | snippet def\n\
12 | (def ${1})\n\
13 | snippet defm\n\
14 | (defmethod ${1:multifn} \"${2:doc-string}\" ${3:dispatch-val} [${4:args}]\n\
15 | ${5})\n\
16 | snippet defmm\n\
17 | (defmulti ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\
18 | snippet defma\n\
19 | (defmacro ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\
20 | snippet defn\n\
21 | (defn ${1:name} \"${2:doc-string}\" [${3:arg-list}]\n\
22 | ${4})\n\
23 | snippet defp\n\
24 | (defprotocol ${1:name}\n\
25 | ${2})\n\
26 | snippet defr\n\
27 | (defrecord ${1:name} [${2:fields}]\n\
28 | ${3:protocol}\n\
29 | ${4})\n\
30 | snippet deft\n\
31 | (deftest ${1:name}\n\
32 | (is (= ${2:assertion})))\n\
33 | ${3})\n\
34 | snippet is\n\
35 | (is (= ${1} ${2}))\n\
36 | snippet defty\n\
37 | (deftype ${1:Name} [${2:fields}]\n\
38 | ${3:Protocol}\n\
39 | ${4})\n\
40 | snippet doseq\n\
41 | (doseq [${1:elem} ${2:coll}]\n\
42 | ${3})\n\
43 | snippet fn\n\
44 | (fn [${1:arg-list}] ${2})\n\
45 | snippet if\n\
46 | (if ${1:test-expr}\n\
47 | ${2:then-expr}\n\
48 | ${3:else-expr})\n\
49 | snippet if-let \n\
50 | (if-let [${1:result} ${2:test-expr}]\n\
51 | (${3:then-expr} $1)\n\
52 | (${4:else-expr}))\n\
53 | snippet imp\n\
54 | (:import [${1:package}])\n\
55 | & {:keys [${1:keys}] :or {${2:defaults}}}\n\
56 | snippet let\n\
57 | (let [${1:name} ${2:expr}]\n\
58 | ${3})\n\
59 | snippet letfn\n\
60 | (letfn [(${1:name) [${2:args}]\n\
61 | ${3})])\n\
62 | snippet map\n\
63 | (map ${1:func} ${2:coll})\n\
64 | snippet mapl\n\
65 | (map #(${1:lambda}) ${2:coll})\n\
66 | snippet met\n\
67 | (${1:name} [${2:this} ${3:args}]\n\
68 | ${4})\n\
69 | snippet ns\n\
70 | (ns ${1:name}\n\
71 | ${2})\n\
72 | snippet dotimes\n\
73 | (dotimes [_ 10]\n\
74 | (time\n\
75 | (dotimes [_ ${1:times}]\n\
76 | ${2})))\n\
77 | snippet pmethod\n\
78 | (${1:name} [${2:this} ${3:args}])\n\
79 | snippet refer\n\
80 | (:refer-clojure :exclude [${1}])\n\
81 | snippet require\n\
82 | (:require [${1:namespace} :as [${2}]])\n\
83 | snippet use\n\
84 | (:use [${1:namespace} :only [${2}]])\n\
85 | snippet print\n\
86 | (println ${1})\n\
87 | snippet reduce\n\
88 | (reduce ${1:(fn [p n] ${3})} ${2})\n\
89 | snippet when\n\
90 | (when ${1:test} ${2:body})\n\
91 | snippet when-let\n\
92 | (when-let [${1:result} ${2:test}]\n\
93 | ${3:body})\n\
94 | ";
95 | exports.scope = "clojure";
96 |
97 | }); (function() {
98 | window.require(["ace/snippets/clojure"], function(m) {
99 | if (typeof module == "object" && typeof exports == "object" && module) {
100 | module.exports = m;
101 | }
102 | });
103 | })();
104 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/cobol.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/cobol"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/coffee.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/coffee",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Closure loop\n\
5 | snippet forindo\n\
6 | for ${1:name} in ${2:array}\n\
7 | do ($1) ->\n\
8 | ${3:// body}\n\
9 | # Array comprehension\n\
10 | snippet fora\n\
11 | for ${1:name} in ${2:array}\n\
12 | ${3:// body...}\n\
13 | # Object comprehension\n\
14 | snippet foro\n\
15 | for ${1:key}, ${2:value} of ${3:object}\n\
16 | ${4:// body...}\n\
17 | # Range comprehension (inclusive)\n\
18 | snippet forr\n\
19 | for ${1:name} in [${2:start}..${3:finish}]\n\
20 | ${4:// body...}\n\
21 | snippet forrb\n\
22 | for ${1:name} in [${2:start}..${3:finish}] by ${4:step}\n\
23 | ${5:// body...}\n\
24 | # Range comprehension (exclusive)\n\
25 | snippet forrex\n\
26 | for ${1:name} in [${2:start}...${3:finish}]\n\
27 | ${4:// body...}\n\
28 | snippet forrexb\n\
29 | for ${1:name} in [${2:start}...${3:finish}] by ${4:step}\n\
30 | ${5:// body...}\n\
31 | # Function\n\
32 | snippet fun\n\
33 | (${1:args}) ->\n\
34 | ${2:// body...}\n\
35 | # Function (bound)\n\
36 | snippet bfun\n\
37 | (${1:args}) =>\n\
38 | ${2:// body...}\n\
39 | # Class\n\
40 | snippet cla class ..\n\
41 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\
42 | ${2}\n\
43 | snippet cla class .. constructor: ..\n\
44 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\
45 | constructor: (${2:args}) ->\n\
46 | ${3}\n\
47 | \n\
48 | ${4}\n\
49 | snippet cla class .. extends ..\n\
50 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\
51 | ${3}\n\
52 | snippet cla class .. extends .. constructor: ..\n\
53 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\
54 | constructor: (${3:args}) ->\n\
55 | ${4}\n\
56 | \n\
57 | ${5}\n\
58 | # If\n\
59 | snippet if\n\
60 | if ${1:condition}\n\
61 | ${2:// body...}\n\
62 | # If __ Else\n\
63 | snippet ife\n\
64 | if ${1:condition}\n\
65 | ${2:// body...}\n\
66 | else\n\
67 | ${3:// body...}\n\
68 | # Else if\n\
69 | snippet elif\n\
70 | else if ${1:condition}\n\
71 | ${2:// body...}\n\
72 | # Ternary If\n\
73 | snippet ifte\n\
74 | if ${1:condition} then ${2:value} else ${3:other}\n\
75 | # Unless\n\
76 | snippet unl\n\
77 | ${1:action} unless ${2:condition}\n\
78 | # Switch\n\
79 | snippet swi\n\
80 | switch ${1:object}\n\
81 | when ${2:value}\n\
82 | ${3:// body...}\n\
83 | \n\
84 | # Log\n\
85 | snippet log\n\
86 | console.log ${1}\n\
87 | # Try __ Catch\n\
88 | snippet try\n\
89 | try\n\
90 | ${1}\n\
91 | catch ${2:error}\n\
92 | ${3}\n\
93 | # Require\n\
94 | snippet req\n\
95 | ${2:$1} = require '${1:sys}'${3}\n\
96 | # Export\n\
97 | snippet exp\n\
98 | ${1:root} = exports ? this\n\
99 | ";
100 | exports.scope = "coffee";
101 |
102 | }); (function() {
103 | window.require(["ace/snippets/coffee"], function(m) {
104 | if (typeof module == "object" && typeof exports == "object" && module) {
105 | module.exports = m;
106 | }
107 | });
108 | })();
109 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/coldfusion.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/coldfusion"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/crystal.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/crystal"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/csharp.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/csharp"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/csound_document.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/csound_document",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# \n\
5 | snippet synth\n\
6 | \n\
7 | \n\
8 | ${1}\n\
9 | \n\
10 | \n\
11 | e\n\
12 | \n\
13 | \n\
14 | ";
15 | exports.scope = "csound_document";
16 |
17 | }); (function() {
18 | window.require(["ace/snippets/csound_document"], function(m) {
19 | if (typeof module == "object" && typeof exports == "object" && module) {
20 | module.exports = m;
21 | }
22 | });
23 | })();
24 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/csound_orchestra.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/csound_orchestra",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# else\n\
5 | snippet else\n\
6 | else\n\
7 | ${1:/* statements */}\n\
8 | # elseif\n\
9 | snippet elseif\n\
10 | elseif ${1:/* condition */} then\n\
11 | ${2:/* statements */}\n\
12 | # if\n\
13 | snippet if\n\
14 | if ${1:/* condition */} then\n\
15 | ${2:/* statements */}\n\
16 | endif\n\
17 | # instrument block\n\
18 | snippet instr\n\
19 | instr ${1:name}\n\
20 | ${2:/* statements */}\n\
21 | endin\n\
22 | # i-time while loop\n\
23 | snippet iwhile\n\
24 | i${1:Index} = ${2:0}\n\
25 | while i${1:Index} < ${3:/* count */} do\n\
26 | ${4:/* statements */}\n\
27 | i${1:Index} += 1\n\
28 | od\n\
29 | # k-rate while loop\n\
30 | snippet kwhile\n\
31 | k${1:Index} = ${2:0}\n\
32 | while k${1:Index} < ${3:/* count */} do\n\
33 | ${4:/* statements */}\n\
34 | k${1:Index} += 1\n\
35 | od\n\
36 | # opcode\n\
37 | snippet opcode\n\
38 | opcode ${1:name}, ${2:/* output types */ 0}, ${3:/* input types */ 0}\n\
39 | ${4:/* statements */}\n\
40 | endop\n\
41 | # until loop\n\
42 | snippet until\n\
43 | until ${1:/* condition */} do\n\
44 | ${2:/* statements */}\n\
45 | od\n\
46 | # while loop\n\
47 | snippet while\n\
48 | while ${1:/* condition */} do\n\
49 | ${2:/* statements */}\n\
50 | od\n\
51 | ";
52 | exports.scope = "csound_orchestra";
53 |
54 | }); (function() {
55 | window.require(["ace/snippets/csound_orchestra"], function(m) {
56 | if (typeof module == "object" && typeof exports == "object" && module) {
57 | module.exports = m;
58 | }
59 | });
60 | })();
61 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/csound_score.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/csound_score"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/csp.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/csp"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/curly.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/curly"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/d.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/d"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/dart.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/dart",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet lib\n\
5 | library ${1};\n\
6 | ${2}\n\
7 | snippet im\n\
8 | import '${1}';\n\
9 | ${2}\n\
10 | snippet pa\n\
11 | part '${1}';\n\
12 | ${2}\n\
13 | snippet pao\n\
14 | part of ${1};\n\
15 | ${2}\n\
16 | snippet main\n\
17 | void main() {\n\
18 | ${1:/* code */}\n\
19 | }\n\
20 | snippet st\n\
21 | static ${1}\n\
22 | snippet fi\n\
23 | final ${1}\n\
24 | snippet re\n\
25 | return ${1}\n\
26 | snippet br\n\
27 | break;\n\
28 | snippet th\n\
29 | throw ${1}\n\
30 | snippet cl\n\
31 | class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
32 | snippet imp\n\
33 | implements ${1}\n\
34 | snippet ext\n\
35 | extends ${1}\n\
36 | snippet if\n\
37 | if (${1:true}) {\n\
38 | ${2}\n\
39 | }\n\
40 | snippet ife\n\
41 | if (${1:true}) {\n\
42 | ${2}\n\
43 | } else {\n\
44 | ${3}\n\
45 | }\n\
46 | snippet el\n\
47 | else\n\
48 | snippet sw\n\
49 | switch (${1}) {\n\
50 | ${2}\n\
51 | }\n\
52 | snippet cs\n\
53 | case ${1}:\n\
54 | ${2}\n\
55 | snippet de\n\
56 | default:\n\
57 | ${1}\n\
58 | snippet for\n\
59 | for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\
60 | ${4:$1[$2]}\n\
61 | }\n\
62 | snippet fore\n\
63 | for (final ${2:item} in ${1:itemList}) {\n\
64 | ${3:/* code */}\n\
65 | }\n\
66 | snippet wh\n\
67 | while (${1:/* condition */}) {\n\
68 | ${2:/* code */}\n\
69 | }\n\
70 | snippet dowh\n\
71 | do {\n\
72 | ${2:/* code */}\n\
73 | } while (${1:/* condition */});\n\
74 | snippet as\n\
75 | assert(${1:/* condition */});\n\
76 | snippet try\n\
77 | try {\n\
78 | ${2}\n\
79 | } catch (${1:Exception e}) {\n\
80 | }\n\
81 | snippet tryf\n\
82 | try {\n\
83 | ${2}\n\
84 | } catch (${1:Exception e}) {\n\
85 | } finally {\n\
86 | }\n\
87 | ";
88 | exports.scope = "dart";
89 |
90 | }); (function() {
91 | window.require(["ace/snippets/dart"], function(m) {
92 | if (typeof module == "object" && typeof exports == "object" && module) {
93 | module.exports = m;
94 | }
95 | });
96 | })();
97 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/diff.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/diff",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header\n\
5 | snippet header DEP-3 style header\n\
6 | Description: ${1}\n\
7 | Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n\
8 | Bug: ${4:url in upstream bugtracker}\n\
9 | Forwarded: ${5:no|not-needed|url}\n\
10 | Author: ${6:`g:snips_author`}\n\
11 | Reviewed-by: ${7:name and email}\n\
12 | Last-Update: ${8:`strftime(\"%Y-%m-%d\")`}\n\
13 | Applied-Upstream: ${9:upstream version|url|commit}\n\
14 | \n\
15 | ";
16 | exports.scope = "diff";
17 |
18 | }); (function() {
19 | window.require(["ace/snippets/diff"], function(m) {
20 | if (typeof module == "object" && typeof exports == "object" && module) {
21 | module.exports = m;
22 | }
23 | });
24 | })();
25 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/dockerfile.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/dockerfile"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/dot.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/dot"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/drools.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/drools",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "\n\
5 | snippet rule\n\
6 | rule \"${1?:rule_name}\"\n\
7 | when\n\
8 | ${2:// when...} \n\
9 | then\n\
10 | ${3:// then...}\n\
11 | end\n\
12 | \n\
13 | snippet query\n\
14 | query ${1?:query_name}\n\
15 | ${2:// find} \n\
16 | end\n\
17 | \n\
18 | snippet declare\n\
19 | declare ${1?:type_name}\n\
20 | ${2:// attributes} \n\
21 | end\n\
22 | \n\
23 | ";
24 | exports.scope = "drools";
25 |
26 | }); (function() {
27 | window.require(["ace/snippets/drools"], function(m) {
28 | if (typeof module == "object" && typeof exports == "object" && module) {
29 | module.exports = m;
30 | }
31 | });
32 | })();
33 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/eiffel.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/eiffel"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/ejs.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/ejs"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/elixir.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/elixir"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/elm.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/elm"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/erlang.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/erlang",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# module and export all\n\
5 | snippet mod\n\
6 | -module(${1:`Filename('', 'my')`}).\n\
7 | \n\
8 | -compile([export_all]).\n\
9 | \n\
10 | start() ->\n\
11 | ${2}\n\
12 | \n\
13 | stop() ->\n\
14 | ok.\n\
15 | # define directive\n\
16 | snippet def\n\
17 | -define(${1:macro}, ${2:body}).${3}\n\
18 | # export directive\n\
19 | snippet exp\n\
20 | -export([${1:function}/${2:arity}]).\n\
21 | # include directive\n\
22 | snippet inc\n\
23 | -include(\"${1:file}\").${2}\n\
24 | # behavior directive\n\
25 | snippet beh\n\
26 | -behaviour(${1:behaviour}).${2}\n\
27 | # if expression\n\
28 | snippet if\n\
29 | if\n\
30 | ${1:guard} ->\n\
31 | ${2:body}\n\
32 | end\n\
33 | # case expression\n\
34 | snippet case\n\
35 | case ${1:expression} of\n\
36 | ${2:pattern} ->\n\
37 | ${3:body};\n\
38 | end\n\
39 | # anonymous function\n\
40 | snippet fun\n\
41 | fun (${1:Parameters}) -> ${2:body} end${3}\n\
42 | # try...catch\n\
43 | snippet try\n\
44 | try\n\
45 | ${1}\n\
46 | catch\n\
47 | ${2:_:_} -> ${3:got_some_exception}\n\
48 | end\n\
49 | # record directive\n\
50 | snippet rec\n\
51 | -record(${1:record}, {\n\
52 | ${2:field}=${3:value}}).${4}\n\
53 | # todo comment\n\
54 | snippet todo\n\
55 | %% TODO: ${1}\n\
56 | ## Snippets below (starting with '%') are in EDoc format.\n\
57 | ## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details\n\
58 | # doc comment\n\
59 | snippet %d\n\
60 | %% @doc ${1}\n\
61 | # end of doc comment\n\
62 | snippet %e\n\
63 | %% @end\n\
64 | # specification comment\n\
65 | snippet %s\n\
66 | %% @spec ${1}\n\
67 | # private function marker\n\
68 | snippet %p\n\
69 | %% @private\n\
70 | # OTP application\n\
71 | snippet application\n\
72 | -module(${1:`Filename('', 'my')`}).\n\
73 | \n\
74 | -behaviour(application).\n\
75 | \n\
76 | -export([start/2, stop/1]).\n\
77 | \n\
78 | start(_Type, _StartArgs) ->\n\
79 | case ${2:root_supervisor}:start_link() of\n\
80 | {ok, Pid} ->\n\
81 | {ok, Pid};\n\
82 | Other ->\n\
83 | {error, Other}\n\
84 | end.\n\
85 | \n\
86 | stop(_State) ->\n\
87 | ok. \n\
88 | # OTP supervisor\n\
89 | snippet supervisor\n\
90 | -module(${1:`Filename('', 'my')`}).\n\
91 | \n\
92 | -behaviour(supervisor).\n\
93 | \n\
94 | %% API\n\
95 | -export([start_link/0]).\n\
96 | \n\
97 | %% Supervisor callbacks\n\
98 | -export([init/1]).\n\
99 | \n\
100 | -define(SERVER, ?MODULE).\n\
101 | \n\
102 | start_link() ->\n\
103 | supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\
104 | \n\
105 | init([]) ->\n\
106 | Server = {${2:my_server}, {$2, start_link, []},\n\
107 | permanent, 2000, worker, [$2]},\n\
108 | Children = [Server],\n\
109 | RestartStrategy = {one_for_one, 0, 1},\n\
110 | {ok, {RestartStrategy, Children}}.\n\
111 | # OTP gen_server\n\
112 | snippet gen_server\n\
113 | -module(${1:`Filename('', 'my')`}).\n\
114 | \n\
115 | -behaviour(gen_server).\n\
116 | \n\
117 | %% API\n\
118 | -export([\n\
119 | start_link/0\n\
120 | ]).\n\
121 | \n\
122 | %% gen_server callbacks\n\
123 | -export([init/1, handle_call/3, handle_cast/2, handle_info/2,\n\
124 | terminate/2, code_change/3]).\n\
125 | \n\
126 | -define(SERVER, ?MODULE).\n\
127 | \n\
128 | -record(state, {}).\n\
129 | \n\
130 | %%%===================================================================\n\
131 | %%% API\n\
132 | %%%===================================================================\n\
133 | \n\
134 | start_link() ->\n\
135 | gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).\n\
136 | \n\
137 | %%%===================================================================\n\
138 | %%% gen_server callbacks\n\
139 | %%%===================================================================\n\
140 | \n\
141 | init([]) ->\n\
142 | {ok, #state{}}.\n\
143 | \n\
144 | handle_call(_Request, _From, State) ->\n\
145 | Reply = ok,\n\
146 | {reply, Reply, State}.\n\
147 | \n\
148 | handle_cast(_Msg, State) ->\n\
149 | {noreply, State}.\n\
150 | \n\
151 | handle_info(_Info, State) ->\n\
152 | {noreply, State}.\n\
153 | \n\
154 | terminate(_Reason, _State) ->\n\
155 | ok.\n\
156 | \n\
157 | code_change(_OldVsn, State, _Extra) ->\n\
158 | {ok, State}.\n\
159 | \n\
160 | %%%===================================================================\n\
161 | %%% Internal functions\n\
162 | %%%===================================================================\n\
163 | \n\
164 | ";
165 | exports.scope = "erlang";
166 |
167 | }); (function() {
168 | window.require(["ace/snippets/erlang"], function(m) {
169 | if (typeof module == "object" && typeof exports == "object" && module) {
170 | module.exports = m;
171 | }
172 | });
173 | })();
174 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/forth.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/forth"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/fortran.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/fortran"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/fsharp.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/fsharp"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/fsl.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/fsl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | window.require(["ace/snippets/fsl"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/ftl.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/ftl"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/gcode.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/gcode"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/gherkin.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/gherkin"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/gitignore.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/gitignore"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/glsl.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/glsl"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/golang.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/golang"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/graphqlschema.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/graphqlschema",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Type Snippet\n\
5 | trigger type\n\
6 | snippet type\n\
7 | type ${1:type_name} {\n\
8 | ${2:type_siblings}\n\
9 | }\n\
10 | \n\
11 | # Input Snippet\n\
12 | trigger input\n\
13 | snippet input\n\
14 | input ${1:input_name} {\n\
15 | ${2:input_siblings}\n\
16 | }\n\
17 | \n\
18 | # Interface Snippet\n\
19 | trigger interface\n\
20 | snippet interface\n\
21 | interface ${1:interface_name} {\n\
22 | ${2:interface_siblings}\n\
23 | }\n\
24 | \n\
25 | # Interface Snippet\n\
26 | trigger union\n\
27 | snippet union\n\
28 | union ${1:union_name} = ${2:type} | ${3: type}\n\
29 | \n\
30 | # Enum Snippet\n\
31 | trigger enum\n\
32 | snippet enum\n\
33 | enum ${1:enum_name} {\n\
34 | ${2:enum_siblings}\n\
35 | }\n\
36 | ";
37 | exports.scope = "graphqlschema";
38 |
39 | }); (function() {
40 | window.require(["ace/snippets/graphqlschema"], function(m) {
41 | if (typeof module == "object" && typeof exports == "object" && module) {
42 | module.exports = m;
43 | }
44 | });
45 | })();
46 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/groovy.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/groovy"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/haml.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/haml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet t\n\
5 | %table\n\
6 | %tr\n\
7 | %th\n\
8 | ${1:headers}\n\
9 | %tr\n\
10 | %td\n\
11 | ${2:headers}\n\
12 | snippet ul\n\
13 | %ul\n\
14 | %li\n\
15 | ${1:item}\n\
16 | %li\n\
17 | snippet =rp\n\
18 | = render :partial => '${1:partial}'\n\
19 | snippet =rpl\n\
20 | = render :partial => '${1:partial}', :locals => {}\n\
21 | snippet =rpc\n\
22 | = render :partial => '${1:partial}', :collection => @$1\n\
23 | \n\
24 | ";
25 | exports.scope = "haml";
26 |
27 | }); (function() {
28 | window.require(["ace/snippets/haml"], function(m) {
29 | if (typeof module == "object" && typeof exports == "object" && module) {
30 | module.exports = m;
31 | }
32 | });
33 | })();
34 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/handlebars.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/handlebars"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/haskell.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet lang\n\
5 | {-# LANGUAGE ${1:OverloadedStrings} #-}\n\
6 | snippet info\n\
7 | -- |\n\
8 | -- Module : ${1:Module.Namespace}\n\
9 | -- Copyright : ${2:Author} ${3:2011-2012}\n\
10 | -- License : ${4:BSD3}\n\
11 | --\n\
12 | -- Maintainer : ${5:email@something.com}\n\
13 | -- Stability : ${6:experimental}\n\
14 | -- Portability : ${7:unknown}\n\
15 | --\n\
16 | -- ${8:Description}\n\
17 | --\n\
18 | snippet import\n\
19 | import ${1:Data.Text}\n\
20 | snippet import2\n\
21 | import ${1:Data.Text} (${2:head})\n\
22 | snippet importq\n\
23 | import qualified ${1:Data.Text} as ${2:T}\n\
24 | snippet inst\n\
25 | instance ${1:Monoid} ${2:Type} where\n\
26 | ${3}\n\
27 | snippet type\n\
28 | type ${1:Type} = ${2:Type}\n\
29 | snippet data\n\
30 | data ${1:Type} = ${2:$1} ${3:Int}\n\
31 | snippet newtype\n\
32 | newtype ${1:Type} = ${2:$1} ${3:Int}\n\
33 | snippet class\n\
34 | class ${1:Class} a where\n\
35 | ${2}\n\
36 | snippet module\n\
37 | module `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\
38 | ) where\n\
39 | `expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\
40 | \n\
41 | snippet const\n\
42 | ${1:name} :: ${2:a}\n\
43 | $1 = ${3:undefined}\n\
44 | snippet fn\n\
45 | ${1:fn} :: ${2:a} -> ${3:a}\n\
46 | $1 ${4} = ${5:undefined}\n\
47 | snippet fn2\n\
48 | ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\
49 | $1 ${5} = ${6:undefined}\n\
50 | snippet ap\n\
51 | ${1:map} ${2:fn} ${3:list}\n\
52 | snippet do\n\
53 | do\n\
54 | \n\
55 | snippet λ\n\
56 | \\${1:x} -> ${2}\n\
57 | snippet \\\n\
58 | \\${1:x} -> ${2}\n\
59 | snippet <-\n\
60 | ${1:a} <- ${2:m a}\n\
61 | snippet ←\n\
62 | ${1:a} <- ${2:m a}\n\
63 | snippet ->\n\
64 | ${1:m a} -> ${2:a}\n\
65 | snippet →\n\
66 | ${1:m a} -> ${2:a}\n\
67 | snippet tup\n\
68 | (${1:a}, ${2:b})\n\
69 | snippet tup2\n\
70 | (${1:a}, ${2:b}, ${3:c})\n\
71 | snippet tup3\n\
72 | (${1:a}, ${2:b}, ${3:c}, ${4:d})\n\
73 | snippet rec\n\
74 | ${1:Record} { ${2:recFieldA} = ${3:undefined}\n\
75 | , ${4:recFieldB} = ${5:undefined}\n\
76 | }\n\
77 | snippet case\n\
78 | case ${1:something} of\n\
79 | ${2} -> ${3}\n\
80 | snippet let\n\
81 | let ${1} = ${2}\n\
82 | in ${3}\n\
83 | snippet where\n\
84 | where\n\
85 | ${1:fn} = ${2:undefined}\n\
86 | ";
87 | exports.scope = "haskell";
88 |
89 | }); (function() {
90 | window.require(["ace/snippets/haskell"], function(m) {
91 | if (typeof module == "object" && typeof exports == "object" && module) {
92 | module.exports = m;
93 | }
94 | });
95 | })();
96 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/haskell_cabal.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/haskell_cabal"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/haxe.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/haxe"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/hjson.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/hjson"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/html_elixir.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/html_elixir"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/html_ruby.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/html_ruby"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/ini.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/ini"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/io.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/io",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippets = [
5 | {
6 | "content": "assertEquals(${1:expected}, ${2:expr})",
7 | "name": "assertEquals",
8 | "scope": "io",
9 | "tabTrigger": "ae"
10 | },
11 | {
12 | "content": "${1:${2:newValue} := ${3:Object} }clone do(\n\t$0\n)",
13 | "name": "clone do",
14 | "scope": "io",
15 | "tabTrigger": "cdo"
16 | },
17 | {
18 | "content": "docSlot(\"${1:slotName}\", \"${2:documentation}\")",
19 | "name": "docSlot",
20 | "scope": "io",
21 | "tabTrigger": "ds"
22 | },
23 | {
24 | "content": "(${1:header,}\n\t${2:body}\n)$0",
25 | "keyEquivalent": "@(",
26 | "name": "Indented Bracketed Line",
27 | "scope": "io",
28 | "tabTrigger": "("
29 | },
30 | {
31 | "content": "\n\t$0\n",
32 | "keyEquivalent": "\r",
33 | "name": "Special: Return Inside Empty Parenthesis",
34 | "scope": "io meta.empty-parenthesis.io, io meta.comma-parenthesis.io"
35 | },
36 | {
37 | "content": "${1:methodName} := method(${2:args,}\n\t$0\n)",
38 | "name": "method",
39 | "scope": "io",
40 | "tabTrigger": "m"
41 | },
42 | {
43 | "content": "newSlot(\"${1:slotName}\", ${2:defaultValue}, \"${3:docString}\")$0",
44 | "name": "newSlot",
45 | "scope": "io",
46 | "tabTrigger": "ns"
47 | },
48 | {
49 | "content": "${1:name} := Object clone do(\n\t$0\n)",
50 | "name": "Object clone do",
51 | "scope": "io",
52 | "tabTrigger": "ocdo"
53 | },
54 | {
55 | "content": "test${1:SomeFeature} := method(\n\t$0\n)",
56 | "name": "testMethod",
57 | "scope": "io",
58 | "tabTrigger": "ts"
59 | },
60 | {
61 | "content": "${1:Something}Test := ${2:UnitTest} clone do(\n\t$0\n)",
62 | "name": "UnitTest",
63 | "scope": "io",
64 | "tabTrigger": "ut"
65 | }
66 | ];
67 | exports.scope = "io";
68 |
69 | }); (function() {
70 | window.require(["ace/snippets/io"], function(m) {
71 | if (typeof module == "object" && typeof exports == "object" && module) {
72 | module.exports = m;
73 | }
74 | });
75 | })();
76 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/jack.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/jack"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/jade.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/jade"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/json.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/json"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/json5.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/json5"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/jsoniq.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/jsoniq",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet for\n\
5 | for $${1:item} in ${2:expr}\n\
6 | snippet return\n\
7 | return ${1:expr}\n\
8 | snippet import\n\
9 | import module namespace ${1:ns} = \"${2:http://www.example.com/}\";\n\
10 | snippet some\n\
11 | some $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
12 | snippet every\n\
13 | every $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
14 | snippet if\n\
15 | if(${1:true}) then ${2:expr} else ${3:true}\n\
16 | snippet switch\n\
17 | switch(${1:\"foo\"})\n\
18 | case ${2:\"foo\"}\n\
19 | return ${3:true}\n\
20 | default return ${4:false}\n\
21 | snippet try\n\
22 | try { ${1:expr} } catch ${2:*} { ${3:expr} }\n\
23 | snippet tumbling\n\
24 | for tumbling window $${1:varname} in ${2:expr}\n\
25 | start at $${3:start} when ${4:expr}\n\
26 | end at $${5:end} when ${6:expr}\n\
27 | return ${7:expr}\n\
28 | snippet sliding\n\
29 | for sliding window $${1:varname} in ${2:expr}\n\
30 | start at $${3:start} when ${4:expr}\n\
31 | end at $${5:end} when ${6:expr}\n\
32 | return ${7:expr}\n\
33 | snippet let\n\
34 | let $${1:varname} := ${2:expr}\n\
35 | snippet group\n\
36 | group by $${1:varname} := ${2:expr}\n\
37 | snippet order\n\
38 | order by ${1:expr} ${2:descending}\n\
39 | snippet stable\n\
40 | stable order by ${1:expr}\n\
41 | snippet count\n\
42 | count $${1:varname}\n\
43 | snippet ordered\n\
44 | ordered { ${1:expr} }\n\
45 | snippet unordered\n\
46 | unordered { ${1:expr} }\n\
47 | snippet treat \n\
48 | treat as ${1:expr}\n\
49 | snippet castable\n\
50 | castable as ${1:atomicType}\n\
51 | snippet cast\n\
52 | cast as ${1:atomicType}\n\
53 | snippet typeswitch\n\
54 | typeswitch(${1:expr})\n\
55 | case ${2:type} return ${3:expr}\n\
56 | default return ${4:expr}\n\
57 | snippet var\n\
58 | declare variable $${1:varname} := ${2:expr};\n\
59 | snippet fn\n\
60 | declare function ${1:ns}:${2:name}(){\n\
61 | ${3:expr}\n\
62 | };\n\
63 | snippet module\n\
64 | module namespace ${1:ns} = \"${2:http://www.example.com}\";\n\
65 | ";
66 | exports.scope = "jsoniq";
67 |
68 | }); (function() {
69 | window.require(["ace/snippets/jsoniq"], function(m) {
70 | if (typeof module == "object" && typeof exports == "object" && module) {
71 | module.exports = m;
72 | }
73 | });
74 | })();
75 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/jsp.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/jsp",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet @page\n\
5 | <%@page contentType=\"text/html\" pageEncoding=\"UTF-8\"%>\n\
6 | snippet jstl\n\
7 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\
8 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\
9 | snippet jstl:c\n\
10 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\
11 | snippet jstl:fn\n\
12 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\
13 | snippet cpath\n\
14 | ${pageContext.request.contextPath}\n\
15 | snippet cout\n\
16 | \n\
17 | snippet cset\n\
18 | \n\
19 | snippet cremove\n\
20 | \n\
21 | snippet ccatch\n\
22 | \n\
23 | snippet cif\n\
24 | \n\
25 | ${2}\n\
26 | \n\
27 | snippet cchoose\n\
28 | \n\
29 | ${1}\n\
30 | \n\
31 | snippet cwhen\n\
32 | \n\
33 | ${2}\n\
34 | \n\
35 | snippet cother\n\
36 | \n\
37 | ${1}\n\
38 | \n\
39 | snippet cfore\n\
40 | \n\
41 | ${4: }\n\
42 | \n\
43 | snippet cfort\n\
44 | ${2:item1,item2,item3} \n\
45 | \n\
46 | ${5: }\n\
47 | \n\
48 | snippet cparam\n\
49 | \n\
50 | snippet cparam+\n\
51 | \n\
52 | cparam+${3}\n\
53 | snippet cimport\n\
54 | \n\
55 | snippet cimport+\n\
56 | \n\
57 | \n\
58 | cparam+${4}\n\
59 | \n\
60 | snippet curl\n\
61 | \n\
62 | ${3}\n\
63 | snippet curl+\n\
64 | \n\
65 | \n\
66 | cparam+${6}\n\
67 | \n\
68 | ${3}\n\
69 | snippet credirect\n\
70 | \n\
71 | snippet contains\n\
72 | ${fn:contains(${1:string}, ${2:substr})}\n\
73 | snippet contains:i\n\
74 | ${fn:containsIgnoreCase(${1:string}, ${2:substr})}\n\
75 | snippet endswith\n\
76 | ${fn:endsWith(${1:string}, ${2:suffix})}\n\
77 | snippet escape\n\
78 | ${fn:escapeXml(${1:string})}\n\
79 | snippet indexof\n\
80 | ${fn:indexOf(${1:string}, ${2:substr})}\n\
81 | snippet join\n\
82 | ${fn:join(${1:collection}, ${2:delims})}\n\
83 | snippet length\n\
84 | ${fn:length(${1:collection_or_string})}\n\
85 | snippet replace\n\
86 | ${fn:replace(${1:string}, ${2:substr}, ${3:replace})}\n\
87 | snippet split\n\
88 | ${fn:split(${1:string}, ${2:delims})}\n\
89 | snippet startswith\n\
90 | ${fn:startsWith(${1:string}, ${2:prefix})}\n\
91 | snippet substr\n\
92 | ${fn:substring(${1:string}, ${2:begin}, ${3:end})}\n\
93 | snippet substr:a\n\
94 | ${fn:substringAfter(${1:string}, ${2:substr})}\n\
95 | snippet substr:b\n\
96 | ${fn:substringBefore(${1:string}, ${2:substr})}\n\
97 | snippet lc\n\
98 | ${fn:toLowerCase(${1:string})}\n\
99 | snippet uc\n\
100 | ${fn:toUpperCase(${1:string})}\n\
101 | snippet trim\n\
102 | ${fn:trim(${1:string})}\n\
103 | ";
104 | exports.scope = "jsp";
105 |
106 | }); (function() {
107 | window.require(["ace/snippets/jsp"], function(m) {
108 | if (typeof module == "object" && typeof exports == "object" && module) {
109 | module.exports = m;
110 | }
111 | });
112 | })();
113 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/jssm.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/jssm"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/jsx.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/jsx"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/julia.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/julia"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/kotlin.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/kotlin"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/latex.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/latex"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/latte.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/latte"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/less.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/less"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/lisp.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/lisp"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/livescript.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/livescript"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/logiql.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/logiql"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/logtalk.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/logtalk"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/lua.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/lua",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet #!\n\
5 | #!/usr/bin/env lua\n\
6 | $1\n\
7 | snippet local\n\
8 | local ${1:x} = ${2:1}\n\
9 | snippet fun\n\
10 | function ${1:fname}(${2:...})\n\
11 | ${3:-- body}\n\
12 | end\n\
13 | snippet for\n\
14 | for ${1:i}=${2:1},${3:10} do\n\
15 | ${4:print(i)}\n\
16 | end\n\
17 | snippet forp\n\
18 | for ${1:i},${2:v} in pairs(${3:table_name}) do\n\
19 | ${4:-- body}\n\
20 | end\n\
21 | snippet fori\n\
22 | for ${1:i},${2:v} in ipairs(${3:table_name}) do\n\
23 | ${4:-- body}\n\
24 | end\n\
25 | ";
26 | exports.scope = "lua";
27 |
28 | }); (function() {
29 | window.require(["ace/snippets/lua"], function(m) {
30 | if (typeof module == "object" && typeof exports == "object" && module) {
31 | module.exports = m;
32 | }
33 | });
34 | })();
35 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/luapage.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/luapage"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/lucene.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/lucene"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/makefile.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/makefile",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet ifeq\n\
5 | ifeq (${1:cond0},${2:cond1})\n\
6 | ${3:code}\n\
7 | endif\n\
8 | ";
9 | exports.scope = "makefile";
10 |
11 | }); (function() {
12 | window.require(["ace/snippets/makefile"], function(m) {
13 | if (typeof module == "object" && typeof exports == "object" && module) {
14 | module.exports = m;
15 | }
16 | });
17 | })();
18 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/markdown.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Markdown\n\
5 | \n\
6 | # Includes octopress (http://octopress.org/) snippets\n\
7 | \n\
8 | snippet [\n\
9 | [${1:text}](http://${2:address} \"${3:title}\")\n\
10 | snippet [*\n\
11 | [${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
12 | \n\
13 | snippet [:\n\
14 | [${1:id}]: http://${2:url} \"${3:title}\"\n\
15 | snippet [:*\n\
16 | [${1:id}]: ${2:`@*`} \"${3:title}\"\n\
17 | \n\
18 | snippet \n\
20 | snippet ${4}\n\
22 | \n\
23 | snippet ![:\n\
24 | ![${1:id}]: ${2:url} \"${3:title}\"\n\
25 | snippet ![:*\n\
26 | ![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
27 | \n\
28 | snippet ===\n\
29 | regex /^/=+/=*//\n\
30 | ${PREV_LINE/./=/g}\n\
31 | \n\
32 | ${0}\n\
33 | snippet ---\n\
34 | regex /^/-+/-*//\n\
35 | ${PREV_LINE/./-/g}\n\
36 | \n\
37 | ${0}\n\
38 | snippet blockquote\n\
39 | {% blockquote %}\n\
40 | ${1:quote}\n\
41 | {% endblockquote %}\n\
42 | \n\
43 | snippet blockquote-author\n\
44 | {% blockquote ${1:author}, ${2:title} %}\n\
45 | ${3:quote}\n\
46 | {% endblockquote %}\n\
47 | \n\
48 | snippet blockquote-link\n\
49 | {% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
50 | ${4:quote}\n\
51 | {% endblockquote %}\n\
52 | \n\
53 | snippet bt-codeblock-short\n\
54 | ```\n\
55 | ${1:code_snippet}\n\
56 | ```\n\
57 | \n\
58 | snippet bt-codeblock-full\n\
59 | ``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
60 | ${5:code_snippet}\n\
61 | ```\n\
62 | \n\
63 | snippet codeblock-short\n\
64 | {% codeblock %}\n\
65 | ${1:code_snippet}\n\
66 | {% endcodeblock %}\n\
67 | \n\
68 | snippet codeblock-full\n\
69 | {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
70 | ${5:code_snippet}\n\
71 | {% endcodeblock %}\n\
72 | \n\
73 | snippet gist-full\n\
74 | {% gist ${1:gist_id} ${2:filename} %}\n\
75 | \n\
76 | snippet gist-short\n\
77 | {% gist ${1:gist_id} %}\n\
78 | \n\
79 | snippet img\n\
80 | {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
81 | \n\
82 | snippet youtube\n\
83 | {% youtube ${1:video_id} %}\n\
84 | \n\
85 | # The quote should appear only once in the text. It is inherently part of it.\n\
86 | # See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
87 | \n\
88 | snippet pullquote\n\
89 | {% pullquote %}\n\
90 | ${1:text} {\" ${2:quote} \"} ${3:text}\n\
91 | {% endpullquote %}\n\
92 | ";
93 | exports.scope = "markdown";
94 |
95 | }); (function() {
96 | window.require(["ace/snippets/markdown"], function(m) {
97 | if (typeof module == "object" && typeof exports == "object" && module) {
98 | module.exports = m;
99 | }
100 | });
101 | })();
102 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mask.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mask"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/matlab.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/matlab"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/maze.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/maze",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet >\n\
5 | description assignment\n\
6 | scope maze\n\
7 | -> ${1}= ${2}\n\
8 | \n\
9 | snippet >\n\
10 | description if\n\
11 | scope maze\n\
12 | -> IF ${2:**} THEN %${3:L} ELSE %${4:R}\n\
13 | ";
14 | exports.scope = "maze";
15 |
16 | }); (function() {
17 | window.require(["ace/snippets/maze"], function(m) {
18 | if (typeof module == "object" && typeof exports == "object" && module) {
19 | module.exports = m;
20 | }
21 | });
22 | })();
23 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mediawiki.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mediawiki"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mel.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mel"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mips.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mips"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mixal.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mixal"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mushcode.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mushcode"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/mysql.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/mysql"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/nginx.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/nginx"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/nim.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/nim"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/nix.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/nix"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/nsis.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/nsis"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/nunjucks.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/nunjucks"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/objectivec.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/objectivec"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/ocaml.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/ocaml"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/pascal.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/pascal"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/pgsql.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/pgsql"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/php_laravel_blade.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/php_laravel_blade"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/pig.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/pig"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/plain_text.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/plain_text"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/powershell.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/powershell"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/praat.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/praat"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/prisma.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/prisma"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/prolog.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/prolog"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/properties.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/properties"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/protobuf.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/protobuf"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/puppet.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/puppet"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/qml.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/qml"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/r.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/r",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet #!\n\
5 | #!/usr/bin/env Rscript\n\
6 | \n\
7 | # includes\n\
8 | snippet lib\n\
9 | library(${1:package})\n\
10 | snippet req\n\
11 | require(${1:package})\n\
12 | snippet source\n\
13 | source('${1:file}')\n\
14 | \n\
15 | # conditionals\n\
16 | snippet if\n\
17 | if (${1:condition}) {\n\
18 | ${2:code}\n\
19 | }\n\
20 | snippet el\n\
21 | else {\n\
22 | ${1:code}\n\
23 | }\n\
24 | snippet ei\n\
25 | else if (${1:condition}) {\n\
26 | ${2:code}\n\
27 | }\n\
28 | \n\
29 | # functions\n\
30 | snippet fun\n\
31 | ${1:name} = function (${2:variables}) {\n\
32 | ${3:code}\n\
33 | }\n\
34 | snippet ret\n\
35 | return(${1:code})\n\
36 | \n\
37 | # dataframes, lists, etc\n\
38 | snippet df\n\
39 | ${1:name}[${2:rows}, ${3:cols}]\n\
40 | snippet c\n\
41 | c(${1:items})\n\
42 | snippet li\n\
43 | list(${1:items})\n\
44 | snippet mat\n\
45 | matrix(${1:data}, nrow=${2:rows}, ncol=${3:cols})\n\
46 | \n\
47 | # apply functions\n\
48 | snippet apply\n\
49 | apply(${1:array}, ${2:margin}, ${3:function})\n\
50 | snippet lapply\n\
51 | lapply(${1:list}, ${2:function})\n\
52 | snippet sapply\n\
53 | sapply(${1:list}, ${2:function})\n\
54 | snippet vapply\n\
55 | vapply(${1:list}, ${2:function}, ${3:type})\n\
56 | snippet mapply\n\
57 | mapply(${1:function}, ${2:...})\n\
58 | snippet tapply\n\
59 | tapply(${1:vector}, ${2:index}, ${3:function})\n\
60 | snippet rapply\n\
61 | rapply(${1:list}, ${2:function})\n\
62 | \n\
63 | # plyr functions\n\
64 | snippet dd\n\
65 | ddply(${1:frame}, ${2:variables}, ${3:function})\n\
66 | snippet dl\n\
67 | dlply(${1:frame}, ${2:variables}, ${3:function})\n\
68 | snippet da\n\
69 | daply(${1:frame}, ${2:variables}, ${3:function})\n\
70 | snippet d_\n\
71 | d_ply(${1:frame}, ${2:variables}, ${3:function})\n\
72 | \n\
73 | snippet ad\n\
74 | adply(${1:array}, ${2:margin}, ${3:function})\n\
75 | snippet al\n\
76 | alply(${1:array}, ${2:margin}, ${3:function})\n\
77 | snippet aa\n\
78 | aaply(${1:array}, ${2:margin}, ${3:function})\n\
79 | snippet a_\n\
80 | a_ply(${1:array}, ${2:margin}, ${3:function})\n\
81 | \n\
82 | snippet ld\n\
83 | ldply(${1:list}, ${2:function})\n\
84 | snippet ll\n\
85 | llply(${1:list}, ${2:function})\n\
86 | snippet la\n\
87 | laply(${1:list}, ${2:function})\n\
88 | snippet l_\n\
89 | l_ply(${1:list}, ${2:function})\n\
90 | \n\
91 | snippet md\n\
92 | mdply(${1:matrix}, ${2:function})\n\
93 | snippet ml\n\
94 | mlply(${1:matrix}, ${2:function})\n\
95 | snippet ma\n\
96 | maply(${1:matrix}, ${2:function})\n\
97 | snippet m_\n\
98 | m_ply(${1:matrix}, ${2:function})\n\
99 | \n\
100 | # plot functions\n\
101 | snippet pl\n\
102 | plot(${1:x}, ${2:y})\n\
103 | snippet ggp\n\
104 | ggplot(${1:data}, aes(${2:aesthetics}))\n\
105 | snippet img\n\
106 | ${1:(jpeg,bmp,png,tiff)}(filename=\"${2:filename}\", width=${3}, height=${4}, unit=\"${5}\")\n\
107 | ${6:plot}\n\
108 | dev.off()\n\
109 | \n\
110 | # statistical test functions\n\
111 | snippet fis\n\
112 | fisher.test(${1:x}, ${2:y})\n\
113 | snippet chi\n\
114 | chisq.test(${1:x}, ${2:y})\n\
115 | snippet tt\n\
116 | t.test(${1:x}, ${2:y})\n\
117 | snippet wil\n\
118 | wilcox.test(${1:x}, ${2:y})\n\
119 | snippet cor\n\
120 | cor.test(${1:x}, ${2:y})\n\
121 | snippet fte\n\
122 | var.test(${1:x}, ${2:y})\n\
123 | snippet kvt \n\
124 | kv.test(${1:x}, ${2:y})\n\
125 | ";
126 | exports.scope = "r";
127 |
128 | }); (function() {
129 | window.require(["ace/snippets/r"], function(m) {
130 | if (typeof module == "object" && typeof exports == "object" && module) {
131 | module.exports = m;
132 | }
133 | });
134 | })();
135 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/raku.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/raku"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/razor.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/razor",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet if\n\
5 | (${1} == ${2}) {\n\
6 | ${3}\n\
7 | }";
8 | exports.scope = "razor";
9 |
10 | }); (function() {
11 | window.require(["ace/snippets/razor"], function(m) {
12 | if (typeof module == "object" && typeof exports == "object" && module) {
13 | module.exports = m;
14 | }
15 | });
16 | })();
17 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/rdoc.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/rdoc"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/red.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/red"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/redshift.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/redshift"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/rhtml.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/rhtml"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/rst.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/rst",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# rst\n\
5 | \n\
6 | snippet :\n\
7 | :${1:field name}: ${2:field body}\n\
8 | snippet *\n\
9 | *${1:Emphasis}*\n\
10 | snippet **\n\
11 | **${1:Strong emphasis}**\n\
12 | snippet _\n\
13 | \\`${1:hyperlink-name}\\`_\n\
14 | .. _\\`$1\\`: ${2:link-block}\n\
15 | snippet =\n\
16 | ${1:Title}\n\
17 | =====${2:=}\n\
18 | ${3}\n\
19 | snippet -\n\
20 | ${1:Title}\n\
21 | -----${2:-}\n\
22 | ${3}\n\
23 | snippet cont:\n\
24 | .. contents::\n\
25 | \n\
26 | ";
27 | exports.scope = "rst";
28 |
29 | }); (function() {
30 | window.require(["ace/snippets/rst"], function(m) {
31 | if (typeof module == "object" && typeof exports == "object" && module) {
32 | module.exports = m;
33 | }
34 | });
35 | })();
36 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/rust.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/rust"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/sass.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/sass"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/scad.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/scad"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/scala.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/scala"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/scheme.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/scheme"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/scrypt.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/scrypt"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/scss.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/scss"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/sh.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/sh",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Shebang. Executing bash via /usr/bin/env makes scripts more portable.\n\
5 | snippet #!\n\
6 | #!/usr/bin/env bash\n\
7 | \n\
8 | snippet if\n\
9 | if [[ ${1:condition} ]]; then\n\
10 | ${2:#statements}\n\
11 | fi\n\
12 | snippet elif\n\
13 | elif [[ ${1:condition} ]]; then\n\
14 | ${2:#statements}\n\
15 | snippet for\n\
16 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do\n\
17 | ${3:#statements}\n\
18 | done\n\
19 | snippet fori\n\
20 | for ${1:needle} in ${2:haystack} ; do\n\
21 | ${3:#statements}\n\
22 | done\n\
23 | snippet wh\n\
24 | while [[ ${1:condition} ]]; do\n\
25 | ${2:#statements}\n\
26 | done\n\
27 | snippet until\n\
28 | until [[ ${1:condition} ]]; do\n\
29 | ${2:#statements}\n\
30 | done\n\
31 | snippet case\n\
32 | case ${1:word} in\n\
33 | ${2:pattern})\n\
34 | ${3};;\n\
35 | esac\n\
36 | snippet go \n\
37 | while getopts '${1:o}' ${2:opts} \n\
38 | do \n\
39 | case $$2 in\n\
40 | ${3:o0})\n\
41 | ${4:#staments};;\n\
42 | esac\n\
43 | done\n\
44 | # Set SCRIPT_DIR variable to directory script is located.\n\
45 | snippet sdir\n\
46 | SCRIPT_DIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n\
47 | # getopt\n\
48 | snippet getopt\n\
49 | __ScriptVersion=\"${1:version}\"\n\
50 | \n\
51 | #=== FUNCTION ================================================================\n\
52 | # NAME: usage\n\
53 | # DESCRIPTION: Display usage information.\n\
54 | #===============================================================================\n\
55 | function usage ()\n\
56 | {\n\
57 | cat <<- EOT\n\
58 | \n\
59 | Usage : $${0:0} [options] [--] \n\
60 | \n\
61 | Options: \n\
62 | -h|help Display this message\n\
63 | -v|version Display script version\n\
64 | \n\
65 | EOT\n\
66 | } # ---------- end of function usage ----------\n\
67 | \n\
68 | #-----------------------------------------------------------------------\n\
69 | # Handle command line arguments\n\
70 | #-----------------------------------------------------------------------\n\
71 | \n\
72 | while getopts \":hv\" opt\n\
73 | do\n\
74 | case $opt in\n\
75 | \n\
76 | h|help ) usage; exit 0 ;;\n\
77 | \n\
78 | v|version ) echo \"$${0:0} -- Version $__ScriptVersion\"; exit 0 ;;\n\
79 | \n\
80 | \\? ) echo -e \"\\n Option does not exist : $OPTARG\\n\"\n\
81 | usage; exit 1 ;;\n\
82 | \n\
83 | esac # --- end of case ---\n\
84 | done\n\
85 | shift $(($OPTIND-1))\n\
86 | \n\
87 | ";
88 | exports.scope = "sh";
89 |
90 | }); (function() {
91 | window.require(["ace/snippets/sh"], function(m) {
92 | if (typeof module == "object" && typeof exports == "object" && module) {
93 | module.exports = m;
94 | }
95 | });
96 | })();
97 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/sjs.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/sjs"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/slim.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/slim"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/smarty.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/smarty"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/smithy.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/smithy"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/snippets.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/snippets",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# snippets for making snippets :)\n\
5 | snippet snip\n\
6 | snippet ${1:trigger}\n\
7 | ${2}\n\
8 | snippet msnip\n\
9 | snippet ${1:trigger} ${2:description}\n\
10 | ${3}\n\
11 | snippet v\n\
12 | {VISUAL}\n\
13 | ";
14 | exports.scope = "snippets";
15 |
16 | }); (function() {
17 | window.require(["ace/snippets/snippets"], function(m) {
18 | if (typeof module == "object" && typeof exports == "object" && module) {
19 | module.exports = m;
20 | }
21 | });
22 | })();
23 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/soy_template.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/soy_template"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/space.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/space"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/sparql.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/sparql"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/sql.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/sql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet tbl\n\
5 | create table ${1:table} (\n\
6 | ${2:columns}\n\
7 | );\n\
8 | snippet col\n\
9 | ${1:name} ${2:type} ${3:default ''} ${4:not null}\n\
10 | snippet ccol\n\
11 | ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\n\
12 | snippet ncol\n\
13 | ${1:name} number ${3:default 0} ${4:not null}\n\
14 | snippet dcol\n\
15 | ${1:name} date ${3:default sysdate} ${4:not null}\n\
16 | snippet ind\n\
17 | create index ${3:$1_$2} on ${1:table}(${2:column});\n\
18 | snippet uind\n\
19 | create unique index ${1:name} on ${2:table}(${3:column});\n\
20 | snippet tblcom\n\
21 | comment on table ${1:table} is '${2:comment}';\n\
22 | snippet colcom\n\
23 | comment on column ${1:table}.${2:column} is '${3:comment}';\n\
24 | snippet addcol\n\
25 | alter table ${1:table} add (${2:column} ${3:type});\n\
26 | snippet seq\n\
27 | create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\n\
28 | snippet s*\n\
29 | select * from ${1:table}\n\
30 | ";
31 | exports.scope = "sql";
32 |
33 | }); (function() {
34 | window.require(["ace/snippets/sql"], function(m) {
35 | if (typeof module == "object" && typeof exports == "object" && module) {
36 | module.exports = m;
37 | }
38 | });
39 | })();
40 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/sqlserver.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/sqlserver",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# ISNULL\n\
5 | snippet isnull\n\
6 | ISNULL(${1:check_expression}, ${2:replacement_value})\n\
7 | # FORMAT\n\
8 | snippet format\n\
9 | FORMAT(${1:value}, ${2:format})\n\
10 | # CAST\n\
11 | snippet cast\n\
12 | CAST(${1:expression} AS ${2:data_type})\n\
13 | # CONVERT\n\
14 | snippet convert\n\
15 | CONVERT(${1:data_type}, ${2:expression})\n\
16 | # DATEPART\n\
17 | snippet datepart\n\
18 | DATEPART(${1:datepart}, ${2:date})\n\
19 | # DATEDIFF\n\
20 | snippet datediff\n\
21 | DATEDIFF(${1:datepart}, ${2:startdate}, ${3:enddate})\n\
22 | # DATEADD\n\
23 | snippet dateadd\n\
24 | DATEADD(${1:datepart}, ${2:number}, ${3:date})\n\
25 | # DATEFROMPARTS \n\
26 | snippet datefromparts\n\
27 | DATEFROMPARTS(${1:year}, ${2:month}, ${3:day})\n\
28 | # OBJECT_DEFINITION\n\
29 | snippet objectdef\n\
30 | SELECT OBJECT_DEFINITION(OBJECT_ID('${1:sys.server_permissions /*object name*/}'))\n\
31 | # STUFF XML\n\
32 | snippet stuffxml\n\
33 | STUFF((SELECT ', ' + ${1:ColumnName}\n\
34 | FROM ${2:TableName}\n\
35 | WHERE ${3:WhereClause}\n\
36 | FOR XML PATH('')), 1, 1, '') AS ${4:Alias}\n\
37 | ${5:/*https://msdn.microsoft.com/en-us/library/ms188043.aspx*/}\n\
38 | # Create Procedure\n\
39 | snippet createproc\n\
40 | -- =============================================\n\
41 | -- Author: ${1:Author}\n\
42 | -- Create date: ${2:Date}\n\
43 | -- Description: ${3:Description}\n\
44 | -- =============================================\n\
45 | CREATE PROCEDURE ${4:Procedure_Name}\n\
46 | ${5:/*Add the parameters for the stored procedure here*/}\n\
47 | AS\n\
48 | BEGIN\n\
49 | -- SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.\n\
50 | SET NOCOUNT ON;\n\
51 | \n\
52 | ${6:/*Add the T-SQL statements to compute the return value here*/}\n\
53 | \n\
54 | END\n\
55 | GO\n\
56 | # Create Scalar Function\n\
57 | snippet createfn\n\
58 | -- =============================================\n\
59 | -- Author: ${1:Author}\n\
60 | -- Create date: ${2:Date}\n\
61 | -- Description: ${3:Description}\n\
62 | -- =============================================\n\
63 | CREATE FUNCTION ${4:Scalar_Function_Name}\n\
64 | -- Add the parameters for the function here\n\
65 | RETURNS ${5:Function_Data_Type}\n\
66 | AS\n\
67 | BEGIN\n\
68 | DECLARE @Result ${5:Function_Data_Type}\n\
69 | \n\
70 | ${6:/*Add the T-SQL statements to compute the return value here*/}\n\
71 | \n\
72 | END\n\
73 | GO";
74 | exports.scope = "sqlserver";
75 |
76 | }); (function() {
77 | window.require(["ace/snippets/sqlserver"], function(m) {
78 | if (typeof module == "object" && typeof exports == "object" && module) {
79 | module.exports = m;
80 | }
81 | });
82 | })();
83 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/stylus.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/stylus"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/svg.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/svg"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/swift.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/swift"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/tcl.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/tcl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# #!/usr/bin/env tclsh\n\
5 | snippet #!\n\
6 | #!/usr/bin/env tclsh\n\
7 | \n\
8 | # Process\n\
9 | snippet pro\n\
10 | proc ${1:function_name} {${2:args}} {\n\
11 | ${3:#body ...}\n\
12 | }\n\
13 | #xif\n\
14 | snippet xif\n\
15 | ${1:expr}? ${2:true} : ${3:false}\n\
16 | # Conditional\n\
17 | snippet if\n\
18 | if {${1}} {\n\
19 | ${2:# body...}\n\
20 | }\n\
21 | # Conditional if..else\n\
22 | snippet ife\n\
23 | if {${1}} {\n\
24 | ${2:# body...}\n\
25 | } else {\n\
26 | ${3:# else...}\n\
27 | }\n\
28 | # Conditional if..elsif..else\n\
29 | snippet ifee\n\
30 | if {${1}} {\n\
31 | ${2:# body...}\n\
32 | } elseif {${3}} {\n\
33 | ${4:# elsif...}\n\
34 | } else {\n\
35 | ${5:# else...}\n\
36 | }\n\
37 | # If catch then\n\
38 | snippet ifc\n\
39 | if { [catch {${1:#do something...}} ${2:err}] } {\n\
40 | ${3:# handle failure...}\n\
41 | }\n\
42 | # Catch\n\
43 | snippet catch\n\
44 | catch {${1}} ${2:err} ${3:options}\n\
45 | # While Loop\n\
46 | snippet wh\n\
47 | while {${1}} {\n\
48 | ${2:# body...}\n\
49 | }\n\
50 | # For Loop\n\
51 | snippet for\n\
52 | for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\
53 | ${4:# body...}\n\
54 | }\n\
55 | # Foreach Loop\n\
56 | snippet fore\n\
57 | foreach ${1:x} {${2:#list}} {\n\
58 | ${3:# body...}\n\
59 | }\n\
60 | # after ms script...\n\
61 | snippet af\n\
62 | after ${1:ms} ${2:#do something}\n\
63 | # after cancel id\n\
64 | snippet afc\n\
65 | after cancel ${1:id or script}\n\
66 | # after idle\n\
67 | snippet afi\n\
68 | after idle ${1:script}\n\
69 | # after info id\n\
70 | snippet afin\n\
71 | after info ${1:id}\n\
72 | # Expr\n\
73 | snippet exp\n\
74 | expr {${1:#expression here}}\n\
75 | # Switch\n\
76 | snippet sw\n\
77 | switch ${1:var} {\n\
78 | ${3:pattern 1} {\n\
79 | ${4:#do something}\n\
80 | }\n\
81 | default {\n\
82 | ${2:#do something}\n\
83 | }\n\
84 | }\n\
85 | # Case\n\
86 | snippet ca\n\
87 | ${1:pattern} {\n\
88 | ${2:#do something}\n\
89 | }${3}\n\
90 | # Namespace eval\n\
91 | snippet ns\n\
92 | namespace eval ${1:path} {${2:#script...}}\n\
93 | # Namespace current\n\
94 | snippet nsc\n\
95 | namespace current\n\
96 | ";
97 | exports.scope = "tcl";
98 |
99 | }); (function() {
100 | window.require(["ace/snippets/tcl"], function(m) {
101 | if (typeof module == "object" && typeof exports == "object" && module) {
102 | module.exports = m;
103 | }
104 | });
105 | })();
106 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/terraform.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/terraform"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/text.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/text"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/textile.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/textile",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Jekyll post header\n\
5 | snippet header\n\
6 | ---\n\
7 | title: ${1:title}\n\
8 | layout: post\n\
9 | date: ${2:date} ${3:hour:minute:second} -05:00\n\
10 | ---\n\
11 | \n\
12 | # Image\n\
13 | snippet img\n\
14 | !${1:url}(${2:title}):${3:link}!\n\
15 | \n\
16 | # Table\n\
17 | snippet |\n\
18 | |${1}|${2}\n\
19 | \n\
20 | # Link\n\
21 | snippet link\n\
22 | \"${1:link text}\":${2:url}\n\
23 | \n\
24 | # Acronym\n\
25 | snippet (\n\
26 | (${1:Expand acronym})${2}\n\
27 | \n\
28 | # Footnote\n\
29 | snippet fn\n\
30 | [${1:ref number}] ${3}\n\
31 | \n\
32 | fn$1. ${2:footnote}\n\
33 | \n\
34 | ";
35 | exports.scope = "textile";
36 |
37 | }); (function() {
38 | window.require(["ace/snippets/textile"], function(m) {
39 | if (typeof module == "object" && typeof exports == "object" && module) {
40 | module.exports = m;
41 | }
42 | });
43 | })();
44 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/toml.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/toml"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/tsx.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/tsx"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/turtle.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/turtle"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/twig.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/twig"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/typescript.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/typescript"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/vbscript.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/vbscript"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/velocity.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/velocity",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# macro\n\
5 | snippet #macro\n\
6 | #macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\
7 | ${3:## macro code}\n\
8 | #end\n\
9 | # foreach\n\
10 | snippet #foreach\n\
11 | #foreach ( ${1:\\$item} in ${2:\\$collection} )\n\
12 | ${3:## foreach code}\n\
13 | #end\n\
14 | # if\n\
15 | snippet #if\n\
16 | #if ( ${1:true} )\n\
17 | ${0}\n\
18 | #end\n\
19 | # if ... else\n\
20 | snippet #ife\n\
21 | #if ( ${1:true} )\n\
22 | ${2}\n\
23 | #else\n\
24 | ${0}\n\
25 | #end\n\
26 | #import\n\
27 | snippet #import\n\
28 | #import ( \"${1:path/to/velocity/format}\" )\n\
29 | # set\n\
30 | snippet #set\n\
31 | #set ( $${1:var} = ${0} )\n\
32 | ";
33 | exports.scope = "velocity";
34 | exports.includeScopes = ["html", "javascript", "css"];
35 |
36 | }); (function() {
37 | window.require(["ace/snippets/velocity"], function(m) {
38 | if (typeof module == "object" && typeof exports == "object" && module) {
39 | module.exports = m;
40 | }
41 | });
42 | })();
43 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/verilog.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/verilog"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/vhdl.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/vhdl"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/visualforce.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/visualforce"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/wollok.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/wollok",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "##\n\
5 | ## Basic Java packages and import\n\
6 | snippet im\n\
7 | import\n\
8 | snippet w.l\n\
9 | wollok.lang\n\
10 | snippet w.i\n\
11 | wollok.lib\n\
12 | \n\
13 | ## Class and object\n\
14 | snippet cl\n\
15 | class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
16 | snippet obj\n\
17 | object ${1:`Filename(\"\", \"untitled\")`} ${2:inherits Parent}${3}\n\
18 | snippet te\n\
19 | test ${1:`Filename(\"\", \"untitled\")`}\n\
20 | \n\
21 | ##\n\
22 | ## Enhancements\n\
23 | snippet inh\n\
24 | inherits\n\
25 | \n\
26 | ##\n\
27 | ## Comments\n\
28 | snippet /*\n\
29 | /*\n\
30 | * ${1}\n\
31 | */\n\
32 | \n\
33 | ##\n\
34 | ## Control Statements\n\
35 | snippet el\n\
36 | else\n\
37 | snippet if\n\
38 | if (${1}) ${2}\n\
39 | \n\
40 | ##\n\
41 | ## Create a Method\n\
42 | snippet m\n\
43 | method ${1:method}(${2}) ${5}\n\
44 | \n\
45 | ## \n\
46 | ## Tests\n\
47 | snippet as\n\
48 | assert.equals(${1:expected}, ${2:actual})\n\
49 | \n\
50 | ##\n\
51 | ## Exceptions\n\
52 | snippet ca\n\
53 | catch ${1:e} : (${2:Exception} ) ${3}\n\
54 | snippet thr\n\
55 | throw\n\
56 | snippet try\n\
57 | try {\n\
58 | ${3}\n\
59 | } catch ${1:e} : ${2:Exception} {\n\
60 | }\n\
61 | \n\
62 | ##\n\
63 | ## Javadocs\n\
64 | snippet /**\n\
65 | /**\n\
66 | * ${1}\n\
67 | */\n\
68 | \n\
69 | ##\n\
70 | ## Print Methods\n\
71 | snippet print\n\
72 | console.println(\"${1:Message}\")\n\
73 | \n\
74 | ##\n\
75 | ## Setter and Getter Methods\n\
76 | snippet set\n\
77 | method set${1:}(${2:}) {\n\
78 | $1 = $2\n\
79 | }\n\
80 | snippet get\n\
81 | method get${1:}() {\n\
82 | return ${1:};\n\
83 | }\n\
84 | \n\
85 | ##\n\
86 | ## Terminate Methods or Loops\n\
87 | snippet re\n\
88 | return";
89 | exports.scope = "wollok";
90 |
91 | }); (function() {
92 | window.require(["ace/snippets/wollok"], function(m) {
93 | if (typeof module == "object" && typeof exports == "object" && module) {
94 | module.exports = m;
95 | }
96 | });
97 | })();
98 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/xml.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/xml"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/xquery.js:
--------------------------------------------------------------------------------
1 | define("ace/snippets/xquery",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet for\n\
5 | for $${1:item} in ${2:expr}\n\
6 | snippet return\n\
7 | return ${1:expr}\n\
8 | snippet import\n\
9 | import module namespace ${1:ns} = \"${2:http://www.example.com/}\";\n\
10 | snippet some\n\
11 | some $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
12 | snippet every\n\
13 | every $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
14 | snippet if\n\
15 | if(${1:true}) then ${2:expr} else ${3:true}\n\
16 | snippet switch\n\
17 | switch(${1:\"foo\"})\n\
18 | case ${2:\"foo\"}\n\
19 | return ${3:true}\n\
20 | default return ${4:false}\n\
21 | snippet try\n\
22 | try { ${1:expr} } catch ${2:*} { ${3:expr} }\n\
23 | snippet tumbling\n\
24 | for tumbling window $${1:varname} in ${2:expr}\n\
25 | start at $${3:start} when ${4:expr}\n\
26 | end at $${5:end} when ${6:expr}\n\
27 | return ${7:expr}\n\
28 | snippet sliding\n\
29 | for sliding window $${1:varname} in ${2:expr}\n\
30 | start at $${3:start} when ${4:expr}\n\
31 | end at $${5:end} when ${6:expr}\n\
32 | return ${7:expr}\n\
33 | snippet let\n\
34 | let $${1:varname} := ${2:expr}\n\
35 | snippet group\n\
36 | group by $${1:varname} := ${2:expr}\n\
37 | snippet order\n\
38 | order by ${1:expr} ${2:descending}\n\
39 | snippet stable\n\
40 | stable order by ${1:expr}\n\
41 | snippet count\n\
42 | count $${1:varname}\n\
43 | snippet ordered\n\
44 | ordered { ${1:expr} }\n\
45 | snippet unordered\n\
46 | unordered { ${1:expr} }\n\
47 | snippet treat \n\
48 | treat as ${1:expr}\n\
49 | snippet castable\n\
50 | castable as ${1:atomicType}\n\
51 | snippet cast\n\
52 | cast as ${1:atomicType}\n\
53 | snippet typeswitch\n\
54 | typeswitch(${1:expr})\n\
55 | case ${2:type} return ${3:expr}\n\
56 | default return ${4:expr}\n\
57 | snippet var\n\
58 | declare variable $${1:varname} := ${2:expr};\n\
59 | snippet fn\n\
60 | declare function ${1:ns}:${2:name}(){\n\
61 | ${3:expr}\n\
62 | };\n\
63 | snippet module\n\
64 | module namespace ${1:ns} = \"${2:http://www.example.com}\";\n\
65 | ";
66 | exports.scope = "xquery";
67 |
68 | }); (function() {
69 | window.require(["ace/snippets/xquery"], function(m) {
70 | if (typeof module == "object" && typeof exports == "object" && module) {
71 | module.exports = m;
72 | }
73 | });
74 | })();
75 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/yaml.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/yaml"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/snippets/zeek.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | window.require(["ace/snippets/zeek"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/ide/lib/ace/theme-darkplus.js:
--------------------------------------------------------------------------------
1 | define("ace/theme/darkplus",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-darkplus";
5 | exports.cssText = "\
6 | .ace-darkplus ::-webkit-scrollbar-track {\
7 | background: transparent;\
8 | }\
9 | \
10 | .ace-darkplus .ace_gutter {\
11 | background: #181818;\
12 | color: #aaaaaa\
13 | }\
14 | .ace-darkplus .ace_print-margin {\
15 | width: 1px;\
16 | background: #44475a\
17 | }\
18 | .ace-darkplus {\
19 | background-color: #181818;\
20 | color: #dddddd\
21 | }\
22 | .ace-darkplus .ace_cursor {\
23 | color: #f8f8f0\
24 | }\
25 | .ace-darkplus .ace_marker-layer .ace_selection {\
26 | background: #44475a5f\
27 | }\
28 | .ace-darkplus.ace_multiselect .ace_selection.ace_start {\
29 | box-shadow: 0 0 3px 0px #282a36;\
30 | border-radius: 2px\
31 | }\
32 | .ace-darkplus .ace_marker-layer .ace_step {\
33 | background: rgb(198, 219, 174)\
34 | }\
35 | .ace-darkplus .ace_marker-layer .ace_bracket {\
36 | margin: -1px 0 0 -1px;\
37 | border: 1px solid #a29709\
38 | }\
39 | .ace-darkplus .ace_marker-layer .ace_active-line {\
40 | background: #44475a3f\
41 | }\
42 | .ace-darkplus .ace_gutter-active-line {\
43 | background-color: #44475a3f\
44 | }\
45 | .ace-darkplus .ace_marker-layer .ace_selected-word {\
46 | box-shadow: 0px 0px 0px 1px #a29709;\
47 | border-radius: 3px;\
48 | }\
49 | .ace-darkplus .ace_fold {\
50 | background-color: #50fa7b;\
51 | border-color: #f8f8f2\
52 | }\
53 | .ace-darkplus .ace_keyword {\
54 | color: #d197d9\
55 | }\
56 | .ace-darkplus .ace_keyword.ace_control {\
57 | color: #d197d9\
58 | }\
59 | .ace-darkplus .ace_keyword.ace_operator {\
60 | color: #dddddd\
61 | }\
62 | .ace-darkplus .ace_keyword.ace_others {\
63 | color: #D35151\
64 | }\
65 | .ace-darkplus .ace_constant.ace_language {\
66 | color: #7fb347\
67 | }\
68 | .ace-darkplus .ace_constant.ace_numeric {\
69 | color: #7fb347\
70 | }\
71 | .ace-darkplus .ace_constant.ace_character {\
72 | color: #bd93f9\
73 | }\
74 | .ace-darkplus .ace_constant.ace_character.ace_escape {\
75 | color: #ff79c6\
76 | }\
77 | .ace-darkplus .ace_constant.ace_other {\
78 | color: #dddddd\
79 | }\
80 | .ace-darkplus .ace_support.ace_function {\
81 | color: #dcdcaa\
82 | }\
83 | .ace-darkplus .ace_support.ace_constant {\
84 | color: #6be5fd\
85 | }\
86 | .ace-darkplus .ace_support.ace_class {\
87 | color: #66d9ef\
88 | }\
89 | .ace-darkplus .ace_support.ace_type {\
90 | color: #66d9ef\
91 | }\
92 | .ace-darkplus .ace_storage {\
93 | color: #4892F5\
94 | }\
95 | .ace-darkplus .ace_storage.ace_type {\
96 | color: #5EB0F5\
97 | }\
98 | .ace-darkplus .ace_invalid {\
99 | color: #F8F8F0;\
100 | background-color: #ff79c6\
101 | }\
102 | .ace-darkplus .ace_invalid.ace_deprecated {\
103 | color: #F8F8F0;\
104 | background-color: #bd93f9\
105 | }\
106 | .ace-darkplus .ace_string {\
107 | color: #ce9178\
108 | }\
109 | .ace-darkplus .ace_comment {\
110 | color: #608b4e\
111 | }\
112 | .ace-darkplus .ace_variable {\
113 | color: #50fa7b\
114 | }\
115 | .ace-darkplus .ace_variable.ace_parameter {\
116 | color: #ffb86c\
117 | }\
118 | .ace-darkplus .ace_entity.ace_other.ace_attribute-name {\
119 | color: #50fa7b\
120 | }\
121 | .ace-darkplus .ace_entity.ace_name.ace_function {\
122 | color: #50fa7b\
123 | }\
124 | .ace-darkplus .ace_entity.ace_name.ace_tag {\
125 | color: #ff79c6\
126 | }\
127 | .ace-darkplus .ace_invisible {\
128 | color: #626680;\
129 | }\
130 | .ace-darkplus .ace_indent-guide {\
131 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\
132 | }";
133 | exports.$selectionColorConflict = true;
134 |
135 | var dom = require("../lib/dom");
136 | dom.importCssString(exports.cssText, exports.cssClass, false);
137 | });
138 |
139 | (function() {
140 | window.require(["ace/theme/darkplus"], function(m) {
141 | if (typeof module == "object" && typeof exports == "object" && module) {
142 | module.exports = m;
143 | }
144 | });
145 | })();
--------------------------------------------------------------------------------
/ide/lib/ace/theme-dracula.js:
--------------------------------------------------------------------------------
1 | define("ace/theme/dracula",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-dracula";
5 | exports.cssText = "\
6 | .ace-dracula .ace_gutter {\
7 | background: #282a36;\
8 | color: rgb(144,145,148)\
9 | }\
10 | .ace-dracula .ace_print-margin {\
11 | width: 1px;\
12 | background: #44475a\
13 | }\
14 | .ace-dracula {\
15 | background-color: #282a36;\
16 | color: #f8f8f2\
17 | }\
18 | .ace-dracula .ace_cursor {\
19 | color: #f8f8f0\
20 | }\
21 | .ace-dracula .ace_marker-layer .ace_selection {\
22 | background: #44475a\
23 | }\
24 | .ace-dracula .ace_multiselect .ace_selection.ace_start {\
25 | box-shadow: 0 0 3px 0px #282a36;\
26 | border-radius: 2px\
27 | }\
28 | .ace-dracula .ace_marker-layer .ace_step {\
29 | background: rgb(198, 219, 174)\
30 | }\
31 | .ace-dracula .ace_marker-layer .ace_bracket {\
32 | margin: -1px 0 0 -1px;\
33 | border: 1px solid #a29709\
34 | }\
35 | .ace-dracula .ace_marker-layer .ace_active-line {\
36 | background: #44475a\
37 | }\
38 | .ace-dracula .ace_gutter-active-line {\
39 | background-color: #44475a\
40 | }\
41 | .ace-dracula .ace_marker-layer .ace_selected-word {\
42 | box-shadow: 0px 0px 0px 1px #a29709;\
43 | border-radius: 3px;\
44 | }\
45 | .ace-dracula .ace_fold {\
46 | background-color: #50fa7b;\
47 | border-color: #f8f8f2\
48 | }\
49 | .ace-dracula .ace_keyword {\
50 | color: #ff79c6\
51 | }\
52 | .ace-dracula .ace_constant.ace_language {\
53 | color: #bd93f9\
54 | }\
55 | .ace-dracula .ace_constant.ace_numeric {\
56 | color: #bd93f9\
57 | }\
58 | .ace-dracula .ace_constant.ace_character {\
59 | color: #bd93f9\
60 | }\
61 | .ace-dracula .ace_constant.ace_character.ace_escape {\
62 | color: #ff79c6\
63 | }\
64 | .ace-dracula .ace_constant.ace_other {\
65 | color: #bd93f9\
66 | }\
67 | .ace-dracula .ace_support.ace_function {\
68 | color: #8be9fd\
69 | }\
70 | .ace-dracula .ace_support.ace_constant {\
71 | color: #6be5fd\
72 | }\
73 | .ace-dracula .ace_support.ace_class {\
74 | font-style: italic;\
75 | color: #66d9ef\
76 | }\
77 | .ace-dracula .ace_support.ace_type {\
78 | font-style: italic;\
79 | color: #66d9ef\
80 | }\
81 | .ace-dracula .ace_storage {\
82 | color: #ff79c6\
83 | }\
84 | .ace-dracula .ace_storage.ace_type {\
85 | font-style: italic;\
86 | color: #8be9fd\
87 | }\
88 | .ace-dracula .ace_invalid {\
89 | color: #F8F8F0;\
90 | background-color: #ff79c6\
91 | }\
92 | .ace-dracula .ace_invalid.ace_deprecated {\
93 | color: #F8F8F0;\
94 | background-color: #bd93f9\
95 | }\
96 | .ace-dracula .ace_string {\
97 | color: #f1fa8c\
98 | }\
99 | .ace-dracula .ace_comment {\
100 | color: #6272a4\
101 | }\
102 | .ace-dracula .ace_variable {\
103 | color: #50fa7b\
104 | }\
105 | .ace-dracula .ace_variable.ace_parameter {\
106 | font-style: italic;\
107 | color: #ffb86c\
108 | }\
109 | .ace-dracula .ace_entity.ace_other.ace_attribute-name {\
110 | color: #50fa7b\
111 | }\
112 | .ace-dracula .ace_entity.ace_name.ace_function {\
113 | color: #50fa7b\
114 | }\
115 | .ace-dracula .ace_entity.ace_name.ace_tag {\
116 | color: #ff79c6\
117 | }\
118 | .ace-dracula .ace_invisible {\
119 | color: #626680;\
120 | }\
121 | .ace-dracula .ace_indent-guide {\
122 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\
123 | }";
124 | exports.$selectionColorConflict = true;
125 |
126 | var dom = require("../lib/dom");
127 | dom.importCssString(exports.cssText, exports.cssClass, false);
128 | }); (function() {
129 | window.require(["ace/theme/dracula"], function(m) {
130 | if (typeof module == "object" && typeof exports == "object" && module) {
131 | module.exports = m;
132 | }
133 | });
134 | })();
135 |
--------------------------------------------------------------------------------