├── .gitignore
├── .idea
├── .name
├── TypeScriptEditor.iml
├── dictionaries
│ └── bas.xml
├── encodings.xml
├── inspectionProfiles
│ ├── Project_Default.xml
│ └── profiles_settings.xml
├── libraries
│ └── Generated_files.xml
├── misc.xml
├── modules.xml
├── scopes
│ └── scope_settings.xml
├── vcs.xml
└── watcherTasks.xml
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── index.html
├── samples
├── animal.ts
├── greeter.ts
└── raytracer.ts
├── scripts
├── AutoComplete.js
├── AutoComplete.ts
├── AutoCompleteView.js
├── AutoCompleteView.ts
├── CompletionService.js
├── CompletionService.ts
├── EditorPosition.js
├── EditorPosition.ts
├── globals.d.ts
├── lib
│ ├── ace
│ │ ├── ace.js
│ │ ├── anchor.js
│ │ ├── anchor_test.js
│ │ ├── apply_delta.js
│ │ ├── autocomplete.js
│ │ ├── autocomplete
│ │ │ ├── popup.js
│ │ │ ├── text_completer.js
│ │ │ └── util.js
│ │ ├── background_tokenizer.js
│ │ ├── background_tokenizer_test.js
│ │ ├── commands
│ │ │ ├── command_manager.js
│ │ │ ├── command_manager_test.js
│ │ │ ├── default_commands.js
│ │ │ ├── incremental_search_commands.js
│ │ │ ├── multi_select_commands.js
│ │ │ └── occur_commands.js
│ │ ├── config.js
│ │ ├── config_test.js
│ │ ├── css
│ │ │ ├── codefolding-fold-button-states.png
│ │ │ ├── editor.css
│ │ │ └── expand-marker.png
│ │ ├── document.js
│ │ ├── document_test.js
│ │ ├── edit_session.js
│ │ ├── edit_session
│ │ │ ├── bracket_match.js
│ │ │ ├── fold.js
│ │ │ ├── fold_line.js
│ │ │ └── folding.js
│ │ ├── edit_session_test.js
│ │ ├── editor.js
│ │ ├── editor_change_document_test.js
│ │ ├── editor_highlight_selected_word_test.js
│ │ ├── editor_navigation_test.js
│ │ ├── editor_text_edit_test.js
│ │ ├── ext
│ │ │ ├── beautify.js
│ │ │ ├── beautify
│ │ │ │ └── php_rules.js
│ │ │ ├── chromevox.js
│ │ │ ├── elastic_tabstops_lite.js
│ │ │ ├── emmet.js
│ │ │ ├── error_marker.js
│ │ │ ├── keybinding_menu.js
│ │ │ ├── language_tools.js
│ │ │ ├── linking.js
│ │ │ ├── menu_tools
│ │ │ │ ├── add_editor_menu_options.js
│ │ │ │ ├── element_generator.js
│ │ │ │ ├── generate_settings_menu.js
│ │ │ │ ├── get_editor_keyboard_shortcuts.js
│ │ │ │ ├── get_set_functions.js
│ │ │ │ ├── overlay_page.js
│ │ │ │ └── settings_menu.css
│ │ │ ├── modelist.js
│ │ │ ├── old_ie.js
│ │ │ ├── old_ie_test.js
│ │ │ ├── searchbox.css
│ │ │ ├── searchbox.js
│ │ │ ├── settings_menu.js
│ │ │ ├── spellcheck.js
│ │ │ ├── split.js
│ │ │ ├── static.css
│ │ │ ├── static_highlight.js
│ │ │ ├── static_highlight_test.js
│ │ │ ├── statusbar.js
│ │ │ ├── textarea.js
│ │ │ ├── themelist.js
│ │ │ ├── whitespace.js
│ │ │ └── whitespace_test.js
│ │ ├── incremental_search.js
│ │ ├── incremental_search_test.js
│ │ ├── keyboard
│ │ │ ├── emacs.js
│ │ │ ├── emacs_test.js
│ │ │ ├── hash_handler.js
│ │ │ ├── keybinding.js
│ │ │ ├── keybinding_test.js
│ │ │ ├── state_handler.js
│ │ │ ├── textarea.js
│ │ │ ├── textinput.js
│ │ │ ├── vim.js
│ │ │ └── vim_test.js
│ │ ├── layer
│ │ │ ├── cursor.js
│ │ │ ├── font_metrics.js
│ │ │ ├── gutter.js
│ │ │ ├── marker.js
│ │ │ ├── text.js
│ │ │ └── text_test.js
│ │ ├── lib
│ │ │ ├── app_config.js
│ │ │ ├── dom.js
│ │ │ ├── es5-shim.js
│ │ │ ├── event.js
│ │ │ ├── event_emitter.js
│ │ │ ├── event_emitter_test.js
│ │ │ ├── fixoldbrowsers.js
│ │ │ ├── keys.js
│ │ │ ├── lang.js
│ │ │ ├── net.js
│ │ │ ├── oop.js
│ │ │ ├── regexp.js
│ │ │ └── useragent.js
│ │ ├── line_widgets.js
│ │ ├── mode
│ │ │ ├── _test
│ │ │ │ ├── Readme.md
│ │ │ │ ├── highlight_rules_test.js
│ │ │ │ ├── package.json
│ │ │ │ ├── text_asciidoc.txt
│ │ │ │ ├── text_coffee.txt
│ │ │ │ ├── text_curly.txt
│ │ │ │ ├── text_html.txt
│ │ │ │ ├── text_javascript.txt
│ │ │ │ ├── text_livescript.txt
│ │ │ │ ├── text_lucene.txt
│ │ │ │ ├── text_markdown.txt
│ │ │ │ ├── text_php.txt
│ │ │ │ ├── text_ruby.txt
│ │ │ │ ├── text_xml.txt
│ │ │ │ ├── tokens_abap.json
│ │ │ │ ├── tokens_abc.json
│ │ │ │ ├── tokens_actionscript.json
│ │ │ │ ├── tokens_ada.json
│ │ │ │ ├── tokens_asciidoc.json
│ │ │ │ ├── tokens_assembly_x86.json
│ │ │ │ ├── tokens_autohotkey.json
│ │ │ │ ├── tokens_batchfile.json
│ │ │ │ ├── tokens_c9search.json
│ │ │ │ ├── tokens_c_cpp.json
│ │ │ │ ├── tokens_cirru.json
│ │ │ │ ├── tokens_clojure.json
│ │ │ │ ├── tokens_cobol.json
│ │ │ │ ├── tokens_coffee.json
│ │ │ │ ├── tokens_coldfusion.json
│ │ │ │ ├── tokens_csharp.json
│ │ │ │ ├── tokens_css.json
│ │ │ │ ├── tokens_curly.json
│ │ │ │ ├── tokens_d.json
│ │ │ │ ├── tokens_dart.json
│ │ │ │ ├── tokens_diff.json
│ │ │ │ ├── tokens_dot.json
│ │ │ │ ├── tokens_eiffel.json
│ │ │ │ ├── tokens_ejs.json
│ │ │ │ ├── tokens_elixir.json
│ │ │ │ ├── tokens_elm.json
│ │ │ │ ├── tokens_erlang.json
│ │ │ │ ├── tokens_forth.json
│ │ │ │ ├── tokens_ftl.json
│ │ │ │ ├── tokens_gcode.json
│ │ │ │ ├── tokens_gherkin.json
│ │ │ │ ├── tokens_gitignore.json
│ │ │ │ ├── tokens_glsl.json
│ │ │ │ ├── tokens_golang.json
│ │ │ │ ├── tokens_groovy.json
│ │ │ │ ├── tokens_haml.json
│ │ │ │ ├── tokens_handlebars.json
│ │ │ │ ├── tokens_haskell.json
│ │ │ │ ├── tokens_haxe.json
│ │ │ │ ├── tokens_html.json
│ │ │ │ ├── tokens_html_ruby.json
│ │ │ │ ├── tokens_ini.json
│ │ │ │ ├── tokens_io.json
│ │ │ │ ├── tokens_jack.json
│ │ │ │ ├── tokens_jade.json
│ │ │ │ ├── tokens_java.json
│ │ │ │ ├── tokens_javascript.json
│ │ │ │ ├── tokens_json.json
│ │ │ │ ├── tokens_jsoniq.json
│ │ │ │ ├── tokens_jsp.json
│ │ │ │ ├── tokens_jsx.json
│ │ │ │ ├── tokens_julia.json
│ │ │ │ ├── tokens_latex.json
│ │ │ │ ├── tokens_less.json
│ │ │ │ ├── tokens_liquid.json
│ │ │ │ ├── tokens_lisp.json
│ │ │ │ ├── tokens_livescript.json
│ │ │ │ ├── tokens_logiql.json
│ │ │ │ ├── tokens_lsl.json
│ │ │ │ ├── tokens_lua.json
│ │ │ │ ├── tokens_luapage.json
│ │ │ │ ├── tokens_lucene.json
│ │ │ │ ├── tokens_markdown.json
│ │ │ │ ├── tokens_mask.json
│ │ │ │ ├── tokens_matlab.json
│ │ │ │ ├── tokens_mel.json
│ │ │ │ ├── tokens_mushcode.json
│ │ │ │ ├── tokens_mysql.json
│ │ │ │ ├── tokens_nix.json
│ │ │ │ ├── tokens_objectivec.json
│ │ │ │ ├── tokens_ocaml.json
│ │ │ │ ├── tokens_pascal.json
│ │ │ │ ├── tokens_perl.json
│ │ │ │ ├── tokens_pgsql.json
│ │ │ │ ├── tokens_php.json
│ │ │ │ ├── tokens_powershell.json
│ │ │ │ ├── tokens_prolog.json
│ │ │ │ ├── tokens_properties.json
│ │ │ │ ├── tokens_protobuf.json
│ │ │ │ ├── tokens_python.json
│ │ │ │ ├── tokens_r.json
│ │ │ │ ├── tokens_rdoc.json
│ │ │ │ ├── tokens_rhtml.json
│ │ │ │ ├── tokens_ruby.json
│ │ │ │ ├── tokens_rust.json
│ │ │ │ ├── tokens_sass.json
│ │ │ │ ├── tokens_scad.json
│ │ │ │ ├── tokens_scala.json
│ │ │ │ ├── tokens_scheme.json
│ │ │ │ ├── tokens_scss.json
│ │ │ │ ├── tokens_sh.json
│ │ │ │ ├── tokens_sjs.json
│ │ │ │ ├── tokens_smarty.json
│ │ │ │ ├── tokens_snippets.json
│ │ │ │ ├── tokens_soy_template.json
│ │ │ │ ├── tokens_space.json
│ │ │ │ ├── tokens_sql.json
│ │ │ │ ├── tokens_stylus.json
│ │ │ │ ├── tokens_svg.json
│ │ │ │ ├── tokens_tcl.json
│ │ │ │ ├── tokens_tex.json
│ │ │ │ ├── tokens_text.json
│ │ │ │ ├── tokens_textile.json
│ │ │ │ ├── tokens_toml.json
│ │ │ │ ├── tokens_twig.json
│ │ │ │ ├── tokens_typescript.json
│ │ │ │ ├── tokens_vala.json
│ │ │ │ ├── tokens_vbscript.json
│ │ │ │ ├── tokens_velocity.json
│ │ │ │ ├── tokens_verilog.json
│ │ │ │ ├── tokens_vhdl.json
│ │ │ │ ├── tokens_xml.json
│ │ │ │ ├── tokens_xquery.json
│ │ │ │ └── tokens_yaml.json
│ │ │ ├── abap.js
│ │ │ ├── abap_highlight_rules.js
│ │ │ ├── abc.js
│ │ │ ├── abc_highlight_rules.js
│ │ │ ├── actionscript.js
│ │ │ ├── actionscript_highlight_rules.js
│ │ │ ├── ada.js
│ │ │ ├── ada_highlight_rules.js
│ │ │ ├── apache_conf.js
│ │ │ ├── apache_conf_highlight_rules.js
│ │ │ ├── applescript.js
│ │ │ ├── applescript_highlight_rules.js
│ │ │ ├── asciidoc.js
│ │ │ ├── asciidoc_highlight_rules.js
│ │ │ ├── assembly_x86.js
│ │ │ ├── assembly_x86_highlight_rules.js
│ │ │ ├── autohotkey.js
│ │ │ ├── autohotkey_highlight_rules.js
│ │ │ ├── batchfile.js
│ │ │ ├── batchfile_highlight_rules.js
│ │ │ ├── behaviour.js
│ │ │ ├── behaviour
│ │ │ │ ├── behaviour_test.js
│ │ │ │ ├── css.js
│ │ │ │ ├── cstyle.js
│ │ │ │ ├── html.js
│ │ │ │ ├── xml.js
│ │ │ │ └── xquery.js
│ │ │ ├── c9search.js
│ │ │ ├── c9search_highlight_rules.js
│ │ │ ├── c_cpp.js
│ │ │ ├── c_cpp_highlight_rules.js
│ │ │ ├── cirru.js
│ │ │ ├── cirru_highlight_rules.js
│ │ │ ├── clojure.js
│ │ │ ├── clojure_highlight_rules.js
│ │ │ ├── cobol.js
│ │ │ ├── cobol_highlight_rules.js
│ │ │ ├── coffee.js
│ │ │ ├── coffee
│ │ │ │ ├── coffee-script.js
│ │ │ │ ├── helpers.js
│ │ │ │ ├── lexer.js
│ │ │ │ ├── nodes.js
│ │ │ │ ├── parser.js
│ │ │ │ ├── parser_test.js
│ │ │ │ ├── rewriter.js
│ │ │ │ └── scope.js
│ │ │ ├── coffee_highlight_rules.js
│ │ │ ├── coffee_worker.js
│ │ │ ├── coldfusion.js
│ │ │ ├── coldfusion_highlight_rules.js
│ │ │ ├── coldfusion_test.js
│ │ │ ├── csharp.js
│ │ │ ├── csharp_highlight_rules.js
│ │ │ ├── css.js
│ │ │ ├── css
│ │ │ │ └── csslint.js
│ │ │ ├── css_highlight_rules.js
│ │ │ ├── css_test.js
│ │ │ ├── css_worker.js
│ │ │ ├── css_worker_test.js
│ │ │ ├── curly.js
│ │ │ ├── curly_highlight_rules.js
│ │ │ ├── d.js
│ │ │ ├── d_highlight_rules.js
│ │ │ ├── dart.js
│ │ │ ├── dart_highlight_rules.js
│ │ │ ├── diff.js
│ │ │ ├── diff_highlight_rules.js
│ │ │ ├── django.js
│ │ │ ├── doc_comment_highlight_rules.js
│ │ │ ├── dockerfile.js
│ │ │ ├── dockerfile_highlight_rules.js
│ │ │ ├── dot.js
│ │ │ ├── dot_highlight_rules.js
│ │ │ ├── eiffel.js
│ │ │ ├── eiffel_highlight_rules.js
│ │ │ ├── ejs.js
│ │ │ ├── elixir.js
│ │ │ ├── elixir_highlight_rules.js
│ │ │ ├── elm.js
│ │ │ ├── elm_highlight_rules.js
│ │ │ ├── erlang.js
│ │ │ ├── erlang_highlight_rules.js
│ │ │ ├── folding
│ │ │ │ ├── asciidoc.js
│ │ │ │ ├── c9search.js
│ │ │ │ ├── coffee.js
│ │ │ │ ├── coffee_test.js
│ │ │ │ ├── csharp.js
│ │ │ │ ├── cstyle.js
│ │ │ │ ├── cstyle_test.js
│ │ │ │ ├── diff.js
│ │ │ │ ├── fold_mode.js
│ │ │ │ ├── html.js
│ │ │ │ ├── html_test.js
│ │ │ │ ├── ini.js
│ │ │ │ ├── latex.js
│ │ │ │ ├── lua.js
│ │ │ │ ├── markdown.js
│ │ │ │ ├── mixed.js
│ │ │ │ ├── pythonic.js
│ │ │ │ ├── pythonic_test.js
│ │ │ │ ├── sqlserver.js
│ │ │ │ ├── velocity.js
│ │ │ │ ├── xml.js
│ │ │ │ └── xml_test.js
│ │ │ ├── forth.js
│ │ │ ├── forth_highlight_rules.js
│ │ │ ├── ftl.js
│ │ │ ├── ftl_highlight_rules.js
│ │ │ ├── gcode.js
│ │ │ ├── gcode_highlight_rules.js
│ │ │ ├── gherkin.js
│ │ │ ├── gherkin_highlight_rules.js
│ │ │ ├── gitignore.js
│ │ │ ├── gitignore_highlight_rules.js
│ │ │ ├── glsl.js
│ │ │ ├── glsl_highlight_rules.js
│ │ │ ├── golang.js
│ │ │ ├── golang_highlight_rules.js
│ │ │ ├── groovy.js
│ │ │ ├── groovy_highlight_rules.js
│ │ │ ├── haml.js
│ │ │ ├── haml_highlight_rules.js
│ │ │ ├── handlebars.js
│ │ │ ├── handlebars_highlight_rules.js
│ │ │ ├── haskell.js
│ │ │ ├── haskell_highlight_rules.js
│ │ │ ├── haxe.js
│ │ │ ├── haxe_highlight_rules.js
│ │ │ ├── html.js
│ │ │ ├── html
│ │ │ │ └── saxparser.js
│ │ │ ├── html_completions.js
│ │ │ ├── html_highlight_rules.js
│ │ │ ├── html_ruby.js
│ │ │ ├── html_ruby_highlight_rules.js
│ │ │ ├── html_test.js
│ │ │ ├── html_worker.js
│ │ │ ├── ini.js
│ │ │ ├── ini_highlight_rules.js
│ │ │ ├── io.js
│ │ │ ├── io_highlight_rules.js
│ │ │ ├── jack.js
│ │ │ ├── jack_highlight_rules.js
│ │ │ ├── jade.js
│ │ │ ├── jade_highlight_rules.js
│ │ │ ├── java.js
│ │ │ ├── java_highlight_rules.js
│ │ │ ├── javascript.js
│ │ │ ├── javascript
│ │ │ │ └── jshint.js
│ │ │ ├── javascript_highlight_rules.js
│ │ │ ├── javascript_test.js
│ │ │ ├── javascript_worker.js
│ │ │ ├── javascript_worker_test.js
│ │ │ ├── js_regex_highlight_rules.js
│ │ │ ├── json.js
│ │ │ ├── json
│ │ │ │ └── json_parse.js
│ │ │ ├── json_highlight_rules.js
│ │ │ ├── json_worker.js
│ │ │ ├── json_worker_test.js
│ │ │ ├── jsoniq.js
│ │ │ ├── jsp.js
│ │ │ ├── jsp_highlight_rules.js
│ │ │ ├── jsx.js
│ │ │ ├── jsx_highlight_rules.js
│ │ │ ├── julia.js
│ │ │ ├── julia_highlight_rules.js
│ │ │ ├── latex.js
│ │ │ ├── latex_highlight_rules.js
│ │ │ ├── lean.js
│ │ │ ├── lean_highlight_rules.js
│ │ │ ├── less.js
│ │ │ ├── less_highlight_rules.js
│ │ │ ├── liquid.js
│ │ │ ├── liquid_highlight_rules.js
│ │ │ ├── lisp.js
│ │ │ ├── lisp_highlight_rules.js
│ │ │ ├── livescript.js
│ │ │ ├── logiql.js
│ │ │ ├── logiql_highlight_rules.js
│ │ │ ├── logiql_test.js
│ │ │ ├── lsl.js
│ │ │ ├── lsl_highlight_rules.js
│ │ │ ├── lua.js
│ │ │ ├── lua
│ │ │ │ └── luaparse.js
│ │ │ ├── lua_highlight_rules.js
│ │ │ ├── lua_worker.js
│ │ │ ├── luapage.js
│ │ │ ├── luapage_highlight_rules.js
│ │ │ ├── lucene.js
│ │ │ ├── lucene_highlight_rules.js
│ │ │ ├── makefile.js
│ │ │ ├── makefile_highlight_rules.js
│ │ │ ├── markdown.js
│ │ │ ├── markdown_highlight_rules.js
│ │ │ ├── mask.js
│ │ │ ├── mask_highlight_rules.js
│ │ │ ├── matching_brace_outdent.js
│ │ │ ├── matching_parens_outdent.js
│ │ │ ├── matlab.js
│ │ │ ├── matlab_highlight_rules.js
│ │ │ ├── mel.js
│ │ │ ├── mel_highlight_rules.js
│ │ │ ├── mushcode.js
│ │ │ ├── mushcode_highlight_rules.js
│ │ │ ├── mysql.js
│ │ │ ├── mysql_highlight_rules.js
│ │ │ ├── nix.js
│ │ │ ├── nix_highlight_rules.js
│ │ │ ├── objectivec.js
│ │ │ ├── objectivec_highlight_rules.js
│ │ │ ├── ocaml.js
│ │ │ ├── ocaml_highlight_rules.js
│ │ │ ├── pascal.js
│ │ │ ├── pascal_highlight_rules.js
│ │ │ ├── perl.js
│ │ │ ├── perl_highlight_rules.js
│ │ │ ├── pgsql.js
│ │ │ ├── pgsql_highlight_rules.js
│ │ │ ├── php.js
│ │ │ ├── php
│ │ │ │ └── php.js
│ │ │ ├── php_highlight_rules.js
│ │ │ ├── php_test.js
│ │ │ ├── php_worker.js
│ │ │ ├── plain_text.js
│ │ │ ├── plain_text_test.js
│ │ │ ├── powershell.js
│ │ │ ├── powershell_highlight_rules.js
│ │ │ ├── praat.js
│ │ │ ├── praat_highlight_rules.js
│ │ │ ├── prolog.js
│ │ │ ├── prolog_highlight_rules.js
│ │ │ ├── properties.js
│ │ │ ├── properties_highlight_rules.js
│ │ │ ├── protobuf.js
│ │ │ ├── protobuf_highlight_rules.js
│ │ │ ├── python.js
│ │ │ ├── python_highlight_rules.js
│ │ │ ├── python_test.js
│ │ │ ├── r.js
│ │ │ ├── r_highlight_rules.js
│ │ │ ├── rdoc.js
│ │ │ ├── rdoc_highlight_rules.js
│ │ │ ├── rhtml.js
│ │ │ ├── rhtml_highlight_rules.js
│ │ │ ├── ruby.js
│ │ │ ├── ruby_highlight_rules.js
│ │ │ ├── ruby_test.js
│ │ │ ├── rust.js
│ │ │ ├── rust_highlight_rules.js
│ │ │ ├── sass.js
│ │ │ ├── sass_highlight_rules.js
│ │ │ ├── scad.js
│ │ │ ├── scad_highlight_rules.js
│ │ │ ├── scala.js
│ │ │ ├── scala_highlight_rules.js
│ │ │ ├── scheme.js
│ │ │ ├── scheme_highlight_rules.js
│ │ │ ├── scss.js
│ │ │ ├── scss_highlight_rules.js
│ │ │ ├── sh.js
│ │ │ ├── sh_highlight_rules.js
│ │ │ ├── sjs.js
│ │ │ ├── sjs_highlight_rules.js
│ │ │ ├── smarty.js
│ │ │ ├── smarty_highlight_rules.js
│ │ │ ├── snippets.js
│ │ │ ├── soy_template.js
│ │ │ ├── soy_template_highlight_rules.js
│ │ │ ├── space.js
│ │ │ ├── space_highlight_rules.js
│ │ │ ├── sql.js
│ │ │ ├── sql_highlight_rules.js
│ │ │ ├── sqlserver.js
│ │ │ ├── sqlserver_highlight_rules.js
│ │ │ ├── stylus.js
│ │ │ ├── stylus_highlight_rules.js
│ │ │ ├── svg.js
│ │ │ ├── svg_highlight_rules.js
│ │ │ ├── tcl.js
│ │ │ ├── tcl_highlight_rules.js
│ │ │ ├── tex.js
│ │ │ ├── tex_highlight_rules.js
│ │ │ ├── text.js
│ │ │ ├── text_highlight_rules.js
│ │ │ ├── text_test.js
│ │ │ ├── textile.js
│ │ │ ├── textile_highlight_rules.js
│ │ │ ├── toml.js
│ │ │ ├── toml_highlight_rules.js
│ │ │ ├── twig.js
│ │ │ ├── twig_highlight_rules.js
│ │ │ ├── typescript.js
│ │ │ ├── typescript
│ │ │ │ ├── DocumentPositionUtil.js
│ │ │ │ ├── DocumentPositionUtil.ts
│ │ │ │ ├── languageServiceHost.js
│ │ │ │ ├── languageServiceHost.ts
│ │ │ │ ├── tsProject.js
│ │ │ │ ├── tsProject.ts
│ │ │ │ ├── typescriptService.d.ts
│ │ │ │ ├── typescriptServices.js
│ │ │ │ ├── typescript_create_worker.js
│ │ │ │ ├── typescript_worker.js
│ │ │ │ └── typescript_worker.ts
│ │ │ ├── typescript_highlight_rules.js
│ │ │ ├── vala.js
│ │ │ ├── vala_highlight_rules.js
│ │ │ ├── vbscript.js
│ │ │ ├── vbscript_highlight_rules.js
│ │ │ ├── velocity.js
│ │ │ ├── velocity_highlight_rules.js
│ │ │ ├── verilog.js
│ │ │ ├── verilog_highlight_rules.js
│ │ │ ├── vhdl.js
│ │ │ ├── vhdl_highlight_rules.js
│ │ │ ├── xml.js
│ │ │ ├── xml
│ │ │ │ ├── dom-parser.js
│ │ │ │ ├── dom.js
│ │ │ │ └── sax.js
│ │ │ ├── xml_highlight_rules.js
│ │ │ ├── xml_test.js
│ │ │ ├── xml_worker.js
│ │ │ ├── xquery.js
│ │ │ ├── xquery
│ │ │ │ ├── Readme.md
│ │ │ │ ├── jsoniq_lexer.js
│ │ │ │ ├── xqlint.js
│ │ │ │ └── xquery_lexer.js
│ │ │ ├── xquery_worker.js
│ │ │ ├── yaml.js
│ │ │ └── yaml_highlight_rules.js
│ │ ├── model
│ │ │ └── editor.js
│ │ ├── mouse
│ │ │ ├── default_gutter_handler.js
│ │ │ ├── default_handlers.js
│ │ │ ├── dragdrop_handler.js
│ │ │ ├── fold_handler.js
│ │ │ ├── mouse_event.js
│ │ │ ├── mouse_handler.js
│ │ │ ├── mouse_handler_test.js
│ │ │ └── multi_select_handler.js
│ │ ├── multi_select.js
│ │ ├── multi_select_test.js
│ │ ├── occur.js
│ │ ├── occur_test.js
│ │ ├── placeholder.js
│ │ ├── placeholder_test.js
│ │ ├── range.js
│ │ ├── range_list.js
│ │ ├── range_list_test.js
│ │ ├── range_test.js
│ │ ├── renderloop.js
│ │ ├── requirejs
│ │ │ ├── text.js
│ │ │ └── text_build.js
│ │ ├── scrollbar.js
│ │ ├── search.js
│ │ ├── search_highlight.js
│ │ ├── search_test.js
│ │ ├── selection.js
│ │ ├── selection_test.js
│ │ ├── snippets.js
│ │ ├── snippets
│ │ │ ├── _.snippets
│ │ │ ├── _all_modes.js
│ │ │ ├── _all_modes.snippets
│ │ │ ├── abap.js
│ │ │ ├── abap.snippets
│ │ │ ├── abc.js
│ │ │ ├── abc.snippets
│ │ │ ├── actionscript.js
│ │ │ ├── actionscript.snippets
│ │ │ ├── ada.js
│ │ │ ├── ada.snippets
│ │ │ ├── all_modes.js
│ │ │ ├── all_modes.snippets
│ │ │ ├── apache.snippets
│ │ │ ├── apache_conf.js
│ │ │ ├── apache_conf.snippets
│ │ │ ├── applescript.js
│ │ │ ├── applescript.snippets
│ │ │ ├── asciidoc.js
│ │ │ ├── asciidoc.snippets
│ │ │ ├── assembly_x86.js
│ │ │ ├── assembly_x86.snippets
│ │ │ ├── autohotkey.js
│ │ │ ├── autohotkey.snippets
│ │ │ ├── autoit.snippets
│ │ │ ├── batchfile.js
│ │ │ ├── batchfile.snippets
│ │ │ ├── c.snippets
│ │ │ ├── c9search.js
│ │ │ ├── c9search.snippets
│ │ │ ├── c_cpp.js
│ │ │ ├── c_cpp.snippets
│ │ │ ├── chef.snippets
│ │ │ ├── cirru.js
│ │ │ ├── cirru.snippets
│ │ │ ├── clojure.js
│ │ │ ├── clojure.snippets
│ │ │ ├── cmake.snippets
│ │ │ ├── cobol.js
│ │ │ ├── cobol.snippets
│ │ │ ├── coffee.js
│ │ │ ├── coffee.snippets
│ │ │ ├── coldfusion.js
│ │ │ ├── coldfusion.snippets
│ │ │ ├── cs.snippets
│ │ │ ├── csharp.js
│ │ │ ├── csharp.snippets
│ │ │ ├── css.js
│ │ │ ├── css.snippets
│ │ │ ├── curly.js
│ │ │ ├── curly.snippets
│ │ │ ├── d.js
│ │ │ ├── d.snippets
│ │ │ ├── dart.js
│ │ │ ├── dart.snippets
│ │ │ ├── diff.js
│ │ │ ├── diff.snippets
│ │ │ ├── django.js
│ │ │ ├── django.snippets
│ │ │ ├── dockerfile.js
│ │ │ ├── dockerfile.snippets
│ │ │ ├── dot.js
│ │ │ ├── dot.snippets
│ │ │ ├── dummy.js
│ │ │ ├── dummy_syntax.js
│ │ │ ├── eiffel.js
│ │ │ ├── eiffel.snippets
│ │ │ ├── ejs.js
│ │ │ ├── ejs.snippets
│ │ │ ├── elixir.js
│ │ │ ├── elixir.snippets
│ │ │ ├── elm.js
│ │ │ ├── elm.snippets
│ │ │ ├── erlang.js
│ │ │ ├── erlang.snippets
│ │ │ ├── eruby.snippets
│ │ │ ├── falcon.snippets
│ │ │ ├── forth.js
│ │ │ ├── forth.snippets
│ │ │ ├── ftl.js
│ │ │ ├── ftl.snippets
│ │ │ ├── gcode.js
│ │ │ ├── gcode.snippets
│ │ │ ├── gherkin.js
│ │ │ ├── gherkin.snippets
│ │ │ ├── gitignore.js
│ │ │ ├── gitignore.snippets
│ │ │ ├── glsl.js
│ │ │ ├── glsl.snippets
│ │ │ ├── go.snippets
│ │ │ ├── golang.js
│ │ │ ├── golang.snippets
│ │ │ ├── groovy.js
│ │ │ ├── groovy.snippets
│ │ │ ├── haml.js
│ │ │ ├── haml.snippets
│ │ │ ├── handlebars.js
│ │ │ ├── handlebars.snippets
│ │ │ ├── haskell.js
│ │ │ ├── haskell.snippets
│ │ │ ├── haxe.js
│ │ │ ├── haxe.snippets
│ │ │ ├── html.js
│ │ │ ├── html.snippets
│ │ │ ├── html_ruby.js
│ │ │ ├── html_ruby.snippets
│ │ │ ├── htmldjango.snippets
│ │ │ ├── htmltornado.snippets
│ │ │ ├── ini.js
│ │ │ ├── ini.snippets
│ │ │ ├── io.js
│ │ │ ├── io.snippets
│ │ │ ├── jack.js
│ │ │ ├── jack.snippets
│ │ │ ├── jade.js
│ │ │ ├── jade.snippets
│ │ │ ├── java.js
│ │ │ ├── java.snippets
│ │ │ ├── javascript-jquery.snippets
│ │ │ ├── javascript.js
│ │ │ ├── javascript.snippets
│ │ │ ├── json.js
│ │ │ ├── json.snippets
│ │ │ ├── jsoniq.js
│ │ │ ├── jsoniq.snippets
│ │ │ ├── jsp.js
│ │ │ ├── jsp.snippets
│ │ │ ├── jsx.js
│ │ │ ├── jsx.snippets
│ │ │ ├── julia.js
│ │ │ ├── julia.snippets
│ │ │ ├── latex.js
│ │ │ ├── latex.snippets
│ │ │ ├── lean.js
│ │ │ ├── lean.snippets
│ │ │ ├── ledger.snippets
│ │ │ ├── less.js
│ │ │ ├── less.snippets
│ │ │ ├── liquid.js
│ │ │ ├── liquid.snippets
│ │ │ ├── lisp.js
│ │ │ ├── lisp.snippets
│ │ │ ├── livescript.js
│ │ │ ├── livescript.snippets
│ │ │ ├── logiql.js
│ │ │ ├── logiql.snippets
│ │ │ ├── lsl.js
│ │ │ ├── lsl.snippets
│ │ │ ├── lua.js
│ │ │ ├── lua.snippets
│ │ │ ├── luapage.js
│ │ │ ├── luapage.snippets
│ │ │ ├── lucene.js
│ │ │ ├── lucene.snippets
│ │ │ ├── makefile.js
│ │ │ ├── makefile.snippets
│ │ │ ├── mako.snippets
│ │ │ ├── markdown.js
│ │ │ ├── markdown.snippets
│ │ │ ├── matlab.js
│ │ │ ├── matlab.snippets
│ │ │ ├── mel.js
│ │ │ ├── mel.snippets
│ │ │ ├── mushcode.js
│ │ │ ├── mushcode.snippets
│ │ │ ├── mushcode_high_rules.js
│ │ │ ├── mushcode_high_rules.snippets
│ │ │ ├── mysql.js
│ │ │ ├── mysql.snippets
│ │ │ ├── nix.js
│ │ │ ├── nix.snippets
│ │ │ ├── objc.snippets
│ │ │ ├── objectivec.js
│ │ │ ├── objectivec.snippets
│ │ │ ├── ocaml.js
│ │ │ ├── ocaml.snippets
│ │ │ ├── pascal.js
│ │ │ ├── pascal.snippets
│ │ │ ├── perl.js
│ │ │ ├── perl.snippets
│ │ │ ├── pgsql.js
│ │ │ ├── pgsql.snippets
│ │ │ ├── php.js
│ │ │ ├── php.snippets
│ │ │ ├── plain_text.js
│ │ │ ├── plain_text.snippets
│ │ │ ├── powershell.js
│ │ │ ├── powershell.snippets
│ │ │ ├── praat.js
│ │ │ ├── praat.snippets
│ │ │ ├── prolog.js
│ │ │ ├── prolog.snippets
│ │ │ ├── properties.js
│ │ │ ├── properties.snippets
│ │ │ ├── protobuf.js
│ │ │ ├── protobuf.snippets
│ │ │ ├── python.js
│ │ │ ├── python.snippets
│ │ │ ├── r.js
│ │ │ ├── r.snippets
│ │ │ ├── rdoc.js
│ │ │ ├── rdoc.snippets
│ │ │ ├── rhtml.js
│ │ │ ├── rhtml.snippets
│ │ │ ├── rst.snippets
│ │ │ ├── ruby.js
│ │ │ ├── ruby.snippets
│ │ │ ├── rust.js
│ │ │ ├── rust.snippets
│ │ │ ├── sass.js
│ │ │ ├── sass.snippets
│ │ │ ├── scad.js
│ │ │ ├── scad.snippets
│ │ │ ├── scala.js
│ │ │ ├── scala.snippets
│ │ │ ├── scheme.js
│ │ │ ├── scheme.snippets
│ │ │ ├── scss.js
│ │ │ ├── scss.snippets
│ │ │ ├── sh.js
│ │ │ ├── sh.snippets
│ │ │ ├── sjs.js
│ │ │ ├── sjs.snippets
│ │ │ ├── smarty.js
│ │ │ ├── smarty.snippets
│ │ │ ├── snippets.js
│ │ │ ├── snippets.snippets
│ │ │ ├── soy_template.js
│ │ │ ├── soy_template.snippets
│ │ │ ├── space.js
│ │ │ ├── space.snippets
│ │ │ ├── sql.js
│ │ │ ├── sql.snippets
│ │ │ ├── sqlserver.js
│ │ │ ├── sqlserver.snippets
│ │ │ ├── stylus.js
│ │ │ ├── stylus.snippets
│ │ │ ├── svg.js
│ │ │ ├── svg.snippets
│ │ │ ├── tcl.js
│ │ │ ├── tcl.snippets
│ │ │ ├── tex.js
│ │ │ ├── tex.snippets
│ │ │ ├── text.js
│ │ │ ├── text.snippets
│ │ │ ├── textile.js
│ │ │ ├── textile.snippets
│ │ │ ├── tmsnippet.snippets
│ │ │ ├── toml.js
│ │ │ ├── toml.snippets
│ │ │ ├── twig.js
│ │ │ ├── twig.snippets
│ │ │ ├── typescript.js
│ │ │ ├── typescript.snippets
│ │ │ ├── vala.js
│ │ │ ├── vala.snippets
│ │ │ ├── vbscript.js
│ │ │ ├── vbscript.snippets
│ │ │ ├── velocity.js
│ │ │ ├── velocity.snippets
│ │ │ ├── verilog.js
│ │ │ ├── verilog.snippets
│ │ │ ├── vhdl.js
│ │ │ ├── vhdl.snippets
│ │ │ ├── xml.js
│ │ │ ├── xml.snippets
│ │ │ ├── xquery.js
│ │ │ ├── xquery.snippets
│ │ │ ├── xslt.snippets
│ │ │ ├── yaml.js
│ │ │ └── yaml.snippets
│ │ ├── snippets_test.js
│ │ ├── split.js
│ │ ├── test
│ │ │ ├── all.js
│ │ │ ├── all_browser.js
│ │ │ ├── assertions.js
│ │ │ ├── asyncjs
│ │ │ │ ├── assert.js
│ │ │ │ ├── async.js
│ │ │ │ ├── index.js
│ │ │ │ ├── test.js
│ │ │ │ └── utils.js
│ │ │ ├── benchmark.js
│ │ │ ├── mockdom.js
│ │ │ ├── mockrenderer.js
│ │ │ └── tests.html
│ │ ├── theme
│ │ │ ├── ambiance.css
│ │ │ ├── ambiance.js
│ │ │ ├── chaos.css
│ │ │ ├── chaos.js
│ │ │ ├── chrome.css
│ │ │ ├── chrome.js
│ │ │ ├── clouds.css
│ │ │ ├── clouds.js
│ │ │ ├── clouds_midnight.css
│ │ │ ├── clouds_midnight.js
│ │ │ ├── cobalt.css
│ │ │ ├── cobalt.js
│ │ │ ├── crimson_editor.css
│ │ │ ├── crimson_editor.js
│ │ │ ├── dawn.css
│ │ │ ├── dawn.js
│ │ │ ├── dreamweaver.css
│ │ │ ├── dreamweaver.js
│ │ │ ├── eclipse.css
│ │ │ ├── eclipse.js
│ │ │ ├── github.css
│ │ │ ├── github.js
│ │ │ ├── idle_fingers.css
│ │ │ ├── idle_fingers.js
│ │ │ ├── iplastic.css
│ │ │ ├── iplastic.js
│ │ │ ├── katzenmilch.css
│ │ │ ├── katzenmilch.js
│ │ │ ├── kr_theme.css
│ │ │ ├── kr_theme.js
│ │ │ ├── kuroir.css
│ │ │ ├── kuroir.js
│ │ │ ├── merbivore.css
│ │ │ ├── merbivore.js
│ │ │ ├── merbivore_soft.css
│ │ │ ├── merbivore_soft.js
│ │ │ ├── mono_industrial.css
│ │ │ ├── mono_industrial.js
│ │ │ ├── monokai.css
│ │ │ ├── monokai.js
│ │ │ ├── pastel_on_dark.css
│ │ │ ├── pastel_on_dark.js
│ │ │ ├── solarized_dark.css
│ │ │ ├── solarized_dark.js
│ │ │ ├── solarized_light.css
│ │ │ ├── solarized_light.js
│ │ │ ├── sqlserver.css
│ │ │ ├── sqlserver.js
│ │ │ ├── terminal.css
│ │ │ ├── terminal.js
│ │ │ ├── textmate.css
│ │ │ ├── textmate.js
│ │ │ ├── tomorrow.css
│ │ │ ├── tomorrow.js
│ │ │ ├── tomorrow_night.css
│ │ │ ├── tomorrow_night.js
│ │ │ ├── tomorrow_night_blue.css
│ │ │ ├── tomorrow_night_blue.js
│ │ │ ├── tomorrow_night_bright.css
│ │ │ ├── tomorrow_night_bright.js
│ │ │ ├── tomorrow_night_eighties.css
│ │ │ ├── tomorrow_night_eighties.js
│ │ │ ├── twilight.css
│ │ │ ├── twilight.js
│ │ │ ├── vibrant_ink.css
│ │ │ ├── vibrant_ink.js
│ │ │ ├── xcode.css
│ │ │ └── xcode.js
│ │ ├── token_iterator.js
│ │ ├── token_iterator_test.js
│ │ ├── tokenizer.js
│ │ ├── tokenizer_dev.js
│ │ ├── tokenizer_test.js
│ │ ├── tooltip.js
│ │ ├── undomanager.js
│ │ ├── unicode.js
│ │ ├── virtual_renderer.js
│ │ ├── virtual_renderer_test.js
│ │ └── worker
│ │ │ ├── mirror.js
│ │ │ ├── worker.js
│ │ │ ├── worker_client.js
│ │ │ └── worker_test.js
│ ├── jquery.js
│ └── require.js
├── main.js
├── main.ts
├── tsconfig.json
├── tsd.json
├── typings
│ ├── ace
│ │ └── ace.d.ts
│ └── tsd.d.ts
├── utils.js
└── utils.ts
├── stylesheets
├── bootstrap.min.css
└── style.css
└── typescripts
├── lib.d.ts
└── libOld.d.ts
/.gitignore:
--------------------------------------------------------------------------------
1 | *#
2 | #*
3 | *~
4 | .idea/workspace.xml
5 |
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | TypeScriptEditor
--------------------------------------------------------------------------------
/.idea/TypeScriptEditor.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/dictionaries/bas.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | requirejs
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/libraries/Generated_files.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/watcherTasks.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012 Hitoshi Nakada
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | TypeScript Playground on Ace
2 | ==========================
3 | TypeScript Playground build on ace editor
4 |
5 | http://basarat.github.io/TypeScriptEditor/
6 |
7 | # Goals
8 |
9 | Make it easier for people to create TypeScript playgrounds.
10 | Supports loading of custom definition files. Currently only loads lib.d.ts locally.
11 | For more information see CONTRIBUTING.md
--------------------------------------------------------------------------------
/samples/animal.ts:
--------------------------------------------------------------------------------
1 | class Animal {
2 | constructor(public name) { }
3 | move(meters) {
4 | alert(this.name + " moved " + meters + "m.");
5 | }
6 | }
7 |
8 | class Snake extends Animal {
9 | constructor(name) { super(name); }
10 | move() {
11 | alert("Slithering...");
12 | super.move(5);
13 | }
14 | }
15 |
16 | class Horse extends Animal {
17 | constructor(name) { super(name); }
18 | move() {
19 | alert("Galloping...");
20 | super.move(45);
21 | }
22 | }
23 |
24 | var sam = new Snake("Sammy the Python")
25 | var tom: Animal = new Horse("Tommy the Palomino")
26 |
27 | sam.move()
28 | tom.move(34)
--------------------------------------------------------------------------------
/samples/greeter.ts:
--------------------------------------------------------------------------------
1 | class Greeter {
2 | greeting: string;
3 | constructor (message: string) {
4 | this.greeting = message;
5 | }
6 | greet() {
7 | return "Hello, " + this.greeting;
8 | }
9 | }
10 |
11 | var greeter = new Greeter("world");
12 |
13 | var button = document.createElement('button')
14 | button.innerText = "Say Hello"
15 | button.onclick = function() {
16 | alert(greeter.greet())
17 | }
18 |
19 | document.body.appendChild(button)
20 |
--------------------------------------------------------------------------------
/scripts/CompletionService.js:
--------------------------------------------------------------------------------
1 | define(["require", "exports", './EditorPosition', "./lib/ace/mode/typescript/tsProject"], function (require, exports, EditorPosition_1, tsProject_1) {
2 | var tsProject = tsProject_1.getTSProject();
3 | var CompletionService = (function () {
4 | function CompletionService(editor) {
5 | this.editor = editor;
6 | this.editorPos = new EditorPosition_1.EditorPosition(editor);
7 | }
8 | CompletionService.prototype.getCompilation = function (script, charpos, isMemberCompletion) {
9 | var compInfo = tsProject.languageService.getCompletionsAtPosition(script, charpos);
10 | return compInfo;
11 | };
12 | ;
13 | CompletionService.prototype.getCursorCompilation = function (script, cursor) {
14 | var isMemberCompletion, matches, pos, text;
15 | pos = this.editorPos.getPositionChars(cursor);
16 | text = this.editor.session.getLine(cursor.row).slice(0, cursor.column);
17 | isMemberCompletion = false;
18 | matches = text.match(/\.([a-zA-Z_0-9\$]*$)/);
19 | if (matches && matches.length > 0) {
20 | this.matchText = matches[1];
21 | isMemberCompletion = true;
22 | pos -= this.matchText.length;
23 | }
24 | else {
25 | matches = text.match(/[a-zA-Z_0-9\$]*$/);
26 | this.matchText = matches[0];
27 | }
28 | return this.getCompilation(script, pos, isMemberCompletion);
29 | };
30 | ;
31 | CompletionService.prototype.getCurrentPositionCompilation = function (script) {
32 | return this.getCursorCompilation(script, this.editor.getCursorPosition());
33 | };
34 | ;
35 | return CompletionService;
36 | })();
37 | exports.CompletionService = CompletionService;
38 | });
39 |
--------------------------------------------------------------------------------
/scripts/CompletionService.ts:
--------------------------------------------------------------------------------
1 | import {EditorPosition} from './EditorPosition';
2 | import {getTSProject} from "./lib/ace/mode/typescript/tsProject";
3 | var tsProject = getTSProject();
4 |
5 | export class CompletionService{
6 |
7 | public editorPos: EditorPosition;
8 | public matchText: string;
9 |
10 | constructor(public editor){
11 | this.editorPos = new EditorPosition(editor);
12 | }
13 |
14 | getCompilation (script, charpos, isMemberCompletion) {
15 | var compInfo = tsProject.languageService.getCompletionsAtPosition(script, charpos);
16 | return compInfo;
17 | };
18 |
19 | getCursorCompilation(script, cursor) {
20 | var isMemberCompletion, matches, pos, text:string;
21 | pos = this.editorPos.getPositionChars(cursor);
22 | text = this.editor.session.getLine(cursor.row).slice(0, cursor.column);
23 | isMemberCompletion = false;
24 | matches = text.match(/\.([a-zA-Z_0-9\$]*$)/);
25 |
26 | if (matches && matches.length > 0) {
27 | this.matchText = matches[1];
28 | isMemberCompletion = true;
29 | pos -= this.matchText.length;
30 | } else {
31 | matches = text.match(/[a-zA-Z_0-9\$]*$/);
32 | this.matchText = matches[0];
33 | }
34 | return this.getCompilation(script, pos, isMemberCompletion);
35 | };
36 |
37 | getCurrentPositionCompilation (script) {
38 | return this.getCursorCompilation(script, this.editor.getCursorPosition());
39 | };
40 | }
--------------------------------------------------------------------------------
/scripts/globals.d.ts:
--------------------------------------------------------------------------------
1 | declare var require: any;
2 | declare var $: any;
3 |
4 | // Depends on ace
5 | declare module "ace/ace" {
6 | export = ace;
7 | }
8 |
9 | declare module AceAjax{
10 | interface IEditSession{
11 | // Only present if a worker is being used
12 | $worker: any;
13 | }
14 | }
15 |
16 | declare module "ace/range" {
17 | var ace: {
18 | Range: typeof AceAjax.Range;
19 | };
20 | export = ace;
21 | }
22 |
23 | declare module "ace/lib/lang" {
24 | var ace: { deferredCall };
25 | export = ace;
26 | }
27 |
28 | declare module "ace/keyboard/hash_handler" {
29 | var foo: { HashHandler: any };
30 | export = foo;
31 | }
32 |
33 | declare module "ace/lib/event_emitter" {
34 | var foo: { EventEmitter: any };
35 | export = foo;
36 | }
37 |
38 | declare module "ace/lib/oop" {
39 | var oop:any;
40 | export = oop;
41 | }
42 |
43 | declare module "ace/worker/mirror" {
44 | var foo:{Mirror:any};
45 | export = foo;
46 | }
47 |
48 | declare module "ace/document" {
49 | var foo:{Document:any};
50 | export = foo;
51 | }
52 |
53 | // hopefully we wouldn't need this eventually.
54 | // But the files in the worker are really stingy about relative paths and we are forced to use full paths
55 | declare var define:any;
56 |
--------------------------------------------------------------------------------
/scripts/lib/ace/css/codefolding-fold-button-states.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/css/codefolding-fold-button-states.png
--------------------------------------------------------------------------------
/scripts/lib/ace/css/expand-marker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/css/expand-marker.png
--------------------------------------------------------------------------------
/scripts/lib/ace/ext/menu_tools/settings_menu.css:
--------------------------------------------------------------------------------
1 | #ace_settingsmenu, #kbshortcutmenu {
2 | background-color: #F7F7F7;
3 | color: black;
4 | box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);
5 | padding: 1em 0.5em 2em 1em;
6 | overflow: auto;
7 | position: absolute;
8 | margin: 0;
9 | bottom: 0;
10 | right: 0;
11 | top: 0;
12 | z-index: 9991;
13 | cursor: default;
14 | }
15 |
16 | .ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {
17 | box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);
18 | background-color: rgba(255, 255, 255, 0.6);
19 | color: black;
20 | }
21 |
22 | .ace_optionsMenuEntry:hover {
23 | background-color: rgba(100, 100, 100, 0.1);
24 | -webkit-transition: all 0.5s;
25 | transition: all 0.3s
26 | }
27 |
28 | .ace_closeButton {
29 | background: rgba(245, 146, 146, 0.5);
30 | border: 1px solid #F48A8A;
31 | border-radius: 50%;
32 | padding: 7px;
33 | position: absolute;
34 | right: -8px;
35 | top: -8px;
36 | z-index: 1000;
37 | }
38 | .ace_closeButton{
39 | background: rgba(245, 146, 146, 0.9);
40 | }
41 | .ace_optionsMenuKey {
42 | color: darkslateblue;
43 | font-weight: bold;
44 | }
45 | .ace_optionsMenuCommand {
46 | color: darkcyan;
47 | font-weight: normal;
48 | }
--------------------------------------------------------------------------------
/scripts/lib/ace/ext/split.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 | "use strict";
33 |
34 | /**
35 | * this is experimental, and subject to change, use at your own risk!
36 | */
37 | module.exports = require("../split");
38 |
39 | });
40 |
41 |
--------------------------------------------------------------------------------
/scripts/lib/ace/ext/static.css:
--------------------------------------------------------------------------------
1 | .ace_static_highlight {
2 | font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;
3 | font-size: 12px;
4 | white-space: pre-wrap
5 | }
6 |
7 | .ace_static_highlight .ace_gutter {
8 | width: 2em;
9 | text-align: right;
10 | padding: 0 3px 0 0;
11 | margin-right: 3px;
12 | }
13 |
14 | .ace_static_highlight.ace_show_gutter .ace_line {
15 | padding-left: 2.6em;
16 | }
17 |
18 | .ace_static_highlight .ace_line { position: relative; }
19 |
20 | .ace_static_highlight .ace_gutter-cell {
21 | -moz-user-select: -moz-none;
22 | -khtml-user-select: none;
23 | -webkit-user-select: none;
24 | user-select: none;
25 | top: 0;
26 | bottom: 0;
27 | left: 0;
28 | position: absolute;
29 | }
30 |
31 |
32 | .ace_static_highlight .ace_gutter-cell:before {
33 | content: counter(ace_line, decimal);
34 | counter-increment: ace_line;
35 | }
36 | .ace_static_highlight {
37 | counter-reset: ace_line;
38 | }
39 |
--------------------------------------------------------------------------------
/scripts/lib/ace/ext/statusbar.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 | /** simple statusbar **/
4 | var dom = require("ace/lib/dom");
5 | var lang = require("ace/lib/lang");
6 |
7 | var StatusBar = function(editor, parentNode) {
8 | this.element = dom.createElement("div");
9 | this.element.className = "ace_status-indicator";
10 | this.element.style.cssText = "display: inline-block;";
11 | parentNode.appendChild(this.element);
12 |
13 | var statusUpdate = lang.delayedCall(function(){
14 | this.updateStatus(editor)
15 | }.bind(this));
16 | editor.on("changeStatus", function() {
17 | statusUpdate.schedule(100);
18 | });
19 | editor.on("changeSelection", function() {
20 | statusUpdate.schedule(100);
21 | });
22 | };
23 |
24 | (function(){
25 | this.updateStatus = function(editor) {
26 | var status = [];
27 | function add(str, separator) {
28 | str && status.push(str, separator || "|");
29 | }
30 |
31 | add(editor.keyBinding.getStatusText(editor));
32 | if (editor.commands.recording)
33 | add("REC");
34 |
35 | var c = editor.selection.lead;
36 | add(c.row + ":" + c.column, " ");
37 | if (!editor.selection.isEmpty()) {
38 | var r = editor.getSelectionRange();
39 | add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")");
40 | }
41 | status.pop();
42 | this.element.textContent = status.join("");
43 | };
44 | }).call(StatusBar.prototype);
45 |
46 | exports.StatusBar = StatusBar;
47 |
48 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/lib/fixoldbrowsers.js:
--------------------------------------------------------------------------------
1 | // vim:set ts=4 sts=4 sw=4 st:
2 | // -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
3 | // -- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal Project)
4 | // -- dantman Daniel Friesen Copyright(C) 2010 XXX No License Specified
5 | // -- fschaefer Florian Schäfer Copyright (C) 2010 MIT License
6 | // -- Irakli Gozalishvili Copyright (C) 2010 MIT License
7 |
8 | /*!
9 | Copyright (c) 2009, 280 North Inc. http://280north.com/
10 | MIT License. http://github.com/280north/narwhal/blob/master/README.md
11 | */
12 |
13 | define(function(require, exports, module) {
14 | "use strict";
15 |
16 | require("./regexp");
17 | require("./es5-shim");
18 |
19 | });
20 |
--------------------------------------------------------------------------------
/scripts/lib/ace/lib/net.js:
--------------------------------------------------------------------------------
1 | /*
2 | * based on code from:
3 | *
4 | * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
5 | * Available via the MIT or new BSD license.
6 | * see: http://github.com/jrburke/requirejs for details
7 | */
8 | define(function(require, exports, module) {
9 | "use strict";
10 | var dom = require("./dom");
11 |
12 | exports.get = function (url, callback) {
13 | var xhr = new XMLHttpRequest();
14 | xhr.open('GET', url, true);
15 | xhr.onreadystatechange = function () {
16 | //Do not explicitly handle errors, those should be
17 | //visible via console output in the browser.
18 | if (xhr.readyState === 4) {
19 | callback(xhr.responseText);
20 | }
21 | };
22 | xhr.send(null);
23 | };
24 |
25 | exports.loadScript = function(path, callback) {
26 | var head = dom.getDocumentHead();
27 | var s = document.createElement('script');
28 |
29 | s.src = path;
30 | head.appendChild(s);
31 |
32 | s.onload = s.onreadystatechange = function(_, isAbort) {
33 | if (isAbort || !s.readyState || s.readyState == "loaded" || s.readyState == "complete") {
34 | s = s.onload = s.onreadystatechange = null;
35 | if (!isAbort)
36 | callback();
37 | }
38 | };
39 | };
40 |
41 | /*
42 | * Convert a url into a fully qualified absolute URL
43 | * This function does not work in IE6
44 | */
45 | exports.qualifyURL = function(url) {
46 | var a = document.createElement('a');
47 | a.href = url;
48 | return a.href;
49 | }
50 |
51 | });
52 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/Readme.md:
--------------------------------------------------------------------------------
1 | `tokens_.json` files keep information about correct tokens and tokenizer states for all modes supported by ace.
2 | They are generated from `text_.txt` or `demo/kitchen-sink/doc/*` with
3 |
4 | ```sh
5 | node highlight_rules_test.js -gen
6 | ```
7 |
8 | command.
9 |
10 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ace-mode-creator",
3 | "version": "0.1.0",
4 | "dependencies": {
5 | "connect": "",
6 | "socket.io": ""
7 | }
8 | }
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/text_coffee.txt:
--------------------------------------------------------------------------------
1 | #test: tokenize keyword
2 | for (i 1..2)
3 | #test: tokenize regexp
4 | /"[a]/
5 | #test: tokenize functions
6 | foo = ({args}) ->
7 | foo = ({a1, a2}) ->
8 | foo = ({@a1, a2}) ->
9 | foo : ({args}) ->
10 | foo = ({args}) ->
11 | foo = ({0abc}) ->
12 | foo = ({/abc}) =>
13 | foo = ({abc/}) ->
14 | foo = ({#abc}) ->
15 | foo = ({abc#}) ->
16 | foo = ({)abc}) ->
17 | foo = ({abc)}) ->
18 | foo = ({a{bc}) ->
19 | foo = ({}) ->
20 | foo = ({ }) ->
21 | foo : ({}) ->
22 | foo = (args) ->
23 | foo = (arg1, arg2) ->
24 | foo = (arg1 = 1, arg2 = 'name') ->
25 | foo = (@arg1 = /abc/, arg2 = 'name') ->
26 | #test: tokenize function: invalid case:
27 | foo=(/args) ->
28 | foo = () ->
29 | foo = ( ) ->
30 | foo : ( ) ->
31 | window.foo = (args) ->
32 | foo = ->
33 | foo = ->
34 | foo : ->
35 | #test: tokenize callback function
36 | foo bar: 1, (args) ->
37 | foo = (1, 2 (x) ->
38 | #test: tokenize class
39 | class Foo
40 | class Foo extends Bar
41 | #test: tokenize illegal name property
42 | foo.static.function
43 | #!test tokenize string with interpolation
44 | a = "#{ 22 / 7 + {x: "#{a + b}"} + 2}"
45 | " #{ "" + {} } )"
46 | """heredoc
47 | """
48 | do ->
49 | ###
50 | herecomment
51 | ###
52 | re = /regex/imgy.test ///
53 | heregex # comment
54 | ///imgy
55 | this isnt: `just
56 | JavaScript`
57 | undefined
58 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/text_curly.txt:
--------------------------------------------------------------------------------
1 | tokenize Curly template{{test}}
2 | tokenize embedded script
3 | '123'
4 | tokenize multiline attribute value with double quotes
5 |
7 | tokenize multiline attribute value with single quotes
8 |
10 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/text_html.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | '123'
4 |
5 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/text_javascript.txt:
--------------------------------------------------------------------------------
1 | //test: tokenize 'standard' functions
2 | string.charCodeAt(23); document.getElementById('test'); console.log('Here it is');";
3 | test: /**tokenize doc*/ comment
4 | /**tokenize doc comment with @tag {}*/
5 | //test: tokenize parens
6 | var line = "[{( )}]";
7 | //test tokenize arithmetic expression which looks like a regexp
8 | a/b/c
9 | a/=b/c
10 | //test tokenize reg exps
11 | a=/b/g
12 | a+/b/g
13 | a = 1 + /2 + 1/gimyxk
14 | a=/a/ / /a/
15 | case /a/.test(c)
16 | //test tokenize multi-line comment containing a single line comment
17 | noRegex
18 | /* foo // bar */
19 | canBeRegex;
20 | /* foo // bar */
21 | // test tokenize identifier with umlauts
22 | fu?e
23 | // test // is not a regexp
24 | { // 123
25 | //test skipping escaped chars
26 | 'Meh\\nNeh'
27 | console.log('\\u1232Feh'
28 | "test multiline\
29 | strings"
30 | a='
31 | b="\
32 | still a string
33 |
34 |
35 | function foo(items, nada) {
36 | for (var i=0; ihttp://ace.ajaxorg.com
22 |
23 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/text_php.txt:
--------------------------------------------------------------------------------
1 | not &js;
25 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/text_ruby.txt:
--------------------------------------------------------------------------------
1 | #test: symbol tokenizer
2 | [:@thing, :$thing, :_thing, :thing, :Thing, :thing1, :thing_a,
3 | :THING, :thing!, :thing=, :thing?, :t?,
4 | :, :@, :$, :1, :1thing, :th?ing, :thi=ng, :1thing,
5 | :th!ing, :thing#
6 | ]
7 |
8 | #test: namespaces aren't symbols" : function() {
9 | Namespaced::Class
10 | #test: hex tokenizer
11 | 0x9a, 0XA1, 0x9_a, 0x, 0x_9a, 0x9a_,
12 | #test: float tokenizer
13 | [1, +1, -1, 12_345, 0.000_1,
14 | _, 3_1, 1_2, 1_.0, 0._1];
15 |
16 | {:id => ?", :key => "value", anotherKey: [x, y?]}
17 |
18 | =begin
19 | =end
20 |
21 | =begin x
22 | =end-
23 | =end x
24 |
25 | herDocs = [<<'FOO', <//Juhu Kinners
2 | test: two tags in the same lines should be in separate tokens"
3 |
4 | test: multiline attributes"
5 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_ada.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["keyword","with"],
4 | ["text"," "],
5 | ["identifier","Ada"],
6 | ["text","."],
7 | ["identifier","Text_IO"],
8 | ["text","; "],
9 | ["keyword","use"],
10 | ["text"," "],
11 | ["identifier","Ada"],
12 | ["text","."],
13 | ["identifier","Text_IO"],
14 | ["text",";"]
15 | ],[
16 | "start",
17 | ["keyword","procedure"],
18 | ["text"," "],
19 | ["identifier","Hello"],
20 | ["text"," "],
21 | ["keyword","is"]
22 | ],[
23 | "start",
24 | ["keyword","begin"]
25 | ],[
26 | "start",
27 | ["text"," "],
28 | ["identifier","Put_Line"],
29 | ["paren.lparen","("],
30 | ["string","\"Hello, world!\""],
31 | ["paren.rparen",")"],
32 | ["text",";"]
33 | ],[
34 | "start",
35 | ["keyword","end"],
36 | ["text"," "],
37 | ["identifier","Hello"],
38 | ["text",";"]
39 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_batchfile.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["comment.line.colons.dosbatch",":: batch file highlighting in Ace!"]
4 | ],[
5 | "start",
6 | ["text","@"],
7 | ["keyword.command.dosbatch","echo"],
8 | ["text"," off"]
9 | ],[
10 | "start"
11 | ],[
12 | "start",
13 | ["keyword.control.statement.dosbatch","CALL"],
14 | ["text"," "],
15 | ["keyword.command.dosbatch","set"],
16 | ["text"," var1="],
17 | ["constant.numeric","%cd%"]
18 | ],[
19 | "start",
20 | ["keyword.command.dosbatch","echo"],
21 | ["text"," unhide everything in "],
22 | ["constant.numeric","%var1%"],
23 | ["text","!"]
24 | ],[
25 | "start"
26 | ],[
27 | "start",
28 | ["comment.line.colons.dosbatch",":: FOR loop in bat is super strange!"]
29 | ],[
30 | "start",
31 | ["keyword.control.repeat.dosbatch","FOR"],
32 | ["text"," /f "],
33 | ["punctuation.definition.string.begin.shell","\""],
34 | ["string.quoted.double.dosbatch","tokens=*"],
35 | ["punctuation.definition.string.end.shell","\""],
36 | ["text"," "],
37 | ["constant.numeric","%%G"],
38 | ["text"," IN ('"],
39 | ["keyword.command.dosbatch","dir"],
40 | ["text"," /A:D /b') DO ("]
41 | ],[
42 | "start",
43 | ["keyword.command.dosbatch","echo"],
44 | ["text"," "],
45 | ["constant.numeric","%var1%%%G"]
46 | ],[
47 | "start",
48 | ["keyword.command.dosbatch","attrib"],
49 | ["text"," -r -a -h -s "],
50 | ["punctuation.definition.string.begin.shell","\""],
51 | ["constant.numeric","%var1%%%G"],
52 | ["punctuation.definition.string.end.shell","\""],
53 | ["text"," /D /S"]
54 | ],[
55 | "start",
56 | ["text",")"]
57 | ],[
58 | "start"
59 | ],[
60 | "start",
61 | ["keyword.command.dosbatch","pause"]
62 | ],[
63 | "start"
64 | ],[
65 | "start",
66 | ["doc.comment","REM"],
67 | ["comment"," that's all"]
68 | ],[
69 | "start"
70 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_cobol.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["identifier","TODO"]
4 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_coldfusion.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["comment.xml",""]
4 | ],[
5 | "start"
6 | ],[
7 | "start",
8 | ["meta.tag.punctuation.tag-open.xml","<"],
9 | ["meta.tag.tag-name.xml","cfset"],
10 | ["text.tag-whitespace.xml"," "],
11 | ["entity.other.attribute-name.xml","welcome"],
12 | ["keyword.operator.attribute-equals.xml","="],
13 | ["string.attribute-value.xml","\"Hello World!\""],
14 | ["meta.tag.punctuation.tag-close.xml",">"]
15 | ],[
16 | "start"
17 | ],[
18 | "start",
19 | ["meta.tag.punctuation.tag-open.xml","<"],
20 | ["meta.tag.tag-name.xml","cfoutput"],
21 | ["meta.tag.punctuation.tag-close.xml",">"],
22 | ["text.xml","#welcome#"],
23 | ["meta.tag.punctuation.end-tag-open.xml",""],
24 | ["meta.tag.tag-name.xml","cfoutput"],
25 | ["meta.tag.punctuation.tag-close.xml",">"]
26 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_csharp.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["keyword","public"],
4 | ["text"," "],
5 | ["keyword","void"],
6 | ["text"," "],
7 | ["identifier","HelloWorld"],
8 | ["paren.lparen","("],
9 | ["paren.rparen",")"],
10 | ["text"," "],
11 | ["paren.lparen","{"]
12 | ],[
13 | "start",
14 | ["text"," "],
15 | ["comment","//Say Hello!"]
16 | ],[
17 | "start",
18 | ["text"," "],
19 | ["identifier","Console"],
20 | ["punctuation.operator","."],
21 | ["identifier","WriteLine"],
22 | ["paren.lparen","("],
23 | ["string.start","\""],
24 | ["string","Hello World"],
25 | ["string.end","\""],
26 | ["paren.rparen",")"],
27 | ["punctuation.operator",";"]
28 | ],[
29 | "start",
30 | ["paren.rparen","}"]
31 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_curly.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["text.xml","tokenize Curly template"],
4 | ["variable","{{"],
5 | ["text","test"],
6 | ["variable","}}"]
7 | ],[
8 | "start",
9 | ["text.xml","tokenize embedded script"]
10 | ],[
11 | "start",
12 | ["meta.tag.punctuation.tag-open.xml","<"],
13 | ["meta.tag.script.tag-name.xml","script"],
14 | ["text.tag-whitespace.xml"," "],
15 | ["entity.other.attribute-name.xml","a"],
16 | ["keyword.operator.attribute-equals.xml","="],
17 | ["string.attribute-value.xml","'a'"],
18 | ["meta.tag.punctuation.tag-close.xml",">"],
19 | ["storage.type","var"],
20 | ["meta.tag.punctuation.end-tag-open.xml",""],
21 | ["meta.tag.script.tag-name.xml","script"],
22 | ["meta.tag.punctuation.tag-close.xml",">"],
23 | ["text.xml","'123'"]
24 | ],[
25 | "start",
26 | ["text.xml","tokenize multiline attribute value with double quotes"]
27 | ],[
28 | ["string.attribute-value.xml0","tag_stuff"],
29 | ["meta.tag.punctuation.tag-open.xml","<"],
30 | ["meta.tag.anchor.tag-name.xml","a"],
31 | ["text.tag-whitespace.xml"," "],
32 | ["entity.other.attribute-name.xml","href"],
33 | ["keyword.operator.attribute-equals.xml","="],
34 | ["string.attribute-value.xml","\"abc{{xyz}}"]
35 | ],[
36 | "start",
37 | ["string.attribute-value.xml","def\""],
38 | ["meta.tag.punctuation.tag-close.xml",">"]
39 | ],[
40 | "start",
41 | ["text.xml","tokenize multiline attribute value with single quotes"]
42 | ],[
43 | ["string.attribute-value.xml","tag_stuff"],
44 | ["meta.tag.punctuation.tag-open.xml","<"],
45 | ["meta.tag.anchor.tag-name.xml","a"],
46 | ["text.tag-whitespace.xml"," "],
47 | ["entity.other.attribute-name.xml","href"],
48 | ["keyword.operator.attribute-equals.xml","="],
49 | ["string.attribute-value.xml","'abc"]
50 | ],[
51 | "start",
52 | ["string.attribute-value.xml","def\\\"'"],
53 | ["meta.tag.punctuation.tag-close.xml",">"]
54 | ],[
55 | "start"
56 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_gitignore.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["comment","# A sample .gitignore file."]
4 | ],[
5 | "start"
6 | ],[
7 | "start",
8 | ["text",".buildlog"]
9 | ],[
10 | "start",
11 | ["text",".DS_Store"]
12 | ],[
13 | "start",
14 | ["text",".svn"]
15 | ],[
16 | "start"
17 | ],[
18 | "start",
19 | ["comment","# Negated patterns:"]
20 | ],[
21 | "start",
22 | ["keyword","!foo.bar"]
23 | ],[
24 | "start"
25 | ],[
26 | "start",
27 | ["comment","# Also ignore user settings..."]
28 | ],[
29 | "start",
30 | ["text","/.settings"]
31 | ],[
32 | "start"
33 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_ini.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["punctuation.definition.entity.ini","["],
4 | ["constant.section.group-title.ini",".ShellClassInfo"],
5 | ["punctuation.definition.entity.ini","]"]
6 | ],[
7 | "start",
8 | ["keyword.other.definition.ini","IconResource"],
9 | ["punctuation.separator.key-value.ini","="],
10 | ["text","..\\logo.png"]
11 | ],[
12 | "start",
13 | ["punctuation.definition.entity.ini","["],
14 | ["constant.section.group-title.ini","ViewState"],
15 | ["punctuation.definition.entity.ini","]"]
16 | ],[
17 | "start",
18 | ["keyword.other.definition.ini","FolderType"],
19 | ["punctuation.separator.key-value.ini","="],
20 | ["text","Generic"]
21 | ],[
22 | "start"
23 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_io.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["punctuation.definition.comment.io","//"],
4 | ["comment.line.double-slash.io"," computes factorial of a number"]
5 | ],[
6 | "start",
7 | ["text","factorial "],
8 | ["keyword.operator.io",":="],
9 | ["text"," "],
10 | ["support.function.io","method"],
11 | ["text","(n,"]
12 | ],[
13 | "start",
14 | ["text"," "],
15 | ["keyword.control.io","if"],
16 | ["text","(n "],
17 | ["keyword.operator.io","=="],
18 | ["text"," "],
19 | ["constant.numeric.io","0"],
20 | ["text",", "],
21 | ["keyword.control.io","return"],
22 | ["text"," "],
23 | ["constant.numeric.io","1"],
24 | ["text",")"]
25 | ],[
26 | "start",
27 | ["text"," res "],
28 | ["keyword.operator.io",":="],
29 | ["text"," "],
30 | ["constant.numeric.io","1"]
31 | ],[
32 | "start",
33 | ["text"," "],
34 | ["support.class.io","Range"],
35 | ["text"," "],
36 | ["constant.numeric.io","1"],
37 | ["text"," "],
38 | ["support.function.io","to"],
39 | ["text","(n) "],
40 | ["keyword.control.io","foreach"],
41 | ["text","(i, res "],
42 | ["keyword.operator.io","="],
43 | ["text"," res "],
44 | ["keyword.operator.io","*"],
45 | ["text"," i)"]
46 | ],[
47 | "start",
48 | ["text",")"]
49 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_jsoniq.json:
--------------------------------------------------------------------------------
1 | [[
2 | "[\"start\"]",
3 | ["support.function","TODO"]
4 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_jsx.json:
--------------------------------------------------------------------------------
1 | [[
2 | "comment",
3 | ["comment","/*EXPECTED"]
4 | ],[
5 | "comment",
6 | ["comment","hello world!"]
7 | ],[
8 | "start",
9 | ["comment","*/"]
10 | ],[
11 | "start",
12 | ["keyword","class"],
13 | ["text"," "],
14 | ["language.support.class","Test"],
15 | ["text"," "],
16 | ["paren.lparen","{"]
17 | ],[
18 | "start",
19 | ["text"," "],
20 | ["keyword","static"],
21 | ["text"," "],
22 | ["storage.type","function"],
23 | ["text"," "],
24 | ["entity.name.function","run"],
25 | ["paren.lparen","("],
26 | ["paren.rparen",")"],
27 | ["text"," "],
28 | ["punctuation.operator",":"],
29 | ["text"," "],
30 | ["keyword","void"],
31 | ["text"," "],
32 | ["paren.lparen","{"]
33 | ],[
34 | "start",
35 | ["text"," "],
36 | ["comment","// console.log(\"hello world!\");"]
37 | ],[
38 | "start",
39 | ["text"," "],
40 | ["keyword","log"],
41 | ["text"," "],
42 | ["string","\"hello world!\""],
43 | ["punctuation.operator",";"]
44 | ],[
45 | "start",
46 | ["text"," "],
47 | ["paren.rparen","}"]
48 | ],[
49 | "start",
50 | ["paren.rparen","}"]
51 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_livescript.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["comment","# comment"]
4 | ],[
5 | "start"
6 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_mysql.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["identifier","TODO"]
4 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_properties.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["comment","# You are reading the \".properties\" entry."]
4 | ],[
5 | "start",
6 | ["comment","! The exclamation mark can also mark text as comments."]
7 | ],[
8 | "start",
9 | ["comment","# The key and element characters #, !, =, and : are written with a preceding backslash to ensure that they are properly loaded."]
10 | ],[
11 | "start",
12 | ["variable","website "],
13 | ["keyword","="],
14 | ["string"," http"],
15 | ["constant.language.escape","\\"],
16 | ["string","://en.wikipedia.org/"]
17 | ],[
18 | "start",
19 | ["variable","language "],
20 | ["keyword","="],
21 | ["string"," English"]
22 | ],[
23 | "start",
24 | ["comment","# The backslash below tells the application to continue reading"]
25 | ],[
26 | "start",
27 | ["comment","# the value onto the next line."]
28 | ],[
29 | "value",
30 | ["variable","message "],
31 | ["keyword","="],
32 | ["string"," Welcome to \\"]
33 | ],[
34 | "start",
35 | ["string"," Wikipedia!"]
36 | ],[
37 | "start",
38 | ["comment","# Add spaces to the key"]
39 | ],[
40 | "start",
41 | ["variable","key"],
42 | ["constant.language.escape","\\"],
43 | ["variable"," with"],
44 | ["constant.language.escape","\\"],
45 | ["variable"," spaces "],
46 | ["keyword","="],
47 | ["string"," This is the value that could be looked up with the key \"key with spaces\"."]
48 | ],[
49 | "start",
50 | ["comment","# Unicode"]
51 | ],[
52 | "start",
53 | ["variable","tab "],
54 | ["keyword",":"],
55 | ["string"," "],
56 | ["constant.language.escape","\\u0009"]
57 | ],[
58 | "start",
59 | ["variable","empty-key"],
60 | ["keyword","="]
61 | ],[
62 | "start",
63 | ["variable","last.line"],
64 | ["keyword","="],
65 | ["string","value"]
66 | ],[
67 | "start"
68 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_sql.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["keyword","SELECT"],
4 | ["text"," "],
5 | ["identifier","city"],
6 | ["text",", "],
7 | ["support.function","COUNT"],
8 | ["paren.lparen","("],
9 | ["identifier","id"],
10 | ["paren.rparen",")"],
11 | ["text"," "],
12 | ["keyword","AS"],
13 | ["text"," "],
14 | ["identifier","users_count"]
15 | ],[
16 | "start",
17 | ["keyword","FROM"],
18 | ["text"," "],
19 | ["identifier","users"]
20 | ],[
21 | "start",
22 | ["keyword","WHERE"],
23 | ["text"," "],
24 | ["identifier","group_name"],
25 | ["text"," "],
26 | ["keyword.operator","="],
27 | ["text"," "],
28 | ["string","'salesman'"]
29 | ],[
30 | "start",
31 | ["keyword","AND"],
32 | ["text"," "],
33 | ["identifier","created"],
34 | ["text"," "],
35 | ["keyword.operator",">"],
36 | ["text"," "],
37 | ["string","'2011-05-21'"]
38 | ],[
39 | "start",
40 | ["keyword","GROUP"],
41 | ["text"," "],
42 | ["keyword","BY"],
43 | ["text"," "],
44 | ["constant.numeric","1"]
45 | ],[
46 | "start",
47 | ["keyword","ORDER"],
48 | ["text"," "],
49 | ["keyword","BY"],
50 | ["text"," "],
51 | ["constant.numeric","2"],
52 | ["text"," "],
53 | ["keyword","DESC"]
54 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_xml.json:
--------------------------------------------------------------------------------
1 | [[
2 | "start",
3 | ["meta.tag.punctuation.tag-open.xml","<"],
4 | ["meta.tag.tag-name.xml","Juhu"],
5 | ["meta.tag.punctuation.tag-close.xml",">"],
6 | ["text.xml","//Juhu Kinners"],
7 | ["meta.tag.punctuation.end-tag-open.xml",""],
8 | ["meta.tag.tag-name.xml","Kinners"],
9 | ["meta.tag.punctuation.tag-close.xml",">"]
10 | ],[
11 | "start",
12 | ["text.xml","test: two tags in the same lines should be in separate tokens\""]
13 | ],[
14 | "start",
15 | ["meta.tag.punctuation.tag-open.xml","<"],
16 | ["meta.tag.tag-name.xml","Juhu"],
17 | ["meta.tag.punctuation.tag-close.xml",">"],
18 | ["meta.tag.punctuation.tag-open.xml","<"],
19 | ["meta.tag.tag-name.xml","Kinners"],
20 | ["meta.tag.punctuation.tag-close.xml",">"]
21 | ],[
22 | "start",
23 | ["text.xml","test: multiline attributes\""]
24 | ],[
25 | ["string.attribute-value.xml0","meta.tag.punctuation.tag-open.xml"],
26 | ["meta.tag.punctuation.tag-open.xml","<"],
27 | ["meta.tag.tag-name.xml","copy"],
28 | ["text.tag-whitespace.xml"," "],
29 | ["entity.other.attribute-name.xml","set"],
30 | ["keyword.operator.attribute-equals.xml","="],
31 | ["string.attribute-value.xml","\"{"]
32 | ],[
33 | ["string.attribute-value.xml0","meta.tag.punctuation.tag-open.xml"],
34 | ["string.attribute-value.xml","}\""],
35 | ["text.tag-whitespace.xml"," "],
36 | ["entity.other.attribute-name.xml","undo"],
37 | ["keyword.operator.attribute-equals.xml","="],
38 | ["string.attribute-value.xml","\"{"]
39 | ],[
40 | "start",
41 | ["string.attribute-value.xml","}\""],
42 | ["meta.tag.punctuation.tag-close.xml","/>"]
43 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/_test/tokens_xquery.json:
--------------------------------------------------------------------------------
1 | [[
2 | "[\"start\"]",
3 | ["keyword","xquery"],
4 | ["text"," "],
5 | ["keyword","version"],
6 | ["text"," "],
7 | ["string","\""],
8 | ["string","1.0"],
9 | ["string","\""],
10 | ["text",";"]
11 | ],[
12 | "[\"start\"]"
13 | ],[
14 | "[\"start\"]",
15 | ["keyword","let"],
16 | ["text"," "],
17 | ["variable","$message"],
18 | ["text"," "],
19 | ["keyword.operator",":="],
20 | ["text"," "],
21 | ["string","\""],
22 | ["string","Hello World!"],
23 | ["string","\""]
24 | ],[
25 | "[\"start\",\"StartTag\",\"TagContent\"]",
26 | ["keyword","return"],
27 | ["text"," "],
28 | ["meta.tag",""]
30 | ],[
31 | "[\"start\",\"StartTag\",\"TagContent\"]",
32 | ["text"," "],
33 | ["meta.tag",""],
35 | ["text","{"],
36 | ["variable","$message"],
37 | ["text","}"],
38 | ["meta.tag",""]
39 | ],[
40 | "[\"start\"]",
41 | ["meta.tag",""]
42 | ],[
43 | "[\"start\"]"
44 | ]]
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/csharp.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var CSharpHighlightRules = require("./csharp_highlight_rules").CSharpHighlightRules;
7 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
8 | var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
9 | var CStyleFoldMode = require("./folding/csharp").FoldMode;
10 |
11 | var Mode = function() {
12 | this.HighlightRules = CSharpHighlightRules;
13 | this.$outdent = new MatchingBraceOutdent();
14 | this.$behaviour = new CstyleBehaviour();
15 | this.foldingRules = new CStyleFoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 |
19 | (function() {
20 |
21 | this.lineCommentStart = "//";
22 | this.blockComment = {start: "/*", end: "*/"};
23 |
24 | this.getNextLineIndent = function(state, line, tab) {
25 | var indent = this.$getIndent(line);
26 |
27 | var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
28 | var tokens = tokenizedLine.tokens;
29 |
30 | if (tokens.length && tokens[tokens.length-1].type == "comment") {
31 | return indent;
32 | }
33 |
34 | if (state == "start") {
35 | var match = line.match(/^.*[\{\(\[]\s*$/);
36 | if (match) {
37 | indent += tab;
38 | }
39 | }
40 |
41 | return indent;
42 | };
43 |
44 | this.checkOutdent = function(state, line, input) {
45 | return this.$outdent.checkOutdent(line, input);
46 | };
47 |
48 | this.autoOutdent = function(state, doc, row) {
49 | this.$outdent.autoOutdent(doc, row);
50 | };
51 |
52 |
53 | this.createWorker = function(session) {
54 | return null;
55 | };
56 |
57 | this.$id = "ace/mode/csharp";
58 | }).call(Mode.prototype);
59 |
60 | exports.Mode = Mode;
61 | });
62 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/dot.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
7 | var DotHighlightRules = require("./dot_highlight_rules").DotHighlightRules;
8 | var DotFoldMode = require("./folding/cstyle").FoldMode;
9 |
10 | var Mode = function() {
11 | this.HighlightRules = DotHighlightRules;
12 | this.$outdent = new MatchingBraceOutdent();
13 | this.foldingRules = new DotFoldMode();
14 | };
15 | oop.inherits(Mode, TextMode);
16 |
17 | (function() {
18 |
19 | this.lineCommentStart = ["//", "#"];
20 | this.blockComment = {start: "/*", end: "*/"};
21 |
22 | this.getNextLineIndent = function(state, line, tab) {
23 | var indent = this.$getIndent(line);
24 |
25 | var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
26 | var tokens = tokenizedLine.tokens;
27 | var endState = tokenizedLine.state;
28 |
29 | if (tokens.length && tokens[tokens.length-1].type == "comment") {
30 | return indent;
31 | }
32 |
33 | if (state == "start") {
34 | var match = line.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/);
35 | if (match) {
36 | indent += tab;
37 | }
38 | }
39 |
40 | return indent;
41 | };
42 |
43 | this.checkOutdent = function(state, line, input) {
44 | return this.$outdent.checkOutdent(line, input);
45 | };
46 |
47 | this.autoOutdent = function(state, doc, row) {
48 | this.$outdent.autoOutdent(doc, row);
49 | };
50 |
51 | this.$id = "ace/mode/dot";
52 | }).call(Mode.prototype);
53 |
54 | exports.Mode = Mode;
55 | });
56 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/gitignore.js:
--------------------------------------------------------------------------------
1 |
2 | define(function(require, exports, module) {
3 | "use strict";
4 |
5 | var oop = require("../lib/oop");
6 | var TextMode = require("./text").Mode;
7 | var GitignoreHighlightRules = require("./gitignore_highlight_rules").GitignoreHighlightRules;
8 |
9 | var Mode = function() {
10 | this.HighlightRules = GitignoreHighlightRules;
11 | };
12 | oop.inherits(Mode, TextMode);
13 |
14 | (function() {
15 | this.lineCommentStart = "#";
16 | this.$id = "ace/mode/gitignore";
17 | }).call(Mode.prototype);
18 |
19 | exports.Mode = Mode;
20 | });
21 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/gitignore_highlight_rules.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6 |
7 | var GitignoreHighlightRules = function() {
8 | this.$rules = {
9 | "start" : [
10 | {
11 | token : "comment",
12 | regex : /^\s*#.*$/
13 | }, {
14 | token : "keyword", // negated patterns
15 | regex : /^\s*!.*$/
16 | }
17 | ]
18 | };
19 |
20 | this.normalizeRules();
21 | };
22 |
23 | GitignoreHighlightRules.metaData = {
24 | fileTypes: ['gitignore'],
25 | name: 'Gitignore'
26 | };
27 |
28 | oop.inherits(GitignoreHighlightRules, TextHighlightRules);
29 |
30 | exports.GitignoreHighlightRules = GitignoreHighlightRules;
31 | });
32 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/golang.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 |
3 | var oop = require("../lib/oop");
4 | var TextMode = require("./text").Mode;
5 | var GolangHighlightRules = require("./golang_highlight_rules").GolangHighlightRules;
6 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
7 | var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
8 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
9 |
10 | var Mode = function() {
11 | this.HighlightRules = GolangHighlightRules;
12 | this.$outdent = new MatchingBraceOutdent();
13 | this.foldingRules = new CStyleFoldMode();
14 | };
15 | oop.inherits(Mode, TextMode);
16 |
17 | (function() {
18 |
19 | this.lineCommentStart = "//";
20 | this.blockComment = {start: "/*", end: "*/"};
21 |
22 | this.getNextLineIndent = function(state, line, tab) {
23 | var indent = this.$getIndent(line);
24 |
25 | var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
26 | var tokens = tokenizedLine.tokens;
27 | var endState = tokenizedLine.state;
28 |
29 | if (tokens.length && tokens[tokens.length-1].type == "comment") {
30 | return indent;
31 | }
32 |
33 | if (state == "start") {
34 | var match = line.match(/^.*[\{\(\[]\s*$/);
35 | if (match) {
36 | indent += tab;
37 | }
38 | }
39 |
40 | return indent;
41 | };//end getNextLineIndent
42 |
43 | this.checkOutdent = function(state, line, input) {
44 | return this.$outdent.checkOutdent(line, input);
45 | };
46 |
47 | this.autoOutdent = function(state, doc, row) {
48 | this.$outdent.autoOutdent(doc, row);
49 | };
50 |
51 | this.$id = "ace/mode/golang";
52 | }).call(Mode.prototype);
53 |
54 | exports.Mode = Mode;
55 | });
56 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/groovy.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var JavaScriptMode = require("./javascript").Mode;
6 | var GroovyHighlightRules = require("./groovy_highlight_rules").GroovyHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 | this.HighlightRules = GroovyHighlightRules;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 |
14 | (function() {
15 |
16 | this.createWorker = function(session) {
17 | return null;
18 | };
19 |
20 | this.$id = "ace/mode/groovy";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
25 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/handlebars.js:
--------------------------------------------------------------------------------
1 | /* global define */
2 |
3 | define(function(require, exports, module) {
4 | "use strict";
5 |
6 | var oop = require("../lib/oop");
7 | var HtmlMode = require("./html").Mode;
8 | var HandlebarsHighlightRules = require("./handlebars_highlight_rules").HandlebarsHighlightRules;
9 | var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour;
10 | var HtmlFoldMode = require("./folding/html").FoldMode;
11 |
12 | var Mode = function() {
13 | HtmlMode.call(this);
14 | this.HighlightRules = HandlebarsHighlightRules;
15 | this.$behaviour = new HtmlBehaviour();
16 |
17 |
18 | this.foldingRules = new HtmlFoldMode();
19 | };
20 |
21 | oop.inherits(Mode, HtmlMode);
22 |
23 | (function() {
24 | this.blockComment = {start: "{!--", end: "--}"};
25 | this.$id = "ace/mode/handlebars";
26 | }).call(Mode.prototype);
27 |
28 | exports.Mode = Mode;
29 | });
30 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/haxe.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var HaxeHighlightRules = require("./haxe_highlight_rules").HaxeHighlightRules;
7 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
8 | var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
9 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
10 |
11 | var Mode = function() {
12 | this.HighlightRules = HaxeHighlightRules;
13 |
14 | this.$outdent = new MatchingBraceOutdent();
15 | this.$behaviour = new CstyleBehaviour();
16 | this.foldingRules = new CStyleFoldMode();
17 | };
18 | oop.inherits(Mode, TextMode);
19 |
20 | (function() {
21 | this.lineCommentStart = "//";
22 | this.blockComment = {start: "/*", end: "*/"};
23 |
24 | this.getNextLineIndent = function(state, line, tab) {
25 | var indent = this.$getIndent(line);
26 |
27 | var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
28 | var tokens = tokenizedLine.tokens;
29 |
30 | if (tokens.length && tokens[tokens.length-1].type == "comment") {
31 | return indent;
32 | }
33 |
34 | if (state == "start") {
35 | var match = line.match(/^.*[\{\(\[]\s*$/);
36 | if (match) {
37 | indent += tab;
38 | }
39 | }
40 |
41 | return indent;
42 | };
43 |
44 | this.checkOutdent = function(state, line, input) {
45 | return this.$outdent.checkOutdent(line, input);
46 | };
47 |
48 | this.autoOutdent = function(state, doc, row) {
49 | this.$outdent.autoOutdent(doc, row);
50 | };
51 |
52 | this.$id = "ace/mode/haxe";
53 | }).call(Mode.prototype);
54 |
55 | exports.Mode = Mode;
56 | });
57 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/java.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var JavaScriptMode = require("./javascript").Mode;
6 | var JavaHighlightRules = require("./java_highlight_rules").JavaHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 | this.HighlightRules = JavaHighlightRules;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 |
14 | (function() {
15 |
16 | this.createWorker = function(session) {
17 | return null;
18 | };
19 |
20 | this.$id = "ace/mode/java";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
25 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/jsx.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var JsxHighlightRules = require("./jsx_highlight_rules").JsxHighlightRules;
7 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
8 | var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
9 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
10 |
11 | function Mode() {
12 | this.HighlightRules = JsxHighlightRules;
13 | this.$outdent = new MatchingBraceOutdent();
14 | this.$behaviour = new CstyleBehaviour();
15 | this.foldingRules = new CStyleFoldMode();
16 | }
17 | oop.inherits(Mode, TextMode);
18 |
19 | (function() {
20 |
21 | this.lineCommentStart = "//";
22 | this.blockComment = {start: "/*", end: "*/"};
23 |
24 | this.getNextLineIndent = function(state, line, tab) {
25 | var indent = this.$getIndent(line);
26 |
27 | var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
28 | var tokens = tokenizedLine.tokens;
29 |
30 | if (tokens.length && tokens[tokens.length-1].type == "comment") {
31 | return indent;
32 | }
33 |
34 | if (state == "start") {
35 | var match = line.match(/^.*[\{\(\[]\s*$/);
36 | if (match) {
37 | indent += tab;
38 | }
39 | }
40 |
41 | return indent;
42 | };
43 |
44 | this.checkOutdent = function(state, line, input) {
45 | return this.$outdent.checkOutdent(line, input);
46 | };
47 |
48 | this.autoOutdent = function(state, doc, row) {
49 | this.$outdent.autoOutdent(doc, row);
50 | };
51 |
52 | this.$id = "ace/mode/jsx";
53 | }).call(Mode.prototype);
54 |
55 | exports.Mode = Mode;
56 | });
57 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/latex.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var LatexHighlightRules = require("./latex_highlight_rules").LatexHighlightRules;
7 | var LatexFoldMode = require("./folding/latex").FoldMode;
8 | var Range = require("../range").Range;
9 |
10 | var Mode = function() {
11 | this.HighlightRules = LatexHighlightRules;
12 | this.foldingRules = new LatexFoldMode();
13 | };
14 | oop.inherits(Mode, TextMode);
15 |
16 | (function() {
17 | this.type = "text";
18 |
19 | this.lineCommentStart = "%";
20 |
21 | this.$id = "ace/mode/latex";
22 | }).call(Mode.prototype);
23 |
24 | exports.Mode = Mode;
25 |
26 | });
27 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/luapage.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var HtmlMode = require("./html").Mode;
6 | var LuaMode = require("./lua").Mode;
7 | var LuaPageHighlightRules = require("./luapage_highlight_rules").LuaPageHighlightRules;
8 |
9 | var Mode = function() {
10 | HtmlMode.call(this);
11 |
12 | this.HighlightRules = LuaPageHighlightRules;
13 | this.createModeDelegates({
14 | "lua-": LuaMode
15 | });
16 | };
17 | oop.inherits(Mode, HtmlMode);
18 |
19 | (function() {
20 | this.$id = "ace/mode/luapage";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/luapage_highlight_rules.js:
--------------------------------------------------------------------------------
1 | // LuaPage implements the LuaPage markup as described by the Kepler Project's CGILua
2 | // documentation: http://keplerproject.github.com/cgilua/manual.html#templates
3 | define(function(require, exports, module) {
4 | "use strict";
5 |
6 | var oop = require("../lib/oop");
7 | var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
8 | var LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules;
9 |
10 | var LuaPageHighlightRules = function() {
11 | HtmlHighlightRules.call(this);
12 |
13 | var startRules = [
14 | {
15 | token: "keyword",
16 | regex: "<\\%\\=?",
17 | push: "lua-start"
18 | }, {
19 | token: "keyword",
20 | regex: "<\\?lua\\=?",
21 | push: "lua-start"
22 | }
23 | ];
24 |
25 | var endRules = [
26 | {
27 | token: "keyword",
28 | regex: "\\%>",
29 | next: "pop"
30 | }, {
31 | token: "keyword",
32 | regex: "\\?>",
33 | next: "pop"
34 | }
35 | ];
36 |
37 | this.embedRules(LuaHighlightRules, "lua-", endRules, ["start"]);
38 |
39 | for (var key in this.$rules)
40 | this.$rules[key].unshift.apply(this.$rules[key], startRules);
41 |
42 | this.normalizeRules();
43 | };
44 |
45 | oop.inherits(LuaPageHighlightRules, HtmlHighlightRules);
46 |
47 | exports.LuaPageHighlightRules = LuaPageHighlightRules;
48 |
49 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/lucene.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | 'use strict';
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules;
7 |
8 | var Mode = function() {
9 | this.HighlightRules = LuceneHighlightRules;
10 | };
11 |
12 | oop.inherits(Mode, TextMode);
13 |
14 | (function() {
15 | this.$id = "ace/mode/lucene";
16 | }).call(Mode.prototype);
17 |
18 | exports.Mode = Mode;
19 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/lucene_highlight_rules.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var lang = require("../lib/lang");
6 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
7 |
8 | var LuceneHighlightRules = function() {
9 | this.$rules = {
10 | "start" : [
11 | {
12 | token : "constant.character.negation",
13 | regex : "[\\-]"
14 | }, {
15 | token : "constant.character.interro",
16 | regex : "[\\?]"
17 | }, {
18 | token : "constant.character.asterisk",
19 | regex : "[\\*]"
20 | }, {
21 | token: 'constant.character.proximity',
22 | regex: '~[0-9]+\\b'
23 | }, {
24 | token : 'keyword.operator',
25 | regex: '(?:AND|OR|NOT)\\b'
26 | }, {
27 | token : "paren.lparen",
28 | regex : "[\\(]"
29 | }, {
30 | token : "paren.rparen",
31 | regex : "[\\)]"
32 | }, {
33 | token : "keyword",
34 | regex : "[\\S]+:"
35 | }, {
36 | token : "string", // " string
37 | regex : '".*?"'
38 | }, {
39 | token : "text",
40 | regex : "\\s+"
41 | }
42 | ]
43 | };
44 | };
45 |
46 | oop.inherits(LuceneHighlightRules, TextHighlightRules);
47 |
48 | exports.LuceneHighlightRules = LuceneHighlightRules;
49 | });
50 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/powershell.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var PowershellHighlightRules = require("./powershell_highlight_rules").PowershellHighlightRules;
7 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
8 | var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
9 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
10 |
11 | var Mode = function() {
12 | this.HighlightRules = PowershellHighlightRules;
13 | this.$outdent = new MatchingBraceOutdent();
14 | this.$behaviour = new CstyleBehaviour();
15 | this.foldingRules = new CStyleFoldMode({start: "^\\s*(<#)", end: "^[#\\s]>\\s*$"});
16 | };
17 | oop.inherits(Mode, TextMode);
18 |
19 | (function() {
20 |
21 | this.lineCommentStart = "#";
22 | this.blockComment = {start: "<#", end: "#>"};
23 |
24 | this.getNextLineIndent = function(state, line, tab) {
25 | var indent = this.$getIndent(line);
26 |
27 | var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
28 | var tokens = tokenizedLine.tokens;
29 |
30 | if (tokens.length && tokens[tokens.length-1].type == "comment") {
31 | return indent;
32 | }
33 |
34 | if (state == "start") {
35 | var match = line.match(/^.*[\{\(\[]\s*$/);
36 | if (match) {
37 | indent += tab;
38 | }
39 | }
40 |
41 | return indent;
42 | };
43 |
44 | this.checkOutdent = function(state, line, input) {
45 | return this.$outdent.checkOutdent(line, input);
46 | };
47 |
48 | this.autoOutdent = function(state, doc, row) {
49 | this.$outdent.autoOutdent(doc, row);
50 | };
51 |
52 |
53 | this.createWorker = function(session) {
54 | return null;
55 | };
56 |
57 | this.$id = "ace/mode/powershell";
58 | }).call(Mode.prototype);
59 |
60 | exports.Mode = Mode;
61 | });
62 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/scala.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var JavaScriptMode = require("./javascript").Mode;
6 | var ScalaHighlightRules = require("./scala_highlight_rules").ScalaHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 |
11 | this.HighlightRules = ScalaHighlightRules;
12 | };
13 | oop.inherits(Mode, JavaScriptMode);
14 |
15 | (function() {
16 |
17 | this.createWorker = function(session) {
18 | return null;
19 | };
20 |
21 | this.$id = "ace/mode/scala";
22 | }).call(Mode.prototype);
23 |
24 | exports.Mode = Mode;
25 | });
26 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/space.js:
--------------------------------------------------------------------------------
1 |
2 | define(function(require, exports, module) {
3 | "use strict";
4 | var oop = require("../lib/oop");
5 | // defines the parent mode
6 | var TextMode = require("./text").Mode;
7 | var FoldMode = require("./folding/coffee").FoldMode;
8 | // defines the language specific highlighters and folding rules
9 | var SpaceHighlightRules = require("./space_highlight_rules").SpaceHighlightRules;
10 | var Mode = function() {
11 | // set everything up
12 | this.HighlightRules = SpaceHighlightRules;
13 | this.foldingRules = new FoldMode();
14 | };
15 | oop.inherits(Mode, TextMode);
16 | (function() {
17 |
18 | this.$id = "ace/mode/space";
19 | }).call(Mode.prototype);
20 | exports.Mode = Mode;
21 | });
22 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/space_highlight_rules.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var oop = require("../lib/oop");
5 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6 |
7 | var SpaceHighlightRules = function() {
8 |
9 | // Todo: support multiline values that escape the newline with spaces.
10 | this.$rules = {
11 | "start" : [
12 | {
13 | token : "empty_line",
14 | regex : / */,
15 | next : "key"
16 | },
17 | {
18 | token : "empty_line",
19 | regex : /$/,
20 | next : "key"
21 | }
22 | ],
23 | "key" : [
24 | {
25 | token : "variable",
26 | regex : /\S+/
27 | },
28 | {
29 | token : "empty_line",
30 | regex : /$/,
31 | next : "start"
32 | },{
33 | token : "keyword.operator",
34 | regex : / /,
35 | next : "value"
36 | }
37 | ],
38 | "value" : [
39 | {
40 | token : "keyword.operator",
41 | regex : /$/,
42 | next : "start"
43 | },
44 | {
45 | token : "string",
46 | regex : /[^$]/
47 | }
48 | ]
49 | };
50 |
51 | };
52 |
53 | oop.inherits(SpaceHighlightRules, TextHighlightRules);
54 |
55 | exports.SpaceHighlightRules = SpaceHighlightRules;
56 | });
57 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/typescript/DocumentPositionUtil.js:
--------------------------------------------------------------------------------
1 | define(["require", "exports"], function (require, exports) {
2 | var DocumentPositionUtil;
3 | (function (DocumentPositionUtil) {
4 | DocumentPositionUtil.getLinesChars = function (lines) {
5 | var count;
6 | count = 0;
7 | lines.forEach(function (line) {
8 | return count += line.length + 1;
9 | });
10 | return count;
11 | };
12 | DocumentPositionUtil.getChars = function (doc, pos) {
13 | return DocumentPositionUtil.getLinesChars(doc.getLines(0, pos.row - 1)) + pos.column;
14 | };
15 | DocumentPositionUtil.getPosition = function (doc, chars) {
16 | var count, i, line, lines, row;
17 | lines = doc.getAllLines();
18 | count = 0;
19 | row = 0;
20 | for (i in lines) {
21 | line = lines[i];
22 | if (chars < (count + (line.length + 1))) {
23 | return {
24 | row: row,
25 | column: chars - count
26 | };
27 | }
28 | count += line.length + 1;
29 | row += 1;
30 | }
31 | return {
32 | row: row,
33 | column: chars - count
34 | };
35 | };
36 | })(DocumentPositionUtil = exports.DocumentPositionUtil || (exports.DocumentPositionUtil = {}));
37 | });
38 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/typescript/DocumentPositionUtil.ts:
--------------------------------------------------------------------------------
1 | export namespace DocumentPositionUtil {
2 |
3 | export var getLinesChars = function(lines) {
4 | var count;
5 | count = 0;
6 | lines.forEach(function(line) {
7 | return count += line.length + 1;
8 | });
9 | return count;
10 | };
11 |
12 | export var getChars = function(doc, pos) {
13 | return getLinesChars(doc.getLines(0, pos.row - 1)) + pos.column;
14 | };
15 |
16 | export var getPosition = function(doc, chars) {
17 | var count, i, line, lines, row;
18 | lines = doc.getAllLines();
19 | count = 0;
20 | row = 0;
21 | for (i in lines) {
22 | line = lines[i];
23 | if (chars < (count + (line.length + 1))) {
24 | return {
25 | row: row,
26 | column: chars - count
27 | };
28 | }
29 | count += line.length + 1;
30 | row += 1;
31 | }
32 | return {
33 | row: row,
34 | column: chars - count
35 | };
36 | };
37 | }
38 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/typescript/tsProject.js:
--------------------------------------------------------------------------------
1 | define(["require", "exports", "./languageServiceHost"], function (require, exports, languageServiceHost_1) {
2 | if (typeof importScripts !== 'undefined') {
3 | importScripts('../mode/typescript/typescriptServices.js');
4 | }
5 | var TsProject = (function () {
6 | function TsProject() {
7 | this.languageServiceHost = languageServiceHost_1.createLanguageServiceHost('', "typescripts/lib.d.ts");
8 | this.languageService = ts.createLanguageService(this.languageServiceHost, ts.createDocumentRegistry());
9 | }
10 | return TsProject;
11 | })();
12 | var tsProject = null;
13 | function getTSProject() {
14 | return tsProject ? tsProject : tsProject = new TsProject();
15 | }
16 | exports.getTSProject = getTSProject;
17 | });
18 |
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/typescript/tsProject.ts:
--------------------------------------------------------------------------------
1 |
2 | // We are running in the worker?
3 | // Load up ts ourselves
4 | if (typeof importScripts !== 'undefined') {
5 | // Path needs to be relative to `ace/worker`
6 | importScripts('../mode/typescript/typescriptServices.js')
7 | }
8 |
9 | import {createLanguageServiceHost, LanguageServiceHost} from "./languageServiceHost";
10 |
11 | /**
12 | * Wraps up `langaugeService` `languageServiceHost` in a single package
13 | */
14 | class TsProject {
15 | public languageServiceHost: LanguageServiceHost;
16 | public languageService: ts.LanguageService;
17 |
18 | constructor() {
19 | this.languageServiceHost = createLanguageServiceHost('', "typescripts/lib.d.ts");
20 | this.languageService = ts.createLanguageService(this.languageServiceHost, ts.createDocumentRegistry());
21 | }
22 | }
23 |
24 | var tsProject: TsProject = null;
25 | export function getTSProject() {
26 | return tsProject ? tsProject : tsProject = new TsProject();
27 | }
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/typescript/typescript_create_worker.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var WorkerClient = require("ace/worker/worker_client").WorkerClient;
5 |
6 | exports.createWorker = function(session) {
7 |
8 | var worker = new WorkerClient(
9 | // WorkerClient will load `ace`.
10 | ["ace"],
11 | // The worker client is itself located in this file
12 | "ace/mode/typescript/typescript_worker",
13 | // And within the file it wants this member as the worker class
14 | "TypeScriptWorker"
15 | );
16 |
17 | worker.attachToDocument(session.getDocument());
18 |
19 | worker.on("terminate", function() {
20 | session.clearAnnotations();
21 | });
22 |
23 | worker.on("compileErrors", function(results) {
24 | session.setAnnotations(results.data);
25 | session._emit("compileErrors", {data: results.data});
26 |
27 | });
28 |
29 | worker.on("compiled", function(result) {
30 | session._emit("compiled", {data: result.data});
31 | });
32 |
33 | return worker;
34 | };
35 |
36 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/mode/xquery/Readme.md:
--------------------------------------------------------------------------------
1 | This files are build from [xqlint](https://github.com/wcandillon/xqlint) (using the `grunt ace_build`)
2 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/_all_modes.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./_all_modes.snippets");
5 | exports.scope = "_all_modes";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/_all_modes.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/_all_modes.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/abap.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./abap.snippets");
5 | exports.scope = "abap";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/abap.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/abap.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/abc.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./abc.snippets");
5 | exports.scope = "abc";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/abc.snippets:
--------------------------------------------------------------------------------
1 |
2 | snippet zupfnoter.print
3 | %%%%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}]}
4 |
5 | snippet zupfnoter.note
6 | %%%%hn.note {"pos": [${1:pos_x},${2:pos_y}], "text": "${3:text}", "style": "${4:style}"}
7 |
8 | snippet zupfnoter.annotation
9 | %%%%hn.annotation {"id": "${1:id}", "pos": [${2:pos}], "text": "${3:text}"}
10 |
11 | snippet zupfnoter.lyrics
12 | %%%%hn.lyrics {"pos": [${1:x_pos},${2:y_pos}]}
13 |
14 | snippet zupfnoter.legend
15 | %%%%hn.legend {"pos": [${1:x_pos},${2:y_pos}]}
16 |
17 |
18 |
19 | snippet zupfnoter.target
20 | "^:${1:target}"
21 |
22 | snippet zupfnoter.goto
23 | "^@${1:target}@${2:distance}"
24 |
25 | snippet zupfnoter.annotationref
26 | "^#${1:target}"
27 |
28 | snippet zupfnoter.annotation
29 | "^!${1:text}@${2:x_offset},${3:y_offset}"
30 |
31 |
32 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/actionscript.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./actionscript.snippets");
5 | exports.scope = "actionscript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ada.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./ada.snippets");
5 | exports.scope = "ada";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ada.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/ada.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/all_modes.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./all_modes.snippets");
5 | exports.scope = "all_modes";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/all_modes.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/all_modes.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/apache.snippets:
--------------------------------------------------------------------------------
1 | # Snippets for code blocks used oftenly in Apache files.
2 | #
3 | snippet dir
4 |
5 | DirectoryIndex ${2:index.html}
6 | Order Deny,Allow
7 | Deny from All
8 |
9 | #
10 | snippet filesmatch
11 |
12 | ${2}
13 |
14 | #
15 | snippet ifmodule
16 |
17 | ${2}
18 |
19 | #
20 | snippet limitexcept
21 |
22 | ${2}
23 |
24 | #
25 | snippet proxy
26 |
27 | ${2}
28 |
29 | #
30 | snippet virtualhost
31 |
32 | ServerAdmin ${3:webmaster@example.com}
33 | DocumentRoot ${4:/www/example.com}
34 | ServerName ${5:www.example.com}
35 |
36 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/apache_conf.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./apache_conf.snippets");
5 | exports.scope = "apache_conf";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/apache_conf.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/apache_conf.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/applescript.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./applescript.snippets");
5 | exports.scope = "applescript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/applescript.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/applescript.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/asciidoc.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./asciidoc.snippets");
5 | exports.scope = "asciidoc";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/asciidoc.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/asciidoc.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/assembly_x86.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./assembly_x86.snippets");
5 | exports.scope = "assembly_x86";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/assembly_x86.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/assembly_x86.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/autohotkey.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./autohotkey.snippets");
5 | exports.scope = "autohotkey";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/autohotkey.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/autohotkey.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/autoit.snippets:
--------------------------------------------------------------------------------
1 | snippet if
2 | If ${1:condition} Then
3 | ${2:; True code}
4 | EndIf
5 | snippet el
6 | Else
7 | ${1}
8 | snippet elif
9 | ElseIf ${1:condition} Then
10 | ${2:; True code}
11 | # If/Else block
12 | snippet ifel
13 | If ${1:condition} Then
14 | ${2:; True code}
15 | Else
16 | ${3:; Else code}
17 | EndIf
18 | # If/ElseIf/Else block
19 | snippet ifelif
20 | If ${1:condition 1} Then
21 | ${2:; True code}
22 | ElseIf ${3:condition 2} Then
23 | ${4:; True code}
24 | Else
25 | ${5:; Else code}
26 | EndIf
27 | # Switch block
28 | snippet switch
29 | Switch (${1:condition})
30 | Case {$2:case1}:
31 | {$3:; Case 1 code}
32 | Case Else:
33 | {$4:; Else code}
34 | EndSwitch
35 | # Select block
36 | snippet select
37 | Select (${1:condition})
38 | Case {$2:case1}:
39 | {$3:; Case 1 code}
40 | Case Else:
41 | {$4:; Else code}
42 | EndSelect
43 | # While loop
44 | snippet while
45 | While (${1:condition})
46 | ${2:; code...}
47 | WEnd
48 | # For loop
49 | snippet for
50 | For ${1:n} = ${3:1} to ${2:count}
51 | ${4:; code...}
52 | Next
53 | # New Function
54 | snippet func
55 | Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
56 | ${4:Return}
57 | EndFunc
58 | # Message box
59 | snippet msg
60 | MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"})
61 | # Debug Message
62 | snippet debug
63 | MsgBox(0, "Debug", ${1:"Debug Message"})
64 | # Show Variable Debug Message
65 | snippet showvar
66 | MsgBox(0, "${1:VarName}", $1)
67 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/batchfile.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./batchfile.snippets");
5 | exports.scope = "batchfile";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/batchfile.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/batchfile.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/c9search.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./c9search.snippets");
5 | exports.scope = "c9search";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/c9search.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/c9search.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/c_cpp.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./c_cpp.snippets");
5 | exports.scope = "c_cpp";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/cirru.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./cirru.snippets");
5 | exports.scope = "cirru";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/cirru.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/cirru.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/clojure.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./clojure.snippets");
5 | exports.scope = "clojure";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/cmake.snippets:
--------------------------------------------------------------------------------
1 | snippet cmake
2 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 | PROJECT(${1:ProjectName})
4 |
5 | FIND_PACKAGE(${2:LIBRARY})
6 |
7 | INCLUDE_DIRECTORIES(
8 | ${$2_INCLUDE_DIR}
9 | )
10 |
11 | ADD_SUBDIRECTORY(${3:src})
12 |
13 | ADD_EXECUTABLE($1)
14 |
15 | TARGET_LINK_LIBRARIES($1
16 | ${$2_LIBRARIES}
17 | )
18 |
19 | snippet include
20 | INCLUDE_DIRECTORIES(
21 | ${${1:INCLUDE_DIR}}
22 | )
23 |
24 | snippet find
25 | FIND_PACKAGE(${1:LIBRARY})
26 |
27 | snippet glob
28 | FILE(GLOB ${1:SRCS} *.${2:cpp})
29 |
30 | snippet subdir
31 | ADD_SUBDIRECTORY(${1:src})
32 |
33 | snippet lib
34 | ADD_LIBRARY(${1:lib} ${2:STATIC}
35 | ${${3:SRCS}}
36 | )
37 |
38 | snippet link
39 | TARGET_LINK_LIBRARIES(${1:bin}
40 | ${2:somelib}
41 | )
42 |
43 | snippet bin
44 | ADD_EXECUTABLE(${1:bin})
45 |
46 | snippet set
47 | SET(${1:var} ${2:val})
48 |
49 | snippet dep
50 | ADD_DEPENDENCIES(${1:target}
51 | ${2:dep}
52 | )
53 |
54 | snippet props
55 | SET_TARGET_PROPERTIES(${1:target}
56 | ${2:PROPERTIES} ${3:COMPILE_FLAGS}
57 | ${4:"-O3 -Wall -pedantic"}
58 | )
59 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/cobol.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./cobol.snippets");
5 | exports.scope = "cobol";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/cobol.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/cobol.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/coffee.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./coffee.snippets");
5 | exports.scope = "coffee";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/coldfusion.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./coldfusion.snippets");
5 | exports.scope = "coldfusion";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/coldfusion.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/coldfusion.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/csharp.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./csharp.snippets");
5 | exports.scope = "csharp";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/csharp.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/csharp.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/css.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./css.snippets");
5 | exports.scope = "css";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/curly.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./curly.snippets");
5 | exports.scope = "curly";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/curly.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/curly.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/d.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./d.snippets");
5 | exports.scope = "d";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/d.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/d.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dart.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./dart.snippets");
5 | exports.scope = "dart";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dart.snippets:
--------------------------------------------------------------------------------
1 | snippet lib
2 | library ${1};
3 | ${2}
4 | snippet im
5 | import '${1}';
6 | ${2}
7 | snippet pa
8 | part '${1}';
9 | ${2}
10 | snippet pao
11 | part of ${1};
12 | ${2}
13 | snippet main
14 | void main() {
15 | ${1:/* code */}
16 | }
17 | snippet st
18 | static ${1}
19 | snippet fi
20 | final ${1}
21 | snippet re
22 | return ${1}
23 | snippet br
24 | break;
25 | snippet th
26 | throw ${1}
27 | snippet cl
28 | class ${1:`Filename("", "untitled")`} ${2}
29 | snippet imp
30 | implements ${1}
31 | snippet ext
32 | extends ${1}
33 | snippet if
34 | if (${1:true}) {
35 | ${2}
36 | }
37 | snippet ife
38 | if (${1:true}) {
39 | ${2}
40 | } else {
41 | ${3}
42 | }
43 | snippet el
44 | else
45 | snippet sw
46 | switch (${1}) {
47 | ${2}
48 | }
49 | snippet cs
50 | case ${1}:
51 | ${2}
52 | snippet de
53 | default:
54 | ${1}
55 | snippet for
56 | for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
57 | ${4:$1[$2]}
58 | }
59 | snippet fore
60 | for (final ${2:item} in ${1:itemList}) {
61 | ${3:/* code */}
62 | }
63 | snippet wh
64 | while (${1:/* condition */}) {
65 | ${2:/* code */}
66 | }
67 | snippet dowh
68 | do {
69 | ${2:/* code */}
70 | } while (${1:/* condition */});
71 | snippet as
72 | assert(${1:/* condition */});
73 | snippet try
74 | try {
75 | ${2}
76 | } catch (${1:Exception e}) {
77 | }
78 | snippet tryf
79 | try {
80 | ${2}
81 | } catch (${1:Exception e}) {
82 | } finally {
83 | }
84 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/diff.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./diff.snippets");
5 | exports.scope = "diff";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/diff.snippets:
--------------------------------------------------------------------------------
1 | # DEP-3 (http://dep.debian.net/deps/dep3/) style patch header
2 | snippet header DEP-3 style header
3 | Description: ${1}
4 | Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}
5 | Bug: ${4:url in upstream bugtracker}
6 | Forwarded: ${5:no|not-needed|url}
7 | Author: ${6:`g:snips_author`}
8 | Reviewed-by: ${7:name and email}
9 | Last-Update: ${8:`strftime("%Y-%m-%d")`}
10 | Applied-Upstream: ${9:upstream version|url|commit}
11 |
12 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/django.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./django.snippets");
5 | exports.scope = "django";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dockerfile.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./dockerfile.snippets");
5 | exports.scope = "dockerfile";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dockerfile.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/dockerfile.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dot.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./dot.snippets");
5 | exports.scope = "dot";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dot.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/dot.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dummy.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./.snippets");
5 | exports.scope = "";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/dummy_syntax.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./.snippets");
5 | exports.scope = "";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/eiffel.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./eiffel.snippets");
5 | exports.scope = "eiffel";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/eiffel.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/eiffel.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ejs.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./ejs.snippets");
5 | exports.scope = "ejs";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ejs.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/ejs.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/elixir.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./.snippets");
5 | exports.scope = "";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/elixir.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/elixir.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/elm.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./elm.snippets");
5 | exports.scope = "elm";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/elm.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/elm.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/erlang.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./erlang.snippets");
5 | exports.scope = "erlang";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/falcon.snippets:
--------------------------------------------------------------------------------
1 | snippet #!
2 | #!/usr/bin/env falcon
3 |
4 | # Import
5 | snippet imp
6 | import ${1:module}
7 |
8 | # Function
9 | snippet fun
10 | function ${2:function_name}(${3})
11 | ${4:/* code */}
12 | end
13 |
14 | # Class
15 | snippet class
16 | class ${1:class_name}(${2:class_params})
17 | ${3:/* members/methods */}
18 | end
19 |
20 | # If
21 | snippet if
22 | if ${1:condition}
23 | ${2:/* code */}
24 | end
25 |
26 | # If else
27 | snippet ife
28 | if ${1:condition}
29 | ${2:/* code */}
30 | else
31 | ${1}
32 | end
33 |
34 | # If else if
35 | snippet elif
36 | elif ${1:condition}
37 | ${2:/* code */}
38 |
39 | # Switch case
40 | snippet switch
41 | switch ${1:expression}
42 | case ${2:item}
43 | case ${3:item}
44 | default
45 | end
46 |
47 | # Select
48 | snippet select
49 | select ${1:variable}
50 | case ${2:TypeSpec}
51 | case ${3:TypeSpec}
52 | default
53 | end
54 |
55 | # For/in Loop
56 | snippet forin
57 | for ${1:element} in ${2:container}
58 | ${3:/* code */}
59 | end
60 |
61 | # For/to Loop
62 | snippet forto
63 | for ${1:lowerbound} to ${2:upperbound}
64 | ${3:/* code */}
65 | end
66 |
67 | # While Loop
68 | snippet while
69 | while ${1:conidition}
70 | ${2:/* code */}
71 | end
72 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/forth.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./forth.snippets");
5 | exports.scope = "forth";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/forth.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/forth.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ftl.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./ftl.snippets");
5 | exports.scope = "ftl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ftl.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/ftl.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/gcode.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./gcode.snippets");
5 | exports.scope = "gcode";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/gcode.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/gcode.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/gherkin.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./gherkin.snippets");
5 | exports.scope = "gherkin";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/gherkin.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/gherkin.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/gitignore.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./gitignore.snippets");
5 | exports.scope = "gitignore";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/gitignore.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/gitignore.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/glsl.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./glsl.snippets");
5 | exports.scope = "glsl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/glsl.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/glsl.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/golang.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./golang.snippets");
5 | exports.scope = "golang";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/golang.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/golang.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/groovy.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./groovy.snippets");
5 | exports.scope = "groovy";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/groovy.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/groovy.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/haml.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./haml.snippets");
5 | exports.scope = "haml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/haml.snippets:
--------------------------------------------------------------------------------
1 | snippet t
2 | %table
3 | %tr
4 | %th
5 | ${1:headers}
6 | %tr
7 | %td
8 | ${2:headers}
9 | snippet ul
10 | %ul
11 | %li
12 | ${1:item}
13 | %li
14 | snippet =rp
15 | = render :partial => '${1:partial}'
16 | snippet =rpl
17 | = render :partial => '${1:partial}', :locals => {}
18 | snippet =rpc
19 | = render :partial => '${1:partial}', :collection => @$1
20 |
21 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/handlebars.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./handlebars.snippets");
5 | exports.scope = "handlebars";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/handlebars.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/handlebars.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/haskell.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./haskell.snippets");
5 | exports.scope = "haskell";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/haxe.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./haxe.snippets");
5 | exports.scope = "haxe";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/haxe.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/haxe.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/html.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./html.snippets");
5 | exports.scope = "html";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/html_ruby.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./html_ruby.snippets");
5 | exports.scope = "html_ruby";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/html_ruby.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/html_ruby.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/htmltornado.snippets:
--------------------------------------------------------------------------------
1 | # Generic tags
2 |
3 | snippet {
4 | {{ ${1} }}
5 |
6 | # Template tags
7 |
8 | snippet extends
9 | {% extends "${1:base.html}" %}
10 | snippet autoescape
11 | {% autoescape ${1:xhtml_escape | None} %}
12 | snippet apply
13 | {% apply ${1:function} %}
14 | ${2}
15 | {% end %}
16 | snippet block
17 | {% block ${1} %}
18 | ${2}
19 | {% end %}
20 | snippet for
21 | {% for ${1:item} in ${2} %}
22 | ${3}
23 | {% end %}
24 | snippet from
25 | {% from ${1:x} import ${2:y} %}
26 | snippet if
27 | {% if ${1:condition} %}
28 | ${2}
29 | {% end %}
30 | snippet elif
31 | {% elif ${1:condition} %}
32 | snippet else
33 | {% else %}
34 | snippet import
35 | {% import ${1:module} %}
36 | snippet include
37 | {% include "${1:filename}" %}
38 | snippet module
39 | {% module ${1:expression} %}
40 | snippet raw
41 | {% raw ${1:expression} %}
42 | snippet set
43 | {% set ${1:x} = ${2:y} %}
44 | snippet try
45 | {% try %}
46 | ${1}
47 | {% except %}
48 | ${2}
49 | {% finallly %}
50 | ${3}
51 | {% end %}
52 | snippet while
53 | {% while ${1:condition} %}
54 | ${2}
55 | {% end %}
56 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ini.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./ini.snippets");
5 | exports.scope = "ini";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ini.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/ini.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/io.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/io.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jack.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./jack.snippets");
5 | exports.scope = "jack";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jack.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/jack.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jade.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./jade.snippets");
5 | exports.scope = "jade";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jade.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/jade.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/java.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./java.snippets");
5 | exports.scope = "java";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/javascript.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./javascript.snippets");
5 | exports.scope = "javascript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/json.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./json.snippets");
5 | exports.scope = "json";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/json.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/json.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jsoniq.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./jsoniq.snippets");
5 | exports.scope = "jsoniq";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jsoniq.snippets:
--------------------------------------------------------------------------------
1 | snippet for
2 | for $${1:item} in ${2:expr}
3 | snippet return
4 | return ${1:expr}
5 | snippet import
6 | import module namespace ${1:ns} = "${2:http://www.example.com/}";
7 | snippet some
8 | some $${1:varname} in ${2:expr} satisfies ${3:expr}
9 | snippet every
10 | every $${1:varname} in ${2:expr} satisfies ${3:expr}
11 | snippet if
12 | if(${1:true}) then ${2:expr} else ${3:true}
13 | snippet switch
14 | switch(${1:"foo"})
15 | case ${2:"foo"}
16 | return ${3:true}
17 | default return ${4:false}
18 | snippet try
19 | try { ${1:expr} } catch ${2:*} { ${3:expr} }
20 | snippet tumbling
21 | for tumbling window $${1:varname} in ${2:expr}
22 | start at $${3:start} when ${4:expr}
23 | end at $${5:end} when ${6:expr}
24 | return ${7:expr}
25 | snippet sliding
26 | for sliding window $${1:varname} in ${2:expr}
27 | start at $${3:start} when ${4:expr}
28 | end at $${5:end} when ${6:expr}
29 | return ${7:expr}
30 | snippet let
31 | let $${1:varname} := ${2:expr}
32 | snippet group
33 | group by $${1:varname} := ${2:expr}
34 | snippet order
35 | order by ${1:expr} ${2:descending}
36 | snippet stable
37 | stable order by ${1:expr}
38 | snippet count
39 | count $${1:varname}
40 | snippet ordered
41 | ordered { ${1:expr} }
42 | snippet unordered
43 | unordered { ${1:expr} }
44 | snippet treat
45 | treat as ${1:expr}
46 | snippet castable
47 | castable as ${1:atomicType}
48 | snippet cast
49 | cast as ${1:atomicType}
50 | snippet typeswitch
51 | typeswitch(${1:expr})
52 | case ${2:type} return ${3:expr}
53 | default return ${4:expr}
54 | snippet var
55 | declare variable $${1:varname} := ${2:expr};
56 | snippet fn
57 | declare function ${1:ns}:${2:name}(){
58 | ${3:expr}
59 | };
60 | snippet module
61 | module namespace ${1:ns} = "${2:http://www.example.com}";
62 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jsp.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./jsp.snippets");
5 | exports.scope = "jsp";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jsx.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./jsx.snippets");
5 | exports.scope = "jsx";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/jsx.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/jsx.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/julia.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./julia.snippets");
5 | exports.scope = "julia";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/julia.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/julia.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/latex.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./latex.snippets");
5 | exports.scope = "latex";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/latex.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/latex.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lean.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./lean.snippets");
5 | exports.scope = "lean";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lean.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/lean.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ledger.snippets:
--------------------------------------------------------------------------------
1 | # Ledger
2 | snippet ent
3 | `strftime("%Y/%m/%d")` ${1:transaction}
4 | ${2:account} ${3:value}
5 | ${4:account}
6 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/less.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./less.snippets");
5 | exports.scope = "less";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/less.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/less.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/liquid.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./liquid.snippets");
5 | exports.scope = "liquid";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/liquid.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/liquid.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lisp.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./lisp.snippets");
5 | exports.scope = "lisp";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lisp.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/lisp.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/livescript.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./livescript.snippets");
5 | exports.scope = "livescript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/livescript.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/livescript.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/logiql.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./logiql.snippets");
5 | exports.scope = "logiql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/logiql.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/logiql.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lsl.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./lsl.snippets");
5 | exports.scope = "lsl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lua.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./lua.snippets");
5 | exports.scope = "lua";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lua.snippets:
--------------------------------------------------------------------------------
1 | snippet #!
2 | #!/usr/bin/env lua
3 | $1
4 | snippet local
5 | local ${1:x} = ${2:1}
6 | snippet fun
7 | function ${1:fname}(${2:...})
8 | ${3:-- body}
9 | end
10 | snippet for
11 | for ${1:i}=${2:1},${3:10} do
12 | ${4:print(i)}
13 | end
14 | snippet forp
15 | for ${1:i},${2:v} in pairs(${3:table_name}) do
16 | ${4:-- body}
17 | end
18 | snippet fori
19 | for ${1:i},${2:v} in ipairs(${3:table_name}) do
20 | ${4:-- body}
21 | end
22 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/luapage.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./luapage.snippets");
5 | exports.scope = "luapage";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/luapage.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/luapage.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lucene.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./lucene.snippets");
5 | exports.scope = "lucene";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/lucene.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/lucene.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/makefile.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./makefile.snippets");
5 | exports.scope = "makefile";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/makefile.snippets:
--------------------------------------------------------------------------------
1 | snippet ifeq
2 | ifeq (${1:cond0},${2:cond1})
3 | ${3:code}
4 | endif
5 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mako.snippets:
--------------------------------------------------------------------------------
1 | snippet def
2 | <%def name="${1:name}">
3 | ${2:}
4 | %def>
5 | snippet call
6 | <%call expr="${1:name}">
7 | ${2:}
8 | %call>
9 | snippet doc
10 | <%doc>
11 | ${1:}
12 | %doc>
13 | snippet text
14 | <%text>
15 | ${1:}
16 | %text>
17 | snippet for
18 | % for ${1:i} in ${2:iter}:
19 | ${3:}
20 | % endfor
21 | snippet if if
22 | % if ${1:condition}:
23 | ${2:}
24 | % endif
25 | snippet if if/else
26 | % if ${1:condition}:
27 | ${2:}
28 | % else:
29 | ${3:}
30 | % endif
31 | snippet try
32 | % try:
33 | ${1:}
34 | % except${2:}:
35 | ${3:pass}
36 | % endtry
37 | snippet wh
38 | % while ${1:}:
39 | ${2:}
40 | % endwhile
41 | snippet $
42 | ${ ${1:} }
43 | snippet <%
44 | <% ${1:} %>
45 | snippet
47 | snippet inherit
48 | <%inherit file="${1:filename}" />
49 | snippet include
50 | <%include file="${1:filename}" />
51 | snippet namespace
52 | <%namespace file="${1:name}" />
53 | snippet page
54 | <%page args="${1:}" />
55 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/markdown.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./markdown.snippets");
5 | exports.scope = "markdown";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/matlab.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./matlab.snippets");
5 | exports.scope = "matlab";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/matlab.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/matlab.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mel.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./mel.snippets");
5 | exports.scope = "mel";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mel.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/mel.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mushcode.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./mushcode.snippets");
5 | exports.scope = "mushcode";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mushcode.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/mushcode.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mushcode_high_rules.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./mushcode_high_rules.snippets");
5 | exports.scope = "mushcode_high_rules";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mushcode_high_rules.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/mushcode_high_rules.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mysql.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./mysql.snippets");
5 | exports.scope = "mysql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/mysql.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/mysql.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/nix.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./nix.snippets");
5 | exports.scope = "nix";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/nix.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/nix.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/objectivec.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./objectivec.snippets");
5 | exports.scope = "objectivec";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/objectivec.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/objectivec.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ocaml.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./ocaml.snippets");
5 | exports.scope = "ocaml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ocaml.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/ocaml.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/pascal.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./pascal.snippets");
5 | exports.scope = "pascal";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/pascal.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/pascal.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/perl.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./perl.snippets");
5 | exports.scope = "perl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/pgsql.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./pgsql.snippets");
5 | exports.scope = "pgsql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/pgsql.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/pgsql.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/php.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./php.snippets");
5 | exports.scope = "php";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/plain_text.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./plain_text.snippets");
5 | exports.scope = "plain_text";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/plain_text.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/plain_text.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/powershell.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./powershell.snippets");
5 | exports.scope = "powershell";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/powershell.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/powershell.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/praat.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./praat.snippets");
5 | exports.scope = "praat";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/praat.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/praat.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/prolog.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./prolog.snippets");
5 | exports.scope = "prolog";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/prolog.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/prolog.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/properties.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./properties.snippets");
5 | exports.scope = "properties";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/properties.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/properties.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/protobuf.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "";
5 | exports.scope = "protobuf";
6 |
7 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/protobuf.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/protobuf.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/python.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./python.snippets");
5 | exports.scope = "python";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/r.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./r.snippets");
5 | exports.scope = "r";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rdoc.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./rdoc.snippets");
5 | exports.scope = "rdoc";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rdoc.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/rdoc.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rhtml.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./rhtml.snippets");
5 | exports.scope = "rhtml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rhtml.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/rhtml.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rst.snippets:
--------------------------------------------------------------------------------
1 | # rst
2 |
3 | snippet :
4 | :${1:field name}: ${2:field body}
5 | snippet *
6 | *${1:Emphasis}*
7 | snippet **
8 | **${1:Strong emphasis}**
9 | snippet _
10 | \`${1:hyperlink-name}\`_
11 | .. _\`$1\`: ${2:link-block}
12 | snippet =
13 | ${1:Title}
14 | =====${2:=}
15 | ${3}
16 | snippet -
17 | ${1:Title}
18 | -----${2:-}
19 | ${3}
20 | snippet cont:
21 | .. contents::
22 |
23 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/ruby.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./ruby.snippets");
5 | exports.scope = "ruby";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rust.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./rust.snippets");
5 | exports.scope = "rust";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/rust.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/rust.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sass.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./sass.snippets");
5 | exports.scope = "sass";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sass.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/sass.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scad.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./scad.snippets");
5 | exports.scope = "scad";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scad.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/scad.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scala.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./scala.snippets");
5 | exports.scope = "scala";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scala.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/scala.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scheme.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./scheme.snippets");
5 | exports.scope = "scheme";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scheme.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/scheme.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scss.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./scss.snippets");
5 | exports.scope = "scss";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/scss.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/scss.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sh.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./sh.snippets");
5 | exports.scope = "sh";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sjs.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./sjs.snippets");
5 | exports.scope = "sjs";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sjs.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/sjs.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/smarty.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./smarty.snippets");
5 | exports.scope = "smarty";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/smarty.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/smarty.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/snippets.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./snippets.snippets");
5 | exports.scope = "snippets";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/snippets.snippets:
--------------------------------------------------------------------------------
1 | # snippets for making snippets :)
2 | snippet snip
3 | snippet ${1:trigger}
4 | ${2}
5 | snippet msnip
6 | snippet ${1:trigger} ${2:description}
7 | ${3}
8 | snippet v
9 | {VISUAL}
10 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/soy_template.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./soy_template.snippets");
5 | exports.scope = "soy_template";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/soy_template.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/soy_template.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/space.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./space.snippets");
5 | exports.scope = "space";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/space.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/space.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sql.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./sql.snippets");
5 | exports.scope = "sql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sql.snippets:
--------------------------------------------------------------------------------
1 | snippet tbl
2 | create table ${1:table} (
3 | ${2:columns}
4 | );
5 | snippet col
6 | ${1:name} ${2:type} ${3:default ''} ${4:not null}
7 | snippet ccol
8 | ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}
9 | snippet ncol
10 | ${1:name} number ${3:default 0} ${4:not null}
11 | snippet dcol
12 | ${1:name} date ${3:default sysdate} ${4:not null}
13 | snippet ind
14 | create index ${3:$1_$2} on ${1:table}(${2:column});
15 | snippet uind
16 | create unique index ${1:name} on ${2:table}(${3:column});
17 | snippet tblcom
18 | comment on table ${1:table} is '${2:comment}';
19 | snippet colcom
20 | comment on column ${1:table}.${2:column} is '${3:comment}';
21 | snippet addcol
22 | alter table ${1:table} add (${2:column} ${3:type});
23 | snippet seq
24 | create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};
25 | snippet s*
26 | select * from ${1:table}
27 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/sqlserver.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./sqlserver.snippets");
5 | exports.scope = "sqlserver";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/stylus.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./stylus.snippets");
5 | exports.scope = "stylus";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/stylus.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/stylus.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/svg.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./svg.snippets");
5 | exports.scope = "svg";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/svg.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/svg.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/tcl.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./tcl.snippets");
5 | exports.scope = "tcl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/tcl.snippets:
--------------------------------------------------------------------------------
1 | # #!/usr/bin/env tclsh
2 | snippet #!
3 | #!/usr/bin/env tclsh
4 |
5 | # Process
6 | snippet pro
7 | proc ${1:function_name} {${2:args}} {
8 | ${3:#body ...}
9 | }
10 | #xif
11 | snippet xif
12 | ${1:expr}? ${2:true} : ${3:false}
13 | # Conditional
14 | snippet if
15 | if {${1}} {
16 | ${2:# body...}
17 | }
18 | # Conditional if..else
19 | snippet ife
20 | if {${1}} {
21 | ${2:# body...}
22 | } else {
23 | ${3:# else...}
24 | }
25 | # Conditional if..elsif..else
26 | snippet ifee
27 | if {${1}} {
28 | ${2:# body...}
29 | } elseif {${3}} {
30 | ${4:# elsif...}
31 | } else {
32 | ${5:# else...}
33 | }
34 | # If catch then
35 | snippet ifc
36 | if { [catch {${1:#do something...}} ${2:err}] } {
37 | ${3:# handle failure...}
38 | }
39 | # Catch
40 | snippet catch
41 | catch {${1}} ${2:err} ${3:options}
42 | # While Loop
43 | snippet wh
44 | while {${1}} {
45 | ${2:# body...}
46 | }
47 | # For Loop
48 | snippet for
49 | for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {
50 | ${4:# body...}
51 | }
52 | # Foreach Loop
53 | snippet fore
54 | foreach ${1:x} {${2:#list}} {
55 | ${3:# body...}
56 | }
57 | # after ms script...
58 | snippet af
59 | after ${1:ms} ${2:#do something}
60 | # after cancel id
61 | snippet afc
62 | after cancel ${1:id or script}
63 | # after idle
64 | snippet afi
65 | after idle ${1:script}
66 | # after info id
67 | snippet afin
68 | after info ${1:id}
69 | # Expr
70 | snippet exp
71 | expr {${1:#expression here}}
72 | # Switch
73 | snippet sw
74 | switch ${1:var} {
75 | ${3:pattern 1} {
76 | ${4:#do something}
77 | }
78 | default {
79 | ${2:#do something}
80 | }
81 | }
82 | # Case
83 | snippet ca
84 | ${1:pattern} {
85 | ${2:#do something}
86 | }${3}
87 | # Namespace eval
88 | snippet ns
89 | namespace eval ${1:path} {${2:#script...}}
90 | # Namespace current
91 | snippet nsc
92 | namespace current
93 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/tex.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./tex.snippets");
5 | exports.scope = "tex";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/text.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./text.snippets");
5 | exports.scope = "text";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/text.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/text.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/textile.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./textile.snippets");
5 | exports.scope = "textile";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/textile.snippets:
--------------------------------------------------------------------------------
1 | # Jekyll post header
2 | snippet header
3 | ---
4 | title: ${1:title}
5 | layout: post
6 | date: ${2:date} ${3:hour:minute:second} -05:00
7 | ---
8 |
9 | # Image
10 | snippet img
11 | !${1:url}(${2:title}):${3:link}!
12 |
13 | # Table
14 | snippet |
15 | |${1}|${2}
16 |
17 | # Link
18 | snippet link
19 | "${1:link text}":${2:url}
20 |
21 | # Acronym
22 | snippet (
23 | (${1:Expand acronym})${2}
24 |
25 | # Footnote
26 | snippet fn
27 | [${1:ref number}] ${3}
28 |
29 | fn$1. ${2:footnote}
30 |
31 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/tmsnippet.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/tmsnippet.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/toml.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./toml.snippets");
5 | exports.scope = "toml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/toml.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/toml.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/twig.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./twig.snippets");
5 | exports.scope = "twig";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/twig.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/twig.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/typescript.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./typescript.snippets");
5 | exports.scope = "typescript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/typescript.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/typescript.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/vala.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/vala.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/vbscript.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./vbscript.snippets");
5 | exports.scope = "vbscript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/vbscript.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/vbscript.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/velocity.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./velocity.snippets");
5 | exports.scope = "velocity";
6 | exports.includeScopes = ["html", "javascript", "css"];
7 |
8 | });
9 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/velocity.snippets:
--------------------------------------------------------------------------------
1 | # macro
2 | snippet #macro
3 | #macro ( ${1:macroName} ${2:\$var1, [\$var2, ...]} )
4 | ${3:## macro code}
5 | #end
6 | # foreach
7 | snippet #foreach
8 | #foreach ( ${1:\$item} in ${2:\$collection} )
9 | ${3:## foreach code}
10 | #end
11 | # if
12 | snippet #if
13 | #if ( ${1:true} )
14 | ${0}
15 | #end
16 | # if ... else
17 | snippet #ife
18 | #if ( ${1:true} )
19 | ${2}
20 | #else
21 | ${0}
22 | #end
23 | #import
24 | snippet #import
25 | #import ( "${1:path/to/velocity/format}" )
26 | # set
27 | snippet #set
28 | #set ( $${1:var} = ${0} )
29 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/verilog.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./verilog.snippets");
5 | exports.scope = "verilog";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/verilog.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/verilog.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/vhdl.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./vhdl.snippets");
5 | exports.scope = "vhdl";
6 |
7 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/vhdl.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/vhdl.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/xml.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./xml.snippets");
5 | exports.scope = "xml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/xml.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/xml.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/xquery.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./xquery.snippets");
5 | exports.scope = "xquery";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/xquery.snippets:
--------------------------------------------------------------------------------
1 | snippet for
2 | for $${1:item} in ${2:expr}
3 | snippet return
4 | return ${1:expr}
5 | snippet import
6 | import module namespace ${1:ns} = "${2:http://www.example.com/}";
7 | snippet some
8 | some $${1:varname} in ${2:expr} satisfies ${3:expr}
9 | snippet every
10 | every $${1:varname} in ${2:expr} satisfies ${3:expr}
11 | snippet if
12 | if(${1:true}) then ${2:expr} else ${3:true}
13 | snippet switch
14 | switch(${1:"foo"})
15 | case ${2:"foo"}
16 | return ${3:true}
17 | default return ${4:false}
18 | snippet try
19 | try { ${1:expr} } catch ${2:*} { ${3:expr} }
20 | snippet tumbling
21 | for tumbling window $${1:varname} in ${2:expr}
22 | start at $${3:start} when ${4:expr}
23 | end at $${5:end} when ${6:expr}
24 | return ${7:expr}
25 | snippet sliding
26 | for sliding window $${1:varname} in ${2:expr}
27 | start at $${3:start} when ${4:expr}
28 | end at $${5:end} when ${6:expr}
29 | return ${7:expr}
30 | snippet let
31 | let $${1:varname} := ${2:expr}
32 | snippet group
33 | group by $${1:varname} := ${2:expr}
34 | snippet order
35 | order by ${1:expr} ${2:descending}
36 | snippet stable
37 | stable order by ${1:expr}
38 | snippet count
39 | count $${1:varname}
40 | snippet ordered
41 | ordered { ${1:expr} }
42 | snippet unordered
43 | unordered { ${1:expr} }
44 | snippet treat
45 | treat as ${1:expr}
46 | snippet castable
47 | castable as ${1:atomicType}
48 | snippet cast
49 | cast as ${1:atomicType}
50 | snippet typeswitch
51 | typeswitch(${1:expr})
52 | case ${2:type} return ${3:expr}
53 | default return ${4:expr}
54 | snippet var
55 | declare variable $${1:varname} := ${2:expr};
56 | snippet fn
57 | declare function ${1:ns}:${2:name}(){
58 | ${3:expr}
59 | };
60 | snippet module
61 | module namespace ${1:ns} = "${2:http://www.example.com}";
62 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/yaml.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = require("../requirejs/text!./yaml.snippets");
5 | exports.scope = "yaml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/scripts/lib/ace/snippets/yaml.snippets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/basarat/TypeScriptEditor/b90d00b49f84eddd70a909254ef74eba34217bd2/scripts/lib/ace/snippets/yaml.snippets
--------------------------------------------------------------------------------
/scripts/lib/ace/test/all.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | "use strict";
32 |
33 | require("amd-loader");
34 | var test = require("asyncjs").test;
35 | test.walkTestCases(__dirname + "/..").exec();
36 |
--------------------------------------------------------------------------------
/scripts/lib/ace/test/asyncjs/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * async.js
3 | * Copyright(c) 2010 Fabian Jakobs
4 | * MIT Licensed
5 | */
6 |
7 | define(function(require, exports, module) {
8 |
9 | module.exports = require("./async")
10 | module.exports.test = require("./test")
11 | require("./utils")
12 |
13 | })
14 |
--------------------------------------------------------------------------------
/scripts/lib/ace/test/asyncjs/utils.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * async.js
3 | * Copyright(c) 2010 Fabian Jakobs
4 | * MIT Licensed
5 | */
6 |
7 | define(function(require, exports, module) {
8 |
9 | var async = require("asyncjs/async")
10 |
11 | async.plugin({
12 | delay: function(delay) {
13 | return this.each(function(item, next) {
14 | setTimeout(function() {
15 | next();
16 | }, delay)
17 | })
18 | },
19 |
20 | timeout: function(timeout) {
21 | timeout = timeout || 0
22 | var source = this.source
23 |
24 | this.next = function(callback) {
25 | var called
26 | var id = setTimeout(function() {
27 | called = true
28 | callback("Source did not respond after " + timeout + "ms!")
29 | }, timeout)
30 |
31 | source.next(function(err, value) {
32 | if (called)
33 | return
34 |
35 | called = true
36 | clearTimeout(id)
37 |
38 | callback(err, value)
39 | })
40 | }
41 | return new this.constructor(this)
42 | },
43 |
44 | get: function(key) {
45 | return this.map(function(value, next) {
46 | next(null, value[key])
47 | })
48 | },
49 |
50 | inspect: function() {
51 | return this.each(function(item, next) {
52 | console.log(JSON.stringify(item))
53 | next()
54 | })
55 | },
56 |
57 | print: function() {
58 | return this.each(function(item, next) {
59 | console.log(item)
60 | next()
61 | })
62 | }
63 | })
64 |
65 | })
66 |
--------------------------------------------------------------------------------
/scripts/lib/ace/test/mockdom.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | var dom = require('jsdom/lib/jsdom/level2/html').dom.level2.html;
4 | var browser = require('jsdom/lib/jsdom/browser/index').windowAugmentation(dom);
5 |
6 | global.document = browser.document;
7 | global.window = browser.window;
8 | global.self = browser.self;
9 | global.navigator = browser.navigator;
10 | global.location = browser.location;
11 |
--------------------------------------------------------------------------------
/scripts/lib/ace/test/tests.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Ace Unit Tests
7 |
21 |
22 |
23 |
24 |
25 |
26 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/ambiance.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright 2011 Irakli Gozalishvili. All rights reserved.
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
7 | * deal in the Software without restriction, including without limitation the
8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 | * sell 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
13 | * all 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
20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | * IN THE SOFTWARE.
22 | * ***** END LICENSE BLOCK ***** */
23 |
24 | define(function(require, exports, module) {
25 |
26 | exports.isDark = true;
27 | exports.cssClass = "ace-ambiance";
28 | exports.cssText = require("../requirejs/text!./ambiance.css");
29 |
30 | var dom = require("../lib/dom");
31 | dom.importCssString(exports.cssText, exports.cssClass);
32 |
33 | });
34 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/chaos.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright 2011 Irakli Gozalishvili. All rights reserved.
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
7 | * deal in the Software without restriction, including without limitation the
8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 | * sell 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
13 | * all 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
20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | * IN THE SOFTWARE.
22 | * ***** END LICENSE BLOCK ***** */
23 |
24 | define(function(require, exports, module) {
25 |
26 | exports.isDark = true;
27 | exports.cssClass = "ace-chaos";
28 | exports.cssText = require("../requirejs/text!./chaos.css");
29 |
30 | var dom = require("../lib/dom");
31 | dom.importCssString(exports.cssText, exports.cssClass);
32 |
33 | });
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/chrome.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-chrome";
35 | exports.cssText = require("../requirejs/text!./chrome.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/clouds.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-clouds";
35 | exports.cssText = require("../requirejs/text!./clouds.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/cobalt.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-cobalt";
35 | exports.cssText = require("../requirejs/text!./cobalt.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/dawn.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-dawn";
35 | exports.cssText = require("../requirejs/text!./dawn.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/dreamweaver.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 | exports.isDark = false;
33 | exports.cssClass = "ace-dreamweaver";
34 | exports.cssText = require("../requirejs/text!./dreamweaver.css");
35 |
36 | var dom = require("../lib/dom");
37 | dom.importCssString(exports.cssText, exports.cssClass);
38 | });
39 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/github.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-github";
35 | exports.cssText = require("../requirejs/text!./github.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/iplastic.js:
--------------------------------------------------------------------------------
1 |
2 | /* ***** BEGIN LICENSE BLOCK *****
3 | * Distributed under the BSD license:
4 | *
5 | * Copyright (c) 2010, Ajax.org B.V.
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | * * Redistributions of source code must retain the above copyright
11 | * notice, this list of conditions and the following disclaimer.
12 | * * Redistributions in binary form must reproduce the above copyright
13 | * notice, this list of conditions and the following disclaimer in the
14 | * documentation and/or other materials provided with the distribution.
15 | * * Neither the name of Ajax.org B.V. nor the
16 | * names of its contributors may be used to endorse or promote products
17 | * derived from this software without specific prior written permission.
18 | *
19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 | *
30 | * ***** END LICENSE BLOCK ***** */
31 |
32 | define(function(require, exports, module) {
33 |
34 | exports.isDark = false;
35 | exports.cssClass = "ace-iplastic";
36 | exports.cssText = require("../requirejs/text!./iplastic.css");
37 |
38 | var dom = require("../lib/dom");
39 | dom.importCssString(exports.cssText, exports.cssClass);
40 | });
41 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/kr_theme.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-kr-theme";
35 | exports.cssText = require("../requirejs/text!./kr_theme.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/kuroir.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-kuroir";
35 | exports.cssText = require("../requirejs/text!./kuroir.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/merbivore.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-merbivore";
35 | exports.cssText = require("../requirejs/text!./merbivore.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/monokai.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-monokai";
35 | exports.cssText = require("../requirejs/text!./monokai.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/sqlserver.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-sqlserver";
35 | exports.cssText = require("../requirejs/text!./sqlserver.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/terminal.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-terminal-theme";
35 | exports.cssText = require("../requirejs/text!./terminal.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/tomorrow.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-tomorrow";
35 | exports.cssText = require("../requirejs/text!./tomorrow.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/twilight.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-twilight";
35 | exports.cssText = require("../requirejs/text!./twilight.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/theme/xcode.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | define(function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-xcode";
35 | exports.cssText = require("../requirejs/text!./xcode.css");
36 |
37 | var dom = require("../lib/dom");
38 | dom.importCssString(exports.cssText, exports.cssClass);
39 | });
40 |
--------------------------------------------------------------------------------
/scripts/lib/ace/worker/mirror.js:
--------------------------------------------------------------------------------
1 | define(function(require, exports, module) {
2 | "use strict";
3 |
4 | var Range = require("../range").Range;
5 | var Document = require("../document").Document;
6 | var lang = require("../lib/lang");
7 |
8 | var Mirror = exports.Mirror = function(sender) {
9 | this.sender = sender;
10 | var doc = this.doc = new Document("");
11 |
12 | var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));
13 |
14 | var _self = this;
15 | sender.on("change", function(e) {
16 | var data = e.data;
17 | if (data[0].start) {
18 | doc.applyDeltas(data);
19 | } else {
20 | for (var i = 0; i < data.length; i += 2) {
21 | if (Array.isArray(data[i+1])) {
22 | var d = {action: "insert", start: data[i], lines: data[i+1]};
23 | } else {
24 | var d = {action: "remove", start: data[i], end: data[i+1]};
25 | }
26 | doc.applyDelta(d, true);
27 | }
28 | }
29 | if (_self.$timeout)
30 | return deferredUpdate.schedule(_self.$timeout);
31 | _self.onUpdate();
32 | });
33 | };
34 |
35 | (function() {
36 |
37 | this.$timeout = 500;
38 |
39 | this.setTimeout = function(timeout) {
40 | this.$timeout = timeout;
41 | };
42 |
43 | this.setValue = function(value) {
44 | this.doc.setValue(value);
45 | this.deferredUpdate.schedule(this.$timeout);
46 | };
47 |
48 | this.getValue = function(callbackId) {
49 | this.sender.callback(this.doc.getValue(), callbackId);
50 | };
51 |
52 | this.onUpdate = function() {
53 | // abstract method
54 | };
55 |
56 | this.isPending = function() {
57 | return this.deferredUpdate.isPending();
58 | };
59 |
60 | }).call(Mirror.prototype);
61 |
62 | });
63 |
--------------------------------------------------------------------------------
/scripts/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.5.0-alpha",
3 | "compilerOptions": {
4 | "target": "es5",
5 | "module": "amd",
6 | "declaration": false,
7 | "noImplicitAny": false,
8 | "removeComments": true,
9 | "noLib": false,
10 | "preserveConstEnums": true,
11 | "suppressImplicitAnyIndexErrors": true
12 | },
13 | "filesGlob": [
14 | "./**/*.ts",
15 | "!./node_modules/**/*.ts"
16 | ],
17 | "files": [
18 | "./AutoComplete.ts",
19 | "./AutoCompleteView.ts",
20 | "./CompletionService.ts",
21 | "./EditorPosition.ts",
22 | "./globals.d.ts",
23 | "./lib/ace/mode/typescript/DocumentPositionUtil.ts",
24 | "./lib/ace/mode/typescript/languageServiceHost.ts",
25 | "./lib/ace/mode/typescript/tsProject.ts",
26 | "./lib/ace/mode/typescript/typescriptService.d.ts",
27 | "./lib/ace/mode/typescript/typescript_worker.ts",
28 | "./main.ts",
29 | "./typings/ace/ace.d.ts",
30 | "./typings/tsd.d.ts",
31 | "./utils.ts"
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/scripts/tsd.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "v4",
3 | "repo": "borisyankov/DefinitelyTyped",
4 | "ref": "master",
5 | "path": "typings",
6 | "bundle": "typings/tsd.d.ts",
7 | "installed": {
8 | "ace/ace.d.ts": {
9 | "commit": "d67c5e3e1a1291ab58dcaace6ce76f69e860d33c"
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/scripts/typings/tsd.d.ts:
--------------------------------------------------------------------------------
1 |
2 | ///
3 |
--------------------------------------------------------------------------------
/scripts/utils.js:
--------------------------------------------------------------------------------
1 | define(["require", "exports"], function (require, exports) {
2 | function javascriptRun(js) {
3 | var external = window.open();
4 | var script = external.window.document.createElement("script");
5 | script.textContent = js;
6 | external.window.document.body.appendChild(script);
7 | }
8 | exports.javascriptRun = javascriptRun;
9 | function readFile(path, cb) {
10 | $.ajax({
11 | type: "GET",
12 | url: path,
13 | success: cb,
14 | error: (function (jqXHR, textStatus) { return console.log(textStatus); })
15 | });
16 | }
17 | exports.readFile = readFile;
18 | });
19 |
--------------------------------------------------------------------------------
/scripts/utils.ts:
--------------------------------------------------------------------------------
1 | export function javascriptRun(js) {
2 | var external = window.open();
3 | var script = external.window.document.createElement("script");
4 | script.textContent = js;
5 | external.window.document.body.appendChild(script);
6 | }
7 |
8 | export function readFile(path, cb) {
9 | $.ajax({
10 | type: "GET",
11 | url: path,
12 | success: cb,
13 | error: ((jqXHR, textStatus) => console.log(textStatus))
14 | });
15 | }
--------------------------------------------------------------------------------