├── .eslintignore ├── .eslintrc ├── .github ├── ISSUE_TEMPLATE │ ├── add-to-website.yml │ ├── bug-report.yml │ ├── config.yml │ ├── documentation.yml │ └── feature-request.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── backwards-compatibility-commenter.yml │ ├── close-stale-issues.yml │ ├── issue-reprioritization.yml │ ├── nodejs.yml │ └── publish.yml ├── .gitignore ├── .gitmodules ├── .nojekyll ├── CHANGELOG.md ├── CNAME ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── Makefile.dryice.js ├── Readme.md ├── _config.yml ├── ace-internal.d.ts ├── ace-modes.d.ts ├── ace.d.ts ├── amplify.yml ├── build_support ├── editor.html └── mini_require.js ├── demo ├── autocompletion.html ├── autoresize.html ├── code_lens.html ├── csp.html ├── diff │ ├── examples │ │ ├── editor.16.js │ │ ├── editor.17.js │ │ └── editor.40.js │ └── index.html ├── emmet.html ├── i18n.html ├── inline_autocompletion.html ├── keyboard_shortcuts.html ├── kitchen-sink │ ├── demo.js │ ├── dev_util.js │ ├── doclist.js │ ├── docs │ │ ├── .gitignore │ │ ├── Dockerfile │ │ ├── Makefile │ │ ├── abap.abap │ │ ├── abc.abc │ │ ├── actionscript.as │ │ ├── ada.ada │ │ ├── alda.alda │ │ ├── apex.apex │ │ ├── aql.aql │ │ ├── asciidoc.asciidoc │ │ ├── asl.dsl │ │ ├── assembly_arm32.s │ │ ├── assembly_x86.asm │ │ ├── astro.astro │ │ ├── autohotkey.ahk │ │ ├── basic.bas │ │ ├── batchfile.bat │ │ ├── bibtex.bib │ │ ├── c9search.c9search_results │ │ ├── c_cpp.cpp │ │ ├── cirru.cirru │ │ ├── clojure.clj │ │ ├── clue.clue │ │ ├── cobol.CBL │ │ ├── coffee.coffee │ │ ├── coldfusion.cfm │ │ ├── crystal.cr │ │ ├── csharp.cs │ │ ├── csound_document.csd │ │ ├── csound_orchestra.orc │ │ ├── csound_score.sco │ │ ├── css.css │ │ ├── csv.csv │ │ ├── curly.curly │ │ ├── cuttlefish.conf │ │ ├── d.d │ │ ├── dart.dart │ │ ├── diff.diff │ │ ├── django.djt │ │ ├── dot.dot │ │ ├── drools.drl │ │ ├── edifact.edi │ │ ├── eiffel.e │ │ ├── ejs.ejs │ │ ├── elixir.ex │ │ ├── elm.elm │ │ ├── erlang.erl │ │ ├── flix.flix │ │ ├── forth.frt │ │ ├── fortran.f │ │ ├── fsharp.fsi │ │ ├── fsl.fsl │ │ ├── ftl.ftl │ │ ├── gcode.gcode │ │ ├── gherkin.feature │ │ ├── glsl.glsl │ │ ├── gobstones.gbs │ │ ├── golang.go │ │ ├── graphqlschema.gql │ │ ├── groovy.groovy │ │ ├── haml.haml │ │ ├── handlebars.hbs │ │ ├── haskell.hs │ │ ├── haskell_cabal.cabal │ │ ├── haxe.hx │ │ ├── hjson.hjson │ │ ├── htaccess │ │ ├── html.html │ │ ├── html_elixir.eex │ │ ├── html_ruby.erb │ │ ├── ini.ini │ │ ├── io.io │ │ ├── ion.ion │ │ ├── jack.jack │ │ ├── jade.jade │ │ ├── java.java │ │ ├── javascript.js │ │ ├── jexl.jexl │ │ ├── json.json │ │ ├── json5.json5 │ │ ├── jsoniq.jq │ │ ├── jsp.jsp │ │ ├── jssm.jssm │ │ ├── jsx.jsx │ │ ├── julia.jl │ │ ├── kotlin.kt │ │ ├── latex.tex │ │ ├── latte.latte │ │ ├── less.less │ │ ├── liquid.liquid │ │ ├── lisp.lisp │ │ ├── livescript.ls │ │ ├── logiql.logic │ │ ├── logtalk.lgt │ │ ├── lsl.lsl │ │ ├── lua.lua │ │ ├── luapage.lp │ │ ├── lucene.lucene │ │ ├── markdown.md │ │ ├── mask.mask │ │ ├── matlab.matlab │ │ ├── maze.mz │ │ ├── mediawiki.wiki │ │ ├── mel.mel │ │ ├── mips.s │ │ ├── mixal.mixal │ │ ├── mushcode.mc │ │ ├── mysql.mysql │ │ ├── nasal.nas │ │ ├── nginx.nginx │ │ ├── nim.nim │ │ ├── nix.nix │ │ ├── nsis.nsi │ │ ├── nunjucks.nunjucks │ │ ├── objectivec.m │ │ ├── ocaml.ml │ │ ├── odin.odin │ │ ├── partiql.partiql │ │ ├── pascal.pas │ │ ├── perl.pl │ │ ├── pgsql.pgsql │ │ ├── php.php │ │ ├── php_laravel_blade.blade.php │ │ ├── pig.pig │ │ ├── plaintext.txt │ │ ├── plsql.plsql │ │ ├── powershell.ps1 │ │ ├── praat.praat │ │ ├── prisma.prisma │ │ ├── prolog.plg │ │ ├── properties.properties │ │ ├── protobuf.proto │ │ ├── prql.prql │ │ ├── puppet.epp │ │ ├── python.py │ │ ├── qml.qml │ │ ├── r.r │ │ ├── raku.raku │ │ ├── razor.cshtml │ │ ├── rdoc.Rd │ │ ├── red.red │ │ ├── rhtml.Rhtml │ │ ├── robot.robot │ │ ├── rst.rst │ │ ├── ruby.rb │ │ ├── rust.rs │ │ ├── sac.sac │ │ ├── sass.sass │ │ ├── scad.scad │ │ ├── scala.scala │ │ ├── scheme.scm │ │ ├── scrypt.scrypt │ │ ├── scss.scss │ │ ├── sh.sh │ │ ├── sjs.sjs │ │ ├── slim.slim │ │ ├── smarty.smarty │ │ ├── smithy.smithy │ │ ├── snippets.snippets │ │ ├── soy_template.soy │ │ ├── space.space │ │ ├── sparql.rq │ │ ├── sql.sql │ │ ├── sqlserver.sqlserver │ │ ├── stylus.styl │ │ ├── svg.svg │ │ ├── swift.swift │ │ ├── tcl.tcl │ │ ├── terraform.tf │ │ ├── tex.tex │ │ ├── text.txt │ │ ├── textile.textile │ │ ├── toml.toml │ │ ├── tsv.tsv │ │ ├── tsx.tsx │ │ ├── turtle.ttl │ │ ├── twig.twig │ │ ├── typescript.ts │ │ ├── vala.vala │ │ ├── vbscript.vbs │ │ ├── velocity.vm │ │ ├── verilog.v │ │ ├── vhdl.vhd │ │ ├── visualforce.vfp │ │ ├── vue.vue │ │ ├── wollok.wlk │ │ ├── xml.xml │ │ ├── xquery.xq │ │ ├── yaml.yaml │ │ ├── zeek.zeek │ │ └── zig.zig │ ├── file_drop.js │ ├── inline_editor.js │ ├── layout.js │ ├── logo.png │ ├── require.js │ ├── styles.css │ ├── token_tooltip.js │ └── util.js ├── modelist.html ├── r.js │ ├── build.js │ └── editor.html ├── requirejs+build.html ├── scrollable-page.html ├── settings_menu.html ├── shadow-dom.html ├── show_own_source.js ├── static-highlighter.html ├── static-highlighter │ ├── client.html │ └── server.js ├── statusbar.html ├── svg.svg ├── test_ace_builds │ ├── index.ts │ ├── package.json │ └── tsconfig.json ├── test_package │ ├── index.ts │ ├── package.json │ └── tsconfig.json ├── toolbar.html ├── transform.html ├── webpack │ ├── demo.js │ ├── demo.ts │ ├── index.html │ ├── package.json │ └── webpack.config.js └── xml.xml ├── doc ├── README.md ├── additionalObjs.json ├── build.js ├── index.md ├── package.json ├── site │ ├── css │ │ ├── bootstrap.no-icons.min.css │ │ └── font-awesome.css │ ├── images │ │ ├── ace-logo.png │ │ ├── ace-tab.png │ │ ├── body_background.png │ │ ├── cloud9-logo.png │ │ ├── codecademy-logo.png │ │ ├── codiad.png │ │ ├── empty-logo.png │ │ ├── favicon.ico │ │ ├── fork_on_github.png │ │ ├── habitat-logo.svg │ │ ├── ideone-logo.png │ │ ├── khan-logo.png │ │ ├── logo.png │ │ ├── logo_half.png │ │ ├── modx-logo-4.png │ │ ├── plunker.png │ │ ├── rstudio_logo_64.png │ │ ├── sassmeister-logo.png │ │ ├── shiftedit-logo.png │ │ ├── sx-logo.png │ │ └── textimage.png │ ├── iphone.css │ ├── js │ │ ├── bootstrap.min.js │ │ ├── ga.js │ │ ├── jquery.min.js │ │ └── main.js │ └── style.css └── template │ ├── jade │ ├── common_layout.jade │ ├── layout.jade │ └── lib.jade │ └── resources │ ├── csses │ └── ace_api.css │ ├── font │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff │ ├── images │ ├── Ace_ERD.png │ ├── ace_logo.png │ ├── ace_logo_menu.png │ ├── c9-log-footer.png │ ├── c9-sponsor.png │ ├── cloud9-logo.png │ ├── content-top.png │ ├── content_bg.png │ ├── content_top_bg.png │ ├── dashed_back.png │ ├── footer-bg.png │ ├── main_bg.png │ ├── member-sprites.png │ ├── menu_disc.png │ ├── method_bg.png │ ├── scrolled-heading-shadow.png │ ├── sidebar-top-bg.png │ ├── sidebar_border.png │ └── swirl_divider.png │ └── javascripts │ ├── bbq.js │ ├── bootstrap.js │ ├── clicker.js │ ├── disqus-ext.js │ ├── jquery-scrollspy.js │ ├── jquery.collapse.js │ ├── jquery.cookie.js │ ├── plugins.js │ ├── prettify-extension.js │ ├── prettify.js │ └── ux.js ├── experiments ├── animate_folding.html ├── basic_animation.html ├── capture.html ├── cut_copy.html ├── debug_mem_leak.html ├── dom.html ├── triple_click.html ├── worker.html ├── worker.js └── zenbg.png ├── index.html ├── kitchen-sink.html ├── lib └── ace │ ├── loader_build.js │ ├── mode │ ├── _test │ │ ├── tokens_jsoniq.json │ │ └── tokens_xquery.json │ ├── coffee │ │ ├── coffee.js │ │ └── parser_test.js │ ├── coffee_worker.js │ ├── css │ │ └── csslint.js │ ├── css_worker.js │ ├── css_worker_test.js │ ├── html │ │ └── saxparser.js │ ├── html_worker.js │ ├── javascript │ │ └── jshint.js │ ├── javascript_worker.js │ ├── javascript_worker_test.js │ ├── json │ │ └── json_parse.js │ ├── json_worker.js │ ├── json_worker_test.js │ ├── jsoniq.js │ ├── lua │ │ └── luaparse.js │ ├── lua_worker.js │ ├── php │ │ └── php.js │ ├── php_worker.js │ ├── xml │ │ ├── dom-parser.js │ │ ├── dom.js │ │ └── sax.js │ ├── xml_worker.js │ ├── xquery.js │ ├── xquery │ │ ├── Readme.md │ │ ├── jsoniq_lexer.js │ │ ├── xqlint.js │ │ └── xquery_lexer.js │ ├── xquery_worker.js │ ├── yaml │ │ └── yaml-lint.js │ ├── yaml_worker.js │ └── yaml_worker_test.js │ ├── snippets │ ├── jsoniq.js │ ├── jsoniq.snippets.js │ ├── xquery.js │ └── xquery.snippets.js │ └── worker │ ├── mirror.js │ ├── worker.js │ ├── worker_client.js │ ├── worker_client_v2.js │ ├── worker_test.js │ └── worker_v2.js ├── package.json ├── src ├── ace.js ├── ace_test.js ├── anchor.js ├── anchor_test.js ├── apply_delta.js ├── autocomplete.js ├── autocomplete │ ├── inline.js │ ├── inline_screenreader.js │ ├── inline_test.js │ ├── popup.js │ ├── popup_test.js │ ├── text_completer.js │ └── util.js ├── autocomplete_test.js ├── background_tokenizer.js ├── background_tokenizer_test.js ├── bidihandler.js ├── clipboard.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.js │ └── 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_commands_test.js ├── editor_highlight_selected_word_test.js ├── editor_navigation_test.js ├── editor_options_test.js ├── editor_text_edit_test.js ├── ext │ ├── beautify.js │ ├── beautify_test.js │ ├── code_lens.js │ ├── code_lens_test.js │ ├── command_bar.js │ ├── command_bar_test.js │ ├── diff │ │ ├── base_diff_view.js │ │ ├── diff_test.js │ │ ├── diff_view.js │ │ ├── gutter_decorator.js │ │ ├── inline_diff_view.js │ │ ├── providers │ │ │ └── default.js │ │ ├── scroll_diff_decorator.js │ │ └── styles-css.js │ ├── elastic_tabstops_lite.js │ ├── emmet.js │ ├── emmet_test.js │ ├── error_marker.js │ ├── error_marker_test.js │ ├── hardwrap.js │ ├── hardwrap_test.js │ ├── inline_autocomplete.js │ ├── inline_autocomplete_test.js │ ├── keybinding_menu.js │ ├── language_tools.js │ ├── linking.js │ ├── menu_tools │ │ ├── get_editor_keyboard_shortcuts.js │ │ ├── overlay_page.js │ │ └── settings_menu.css.js │ ├── modelist.js │ ├── options.js │ ├── prompt.js │ ├── rtl.js │ ├── searchbox-css.js │ ├── searchbox.js │ ├── settings_menu.js │ ├── simple_tokenizer.js │ ├── simple_tokenizer_test.js │ ├── spellcheck.js │ ├── split.js │ ├── static-css.js │ ├── 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 │ ├── gutter_handler.js │ ├── gutter_handler_test.js │ ├── hash_handler.js │ ├── keybinding.js │ ├── keybinding_test.js │ ├── sublime.js │ ├── sublime_test.js │ ├── textarea.js │ ├── textinput.js │ ├── textinput_test.js │ ├── vim.js │ ├── vim_ace_test.js │ ├── vim_test.js │ └── vscode.js ├── layer │ ├── cursor.js │ ├── decorators.js │ ├── font_metrics.js │ ├── gutter.js │ ├── gutter_test.js │ ├── lines.js │ ├── marker.js │ ├── text.js │ ├── text_test.js │ └── text_util.js ├── lib │ ├── app_config.js │ ├── bidiutil.js │ ├── deep_copy.js │ ├── default_english_messages.js │ ├── dom.js │ ├── es6-shim.js │ ├── event.js │ ├── event_emitter.js │ ├── event_emitter_test.js │ ├── fixoldbrowsers.js │ ├── keys.js │ ├── lang.js │ ├── net.js │ ├── oop.js │ ├── report_error.js │ ├── scroll.js │ └── useragent.js ├── line_widgets.js ├── marker_group.js ├── marker_group_test.js ├── mode │ ├── _test │ │ ├── Readme.md │ │ ├── highlight_rules_test.js │ │ ├── text_alda.txt │ │ ├── text_asciidoc.txt │ │ ├── text_coffee.txt │ │ ├── text_coldfusion.txt │ │ ├── text_curly.txt │ │ ├── text_ejs.txt │ │ ├── text_gobstones.txt │ │ ├── text_html.txt │ │ ├── text_javascript.txt │ │ ├── text_livescript.txt │ │ ├── text_lucene.txt │ │ ├── text_markdown.txt │ │ ├── text_php.txt │ │ ├── text_prisma.txt │ │ ├── text_ruby.txt │ │ ├── text_rust.txt │ │ ├── text_verilog.txt │ │ ├── text_wollok.txt │ │ ├── text_xml.txt │ │ ├── text_yaml.txt │ │ ├── tokens_abap.json │ │ ├── tokens_abc.json │ │ ├── tokens_actionscript.json │ │ ├── tokens_ada.json │ │ ├── tokens_alda.json │ │ ├── tokens_apex.json │ │ ├── tokens_aql.json │ │ ├── tokens_asciidoc.json │ │ ├── tokens_asl.json │ │ ├── tokens_assembly_x86.json │ │ ├── tokens_autohotkey.json │ │ ├── tokens_basic.json │ │ ├── tokens_batchfile.json │ │ ├── tokens_bibtex.json │ │ ├── tokens_c9search.json │ │ ├── tokens_c_cpp.json │ │ ├── tokens_cirru.json │ │ ├── tokens_clojure.json │ │ ├── tokens_cobol.json │ │ ├── tokens_coffee.json │ │ ├── tokens_coldfusion.json │ │ ├── tokens_crystal.json │ │ ├── tokens_csharp.json │ │ ├── tokens_csound_document.json │ │ ├── tokens_csound_orchestra.json │ │ ├── tokens_csound_score.json │ │ ├── tokens_csp.json │ │ ├── tokens_css.json │ │ ├── tokens_csv.json │ │ ├── tokens_curly.json │ │ ├── tokens_d.json │ │ ├── tokens_dart.json │ │ ├── tokens_diff.json │ │ ├── tokens_django.json │ │ ├── tokens_dot.json │ │ ├── tokens_drools.json │ │ ├── tokens_edifact.json │ │ ├── tokens_eiffel.json │ │ ├── tokens_ejs.json │ │ ├── tokens_elixir.json │ │ ├── tokens_elm.json │ │ ├── tokens_erlang.json │ │ ├── tokens_flix.json │ │ ├── tokens_forth.json │ │ ├── tokens_fortran.json │ │ ├── tokens_fsharp.json │ │ ├── tokens_fsl.json │ │ ├── tokens_ftl.json │ │ ├── tokens_gcode.json │ │ ├── tokens_gherkin.json │ │ ├── tokens_gitignore.json │ │ ├── tokens_glsl.json │ │ ├── tokens_gobstones.json │ │ ├── tokens_golang.json │ │ ├── tokens_graphqlschema.json │ │ ├── tokens_groovy.json │ │ ├── tokens_haml.json │ │ ├── tokens_handlebars.json │ │ ├── tokens_haskell.json │ │ ├── tokens_haskell_cabal.json │ │ ├── tokens_haxe.json │ │ ├── tokens_hjson.json │ │ ├── tokens_html.json │ │ ├── tokens_html_elixir.json │ │ ├── tokens_html_ruby.json │ │ ├── tokens_ini.json │ │ ├── tokens_io.json │ │ ├── tokens_ion.json │ │ ├── tokens_jack.json │ │ ├── tokens_jade.json │ │ ├── tokens_java.json │ │ ├── tokens_javascript.json │ │ ├── tokens_jexl.json │ │ ├── tokens_json.json │ │ ├── tokens_json5.json │ │ ├── tokens_jsp.json │ │ ├── tokens_jssm.json │ │ ├── tokens_jsx.json │ │ ├── tokens_julia.json │ │ ├── tokens_kotlin.json │ │ ├── tokens_latex.json │ │ ├── tokens_latte.json │ │ ├── tokens_less.json │ │ ├── tokens_liquid.json │ │ ├── tokens_lisp.json │ │ ├── tokens_livescript.json │ │ ├── tokens_logiql.json │ │ ├── tokens_logtalk.json │ │ ├── tokens_lsl.json │ │ ├── tokens_lua.json │ │ ├── tokens_luapage.json │ │ ├── tokens_lucene.json │ │ ├── tokens_markdown.json │ │ ├── tokens_mask.json │ │ ├── tokens_matlab.json │ │ ├── tokens_maze.json │ │ ├── tokens_mediawiki.json │ │ ├── tokens_mel.json │ │ ├── tokens_mips.json │ │ ├── tokens_mixal.json │ │ ├── tokens_mushcode.json │ │ ├── tokens_mysql.json │ │ ├── tokens_nasal.json │ │ ├── tokens_nginx.json │ │ ├── tokens_nim.json │ │ ├── tokens_nix.json │ │ ├── tokens_nsis.json │ │ ├── tokens_nunjucks.json │ │ ├── tokens_objectivec.json │ │ ├── tokens_ocaml.json │ │ ├── tokens_odin.json │ │ ├── tokens_partiql.json │ │ ├── tokens_pascal.json │ │ ├── tokens_perl.json │ │ ├── tokens_pgsql.json │ │ ├── tokens_php.json │ │ ├── tokens_php_laravel_blade.json │ │ ├── tokens_pig.json │ │ ├── tokens_plsql.json │ │ ├── tokens_powershell.json │ │ ├── tokens_praat.json │ │ ├── tokens_prisma.json │ │ ├── tokens_prolog.json │ │ ├── tokens_properties.json │ │ ├── tokens_protobuf.json │ │ ├── tokens_puppet.json │ │ ├── tokens_python.json │ │ ├── tokens_qml.json │ │ ├── tokens_r.json │ │ ├── tokens_raku.json │ │ ├── tokens_razor.json │ │ ├── tokens_rdoc.json │ │ ├── tokens_red.json │ │ ├── tokens_rhtml.json │ │ ├── tokens_robot.json │ │ ├── tokens_rst.json │ │ ├── tokens_ruby.json │ │ ├── tokens_rust.json │ │ ├── tokens_sac.json │ │ ├── tokens_sass.json │ │ ├── tokens_scad.json │ │ ├── tokens_scala.json │ │ ├── tokens_scheme.json │ │ ├── tokens_scrypt.json │ │ ├── tokens_scss.json │ │ ├── tokens_sh.json │ │ ├── tokens_sjs.json │ │ ├── tokens_slim.json │ │ ├── tokens_smarty.json │ │ ├── tokens_smithy.json │ │ ├── tokens_snippets.json │ │ ├── tokens_soy_template.json │ │ ├── tokens_space.json │ │ ├── tokens_sparql.json │ │ ├── tokens_sql.json │ │ ├── tokens_sqlserver.json │ │ ├── tokens_stylus.json │ │ ├── tokens_svg.json │ │ ├── tokens_swift.json │ │ ├── tokens_tcl.json │ │ ├── tokens_terraform.json │ │ ├── tokens_tex.json │ │ ├── tokens_text.json │ │ ├── tokens_textile.json │ │ ├── tokens_toml.json │ │ ├── tokens_tsv.json │ │ ├── tokens_tsx.json │ │ ├── tokens_turtle.json │ │ ├── tokens_twig.json │ │ ├── tokens_typescript.json │ │ ├── tokens_vala.json │ │ ├── tokens_vbscript.json │ │ ├── tokens_velocity.json │ │ ├── tokens_verilog.json │ │ ├── tokens_vhdl.json │ │ ├── tokens_visualforce.json │ │ ├── tokens_vue.json │ │ ├── tokens_wollok.json │ │ ├── tokens_xml.json │ │ ├── tokens_yaml.json │ │ └── tokens_zeek.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 │ ├── ada_test.js │ ├── alda.js │ ├── alda_highlight_rules.js │ ├── apache_conf.js │ ├── apache_conf_highlight_rules.js │ ├── apex.js │ ├── apex_highlight_rules.js │ ├── applescript.js │ ├── applescript_highlight_rules.js │ ├── aql.js │ ├── aql_highlight_rules.js │ ├── asciidoc.js │ ├── asciidoc_highlight_rules.js │ ├── asl.js │ ├── asl_highlight_rules.js │ ├── assembly_arm32.js │ ├── assembly_arm32_highlight_rules.js │ ├── assembly_x86.js │ ├── assembly_x86_highlight_rules.js │ ├── astro.js │ ├── astro_highlight_rules.js │ ├── autohotkey.js │ ├── autohotkey_highlight_rules.js │ ├── basic.js │ ├── basic_highlight_rules.js │ ├── batchfile.js │ ├── batchfile_highlight_rules.js │ ├── behaviour.js │ ├── behaviour │ │ ├── behaviour_test.js │ │ ├── css.js │ │ ├── cstyle.js │ │ ├── html.js │ │ ├── javascript.js │ │ ├── liquid.js │ │ ├── xml.js │ │ └── xquery.js │ ├── bibtex.js │ ├── bibtex_highlight_rules.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 │ ├── clue.js │ ├── clue_highlight_rules.js │ ├── cobol.js │ ├── cobol_highlight_rules.js │ ├── coffee.js │ ├── coffee_highlight_rules.js │ ├── coldfusion.js │ ├── coldfusion_highlight_rules.js │ ├── coldfusion_test.js │ ├── crystal.js │ ├── crystal_highlight_rules.js │ ├── csharp.js │ ├── csharp_highlight_rules.js │ ├── csound_document.js │ ├── csound_document_highlight_rules.js │ ├── csound_orchestra.js │ ├── csound_orchestra_highlight_rules.js │ ├── csound_preprocessor_highlight_rules.js │ ├── csound_score.js │ ├── csound_score_highlight_rules.js │ ├── csp.js │ ├── csp_highlight_rules.js │ ├── css.js │ ├── css_completions.js │ ├── css_highlight_rules.js │ ├── css_test.js │ ├── csv.js │ ├── csv_highlight_rules.js │ ├── curly.js │ ├── curly_highlight_rules.js │ ├── cuttlefish.js │ ├── cuttlefish_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 │ ├── drools.js │ ├── drools_highlight_rules.js │ ├── edifact.js │ ├── edifact_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 │ ├── flix.js │ ├── flix_highlight_rules.js │ ├── folding │ │ ├── asciidoc.js │ │ ├── basic.js │ │ ├── basic_test.js │ │ ├── c9search.js │ │ ├── coffee.js │ │ ├── coffee_test.js │ │ ├── csharp.js │ │ ├── cstyle.js │ │ ├── cstyle_test.js │ │ ├── diff.js │ │ ├── drools.js │ │ ├── drools_test.js │ │ ├── fold_mode.js │ │ ├── fold_mode_test.js │ │ ├── haskell_cabal.js │ │ ├── html.js │ │ ├── html_test.js │ │ ├── ini.js │ │ ├── java.js │ │ ├── javascript.js │ │ ├── javascript_test.js │ │ ├── latex.js │ │ ├── latex_test.js │ │ ├── lua.js │ │ ├── lua_test.js │ │ ├── markdown.js │ │ ├── mixed.js │ │ ├── nunjucks.js │ │ ├── nunjucks_test.js │ │ ├── php.js │ │ ├── php_test.js │ │ ├── pythonic.js │ │ ├── pythonic_test.js │ │ ├── ruby.js │ │ ├── ruby_test.js │ │ ├── sql.js │ │ ├── sqlserver.js │ │ ├── vbscript.js │ │ ├── vbscript_test.js │ │ ├── velocity.js │ │ ├── xml.js │ │ ├── xml_test.js │ │ ├── yaml.js │ │ └── yaml_test.js │ ├── forth.js │ ├── forth_highlight_rules.js │ ├── fortran.js │ ├── fortran_highlight_rules.js │ ├── fsharp.js │ ├── fsharp_highlight_rules.js │ ├── fsl.js │ ├── fsl_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 │ ├── gobstones.js │ ├── gobstones_highlight_rules.js │ ├── golang.js │ ├── golang_highlight_rules.js │ ├── graphqlschema.js │ ├── graphqlschema_highlight_rules.js │ ├── groovy.js │ ├── groovy_highlight_rules.js │ ├── haml.js │ ├── haml_highlight_rules.js │ ├── handlebars.js │ ├── handlebars_highlight_rules.js │ ├── haskell.js │ ├── haskell_cabal.js │ ├── haskell_cabal_highlight_rules.js │ ├── haskell_highlight_rules.js │ ├── haxe.js │ ├── haxe_highlight_rules.js │ ├── hjson.js │ ├── hjson_highlight_rules.js │ ├── html.js │ ├── html_completions.js │ ├── html_elixir.js │ ├── html_elixir_highlight_rules.js │ ├── html_highlight_rules.js │ ├── html_ruby.js │ ├── html_ruby_highlight_rules.js │ ├── html_test.js │ ├── ini.js │ ├── ini_highlight_rules.js │ ├── io.js │ ├── io_highlight_rules.js │ ├── ion.js │ ├── ion_highlight_rules.js │ ├── jack.js │ ├── jack_highlight_rules.js │ ├── jade.js │ ├── jade_highlight_rules.js │ ├── java.js │ ├── java_highlight_rules.js │ ├── javascript.js │ ├── javascript_highlight_rules.js │ ├── javascript_test.js │ ├── jexl.js │ ├── jexl_highlight_rules.js │ ├── js_regex_highlight_rules.js │ ├── jsdoc_comment_highlight_rules.js │ ├── json.js │ ├── json5.js │ ├── json5_highlight_rules.js │ ├── json_highlight_rules.js │ ├── jsp.js │ ├── jsp_highlight_rules.js │ ├── jssm.js │ ├── jssm_highlight_rules.js │ ├── jsx.js │ ├── jsx_highlight_rules.js │ ├── julia.js │ ├── julia_highlight_rules.js │ ├── kotlin.js │ ├── kotlin_highlight_rules.js │ ├── latex.js │ ├── latex_highlight_rules.js │ ├── latte.js │ ├── latte_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 │ ├── logtalk.js │ ├── logtalk_highlight_rules.js │ ├── lsl.js │ ├── lsl_highlight_rules.js │ ├── lua.js │ ├── lua_highlight_rules.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 │ ├── maze.js │ ├── maze_highlight_rules.js │ ├── mediawiki.js │ ├── mediawiki_highlight_rules.js │ ├── mel.js │ ├── mel_highlight_rules.js │ ├── mips.js │ ├── mips_highlight_rules.js │ ├── mixal.js │ ├── mixal_highlight_rules.js │ ├── mushcode.js │ ├── mushcode_highlight_rules.js │ ├── mysql.js │ ├── mysql_highlight_rules.js │ ├── nasal.js │ ├── nasal_highlight_rules.js │ ├── nginx.js │ ├── nginx_highlight_rules.js │ ├── nim.js │ ├── nim_highlight_rules.js │ ├── nix.js │ ├── nix_highlight_rules.js │ ├── nsis.js │ ├── nsis_highlight_rules.js │ ├── nunjucks.js │ ├── nunjucks_highlight_rules.js │ ├── objectivec.js │ ├── objectivec_highlight_rules.js │ ├── ocaml.js │ ├── ocaml_highlight_rules.js │ ├── odin.js │ ├── odin_highlight_rules.js │ ├── odin_test.js │ ├── partiql.js │ ├── partiql_highlight_rules.js │ ├── pascal.js │ ├── pascal_highlight_rules.js │ ├── perl.js │ ├── perl_highlight_rules.js │ ├── pgsql.js │ ├── pgsql_highlight_rules.js │ ├── php.js │ ├── php_completions.js │ ├── php_highlight_rules.js │ ├── php_laravel_blade.js │ ├── php_laravel_blade_highlight_rules.js │ ├── php_test.js │ ├── pig.js │ ├── pig_highlight_rules.js │ ├── plain_text.js │ ├── plain_text_test.js │ ├── plsql.js │ ├── plsql_highlight_rules.js │ ├── powershell.js │ ├── powershell_highlight_rules.js │ ├── praat.js │ ├── praat_highlight_rules.js │ ├── prisma.js │ ├── prisma_highlight_rules.js │ ├── prolog.js │ ├── prolog_highlight_rules.js │ ├── properties.js │ ├── properties_highlight_rules.js │ ├── protobuf.js │ ├── protobuf_highlight_rules.js │ ├── prql.js │ ├── prql_highlight_rules.js │ ├── puppet.js │ ├── puppet_highlight_rules.js │ ├── python.js │ ├── python_highlight_rules.js │ ├── python_test.js │ ├── qml.js │ ├── qml_highlight_rules.js │ ├── r.js │ ├── r_highlight_rules.js │ ├── raku.js │ ├── raku_highlight_rules.js │ ├── razor.js │ ├── razor_completions.js │ ├── razor_highlight_rules.js │ ├── rdoc.js │ ├── rdoc_highlight_rules.js │ ├── red.js │ ├── red_highlight_rules.js │ ├── redshift.js │ ├── redshift_highlight_rules.js │ ├── rhtml.js │ ├── rhtml_highlight_rules.js │ ├── robot.js │ ├── robot_highlight_rules.js │ ├── rst.js │ ├── rst_highlight_rules.js │ ├── ruby.js │ ├── ruby_highlight_rules.js │ ├── ruby_test.js │ ├── rust.js │ ├── rust_highlight_rules.js │ ├── sac.js │ ├── sac_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 │ ├── scrypt.js │ ├── scrypt_highlight_rules.js │ ├── scss.js │ ├── scss_highlight_rules.js │ ├── sh.js │ ├── sh_highlight_rules.js │ ├── sjs.js │ ├── sjs_highlight_rules.js │ ├── slim.js │ ├── slim_highlight_rules.js │ ├── smarty.js │ ├── smarty_highlight_rules.js │ ├── smithy.js │ ├── smithy_highlight_rules.js │ ├── snippets.js │ ├── soy_template.js │ ├── soy_template_highlight_rules.js │ ├── space.js │ ├── space_highlight_rules.js │ ├── sparql.js │ ├── sparql_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 │ ├── swift.js │ ├── swift_highlight_rules.js │ ├── tcl.js │ ├── tcl_highlight_rules.js │ ├── terraform.js │ ├── terraform_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 │ ├── tsv.js │ ├── tsv_highlight_rules.js │ ├── tsx.js │ ├── tsx_highlight_rules.js │ ├── turtle.js │ ├── turtle_highlight_rules.js │ ├── twig.js │ ├── twig_highlight_rules.js │ ├── typescript.js │ ├── typescript_highlight_rules.js │ ├── vala.js │ ├── vala_highlight_rules.js │ ├── vbscript.js │ ├── vbscript_highlight_rules.js │ ├── vbscript_test.js │ ├── velocity.js │ ├── velocity_highlight_rules.js │ ├── verilog.js │ ├── verilog_highlight_rules.js │ ├── vhdl.js │ ├── vhdl_highlight_rules.js │ ├── visualforce.js │ ├── visualforce_highlight_rules.js │ ├── vue.js │ ├── vue_highlight_rules.js │ ├── wollok.js │ ├── wollok_highlight_rules.js │ ├── xml.js │ ├── xml_highlight_rules.js │ ├── xml_test.js │ ├── yaml.js │ ├── yaml_highlight_rules.js │ ├── zeek.js │ ├── zeek_highlight_rules.js │ ├── zig.js │ └── zig_highlight_rules.js ├── mouse │ ├── default_gutter_handler.js │ ├── default_gutter_handler_test.js │ ├── default_handlers.js │ ├── dragdrop_handler.js │ ├── fold_handler.js │ ├── mouse_event.js │ ├── mouse_handler.js │ ├── mouse_handler_test.js │ ├── multi_select_handler.js │ └── touch_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 ├── scrollbar.js ├── scrollbar_custom.js ├── scrollbar_test.js ├── search.js ├── search_highlight.js ├── search_test.js ├── selection.js ├── selection_test.js ├── snippets.js ├── snippets │ ├── abc.js │ ├── abc.snippets.js │ ├── actionscript.js │ ├── actionscript.snippets.js │ ├── c_cpp.js │ ├── c_cpp.snippets.js │ ├── clojure.js │ ├── clojure.snippets.js │ ├── coffee.js │ ├── coffee.snippets.js │ ├── csound_document.js │ ├── csound_document.snippets.js │ ├── csound_orchestra.js │ ├── csound_orchestra.snippets.js │ ├── css.js │ ├── css.snippets.js │ ├── dart.js │ ├── dart.snippets.js │ ├── diff.js │ ├── diff.snippets.js │ ├── django.js │ ├── django.snippets.js │ ├── drools.js │ ├── drools.snippets.js │ ├── edifact.js │ ├── edifact.snippets.js │ ├── erlang.js │ ├── erlang.snippets.js │ ├── fsl.js │ ├── fsl.snippets.js │ ├── gobstones.js │ ├── gobstones.snippets.js │ ├── graphqlschema.js │ ├── graphqlschema.snippets.js │ ├── haml.js │ ├── haml.snippets.js │ ├── haskell.js │ ├── haskell.snippets.js │ ├── html.js │ ├── html.snippets.js │ ├── io.js │ ├── java.js │ ├── java.snippets.js │ ├── javascript.js │ ├── javascript.snippets.js │ ├── jsp.js │ ├── jsp.snippets.js │ ├── liquid.js │ ├── liquid.snippets.js │ ├── lsl.js │ ├── lsl.snippets.js │ ├── lua.js │ ├── lua.snippets.js │ ├── makefile.js │ ├── makefile.snippets.js │ ├── markdown.js │ ├── markdown.snippets.js │ ├── maze.js │ ├── maze.snippets.js │ ├── perl.js │ ├── perl.snippets.js │ ├── php.js │ ├── php.snippets.js │ ├── python.js │ ├── python.snippets.js │ ├── r.js │ ├── r.snippets.js │ ├── razor.js │ ├── razor.snippets.js │ ├── robot.js │ ├── robot.snippets.js │ ├── rst.js │ ├── rst.snippets.js │ ├── ruby.js │ ├── ruby.snippets.js │ ├── sh.js │ ├── sh.snippets.js │ ├── snippets.js │ ├── snippets.snippets.js │ ├── sql.js │ ├── sql.snippets.js │ ├── sqlserver.js │ ├── sqlserver.snippets.js │ ├── tcl.js │ ├── tcl.snippets.js │ ├── tex.js │ ├── tex.snippets.js │ ├── textile.js │ ├── textile.snippets.js │ ├── vala.js │ ├── velocity.js │ ├── velocity.snippets.js │ ├── wollok.js │ └── wollok.snippets.js ├── 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 │ ├── mockdom_test.js │ ├── mockrenderer.js │ ├── tests.html │ ├── update_test_list.js │ ├── user.js │ └── util.js ├── theme │ ├── ambiance-css.js │ ├── ambiance.js │ ├── chaos-css.js │ ├── chaos.js │ ├── chrome-css.js │ ├── chrome.js │ ├── cloud9_day-css.js │ ├── cloud9_day.js │ ├── cloud9_night-css.js │ ├── cloud9_night.js │ ├── cloud9_night_low_color-css.js │ ├── cloud9_night_low_color.js │ ├── cloud_editor-css.js │ ├── cloud_editor.js │ ├── cloud_editor_dark-css.js │ ├── cloud_editor_dark.js │ ├── clouds-css.js │ ├── clouds.js │ ├── clouds_midnight-css.js │ ├── clouds_midnight.js │ ├── cobalt-css.js │ ├── cobalt.js │ ├── crimson_editor-css.js │ ├── crimson_editor.js │ ├── dawn-css.js │ ├── dawn.js │ ├── dracula-css.js │ ├── dracula.js │ ├── dreamweaver-css.js │ ├── dreamweaver.js │ ├── eclipse-css.js │ ├── eclipse.js │ ├── github-css.js │ ├── github.js │ ├── github_dark-css.js │ ├── github_dark.js │ ├── github_light_default-css.js │ ├── github_light_default.js │ ├── gob-css.js │ ├── gob.js │ ├── gruvbox-css.js │ ├── gruvbox.js │ ├── gruvbox_dark_hard-css.js │ ├── gruvbox_dark_hard.js │ ├── gruvbox_light_hard-css.js │ ├── gruvbox_light_hard.js │ ├── idle_fingers-css.js │ ├── idle_fingers.js │ ├── iplastic-css.js │ ├── iplastic.js │ ├── katzenmilch-css.js │ ├── katzenmilch.js │ ├── kr_theme-css.js │ ├── kr_theme.js │ ├── kuroir-css.js │ ├── kuroir.js │ ├── merbivore-css.js │ ├── merbivore.js │ ├── merbivore_soft-css.js │ ├── merbivore_soft.js │ ├── mono_industrial-css.js │ ├── mono_industrial.js │ ├── monokai-css.js │ ├── monokai.js │ ├── nord_dark-css.js │ ├── nord_dark.js │ ├── one_dark-css.js │ ├── one_dark.js │ ├── pastel_on_dark-css.js │ ├── pastel_on_dark.js │ ├── solarized_dark-css.js │ ├── solarized_dark.js │ ├── solarized_light-css.js │ ├── solarized_light.js │ ├── sqlserver-css.js │ ├── sqlserver.js │ ├── terminal-css.js │ ├── terminal.js │ ├── textmate-css.js │ ├── textmate.js │ ├── tomorrow-css.js │ ├── tomorrow.js │ ├── tomorrow_night-css.js │ ├── tomorrow_night.js │ ├── tomorrow_night_blue-css.js │ ├── tomorrow_night_blue.js │ ├── tomorrow_night_bright-css.js │ ├── tomorrow_night_bright.js │ ├── tomorrow_night_eighties-css.js │ ├── tomorrow_night_eighties.js │ ├── twilight-css.js │ ├── twilight.js │ ├── vibrant_ink-css.js │ ├── vibrant_ink.js │ ├── xcode-css.js │ └── xcode.js ├── token_iterator.js ├── token_iterator_test.js ├── tokenizer.js ├── tokenizer_dev.js ├── tokenizer_test.js ├── tooltip.js ├── tooltip_test.js ├── undomanager.js ├── undomanager_test.js ├── unicode.js ├── virtual_renderer.js ├── virtual_renderer_test.js └── worker │ └── worker_client.js ├── static.js ├── tool ├── Readme.md ├── ace_declaration_generator.js ├── add_mode.js ├── esm_resolver_generator.js ├── lib.js ├── mode_creator.html ├── mode_creator.js ├── modes-declaration-generator.js ├── package.json ├── perf-test.html ├── regexp_to_keywords.js ├── regexp_tokenizer.js ├── regexp_tokenizer_test.js ├── release-api-docs.sh ├── release.sh ├── templates │ ├── dummy.JSON-tmLanguage │ ├── highlight_rules.js │ ├── mode.js │ ├── snippets.js │ ├── theme.css │ └── theme.js ├── test-ace-builds-package.sh ├── test-npm-package.sh ├── tmlanguage.js ├── tmsnippets.js ├── tmtheme.js ├── tmthemes │ ├── Active4D.tmTheme │ ├── All Hallows Eve.tmTheme │ ├── Amy.tmTheme │ ├── Blackboard.tmTheme │ ├── Brilliance Black.tmTheme │ ├── Brilliance Dull.tmTheme │ ├── Chrome DevTools.tmTheme │ ├── Clouds Midnight.tmTheme │ ├── Clouds.tmTheme │ ├── Cobalt.tmTheme │ ├── Dawn.tmTheme │ ├── Dreamweaver.tmTheme │ ├── Eiffel.tmTheme │ ├── Espresso Libre.tmTheme │ ├── GitHub.tmTheme │ ├── IDLE.tmTheme │ ├── Katzenmilch.tmTheme │ ├── Kuroir Theme.tmTheme │ ├── LAZY.tmTheme │ ├── LICENSE │ ├── MagicWB (Amiga).tmTheme │ ├── Merbivore Soft.tmTheme │ ├── Merbivore.tmTheme │ ├── Monokai.tmTheme │ ├── Pastels on Dark.tmTheme │ ├── Slush and Poppies.tmTheme │ ├── Solarized-dark.tmTheme │ ├── Solarized-light.tmTheme │ ├── SpaceCadet.tmTheme │ ├── Sunburst.tmTheme │ ├── Textmate (Mac Classic).tmTheme │ ├── Tomorrow-Night-Blue.tmTheme │ ├── Tomorrow-Night-Bright.tmTheme │ ├── Tomorrow-Night-Eighties.tmTheme │ ├── Tomorrow-Night.tmTheme │ ├── Tomorrow.tmTheme │ ├── Twilight.tmTheme │ ├── Vibrant Ink.tmTheme │ ├── Xcode_default.tmTheme │ ├── Zenburnesque.tmTheme │ ├── gruvboxDarkHard.tmTheme │ ├── gruvboxLightHard.tmTheme │ ├── iPlastic.tmTheme │ ├── idleFingers.tmTheme │ ├── krTheme.tmTheme │ └── monoindustrial.tmTheme ├── unicode.js ├── update_deps.js └── wrap_keyword_regexp.js ├── translations ├── Readme.md ├── am.json ├── es.json └── ru.json ├── tsconfig.json ├── types ├── ace-ext.d.ts ├── ace-lib.d.ts ├── ace-modules.d.ts ├── ace-snippets.d.ts └── ace-theme.d.ts └── version.js /.eslintignore: -------------------------------------------------------------------------------- 1 | lib/ace/mode/css/* 2 | lib/ace/mode/coffee/* 3 | lib/ace/mode/html/* 4 | lib/ace/mode/javascript/* 5 | lib/ace/mode/json/* 6 | lib/ace/mode/lua/* 7 | lib/ace/mode/php/* 8 | lib/ace/mode/xml/* 9 | lib/ace/mode/xquery/* 10 | lib/ace/mode/xquery.js 11 | lib/ace/mode/yaml/* 12 | src/lib/default_english_messages.js 13 | **/test/asyncjs/* 14 | **/es5-shim.js 15 | **/vim*.js 16 | experiments/ 17 | tool/ 18 | doc/ 19 | build/ 20 | demo/ 21 | api/ 22 | **/* * 23 | **/node_modules 24 | 0* 25 | esm-resolver.js 26 | src/ext/diff/providers/* -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | blank_issues_enabled: false 3 | contact_links: 4 | - name: 🤔 General Question 5 | url: https://github.com/ajaxorg/ace/discussions/categories/q-a 6 | about: Please ask and answer questions as a discussion thread 7 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: "📕 Documentation Issue" 3 | description: Report an issue in the documentation 4 | title: "(short issue description)" 5 | labels: [documentation, needs-triage] 6 | assignees: [] 7 | body: 8 | - type: textarea 9 | id: description 10 | attributes: 11 | label: Describe the issue 12 | description: A clear and concise description of the issue. 13 | validations: 14 | required: true 15 | 16 | - type: textarea 17 | id: links 18 | attributes: 19 | label: Links 20 | description: | 21 | Include links to affected documentation page(s). 22 | validations: 23 | required: true 24 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | *Issue #, if available:* 2 | 3 | *Description of changes:* 4 | 5 | 6 | By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. 7 | 8 | Pull Request Checklist: 9 | * [ ] No backwards incompatible changes were made to Ace's public interface which is defined through the main typings file (`ace.d.ts`) and its references: 10 | * https://github.com/ajaxorg/ace/blob/master/ace.d.ts 11 | * https://github.com/ajaxorg/ace/blob/master/ace-modes.d.ts 12 | * https://github.com/ajaxorg/ace/blob/master/ace-extensions.d.ts 13 | 14 | -------------------------------------------------------------------------------- /.github/workflows/backwards-compatibility-commenter.yml: -------------------------------------------------------------------------------- 1 | name: Comments for ensuring backward compatibility 2 | 3 | on: 4 | pull_request_target: 5 | paths: 6 | - 'ace.d.ts' 7 | - 'ace-modes.d.ts' 8 | - 'ace-extensions.d.ts' 9 | 10 | jobs: 11 | comment: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Comment on PR 15 | uses: peter-evans/create-or-update-comment@v1 16 | with: 17 | issue-number: ${{ github.event.pull_request.number }} 18 | body: | 19 | One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. 20 | token: ${{ secrets.GITHUB_TOKEN }} 21 | -------------------------------------------------------------------------------- /.github/workflows/issue-reprioritization.yml: -------------------------------------------------------------------------------- 1 | name: issue-reprioritization 2 | on: 3 | schedule: 4 | - cron: "0 0 * * 0" 5 | 6 | jobs: 7 | issue-reprioritization: 8 | permissions: 9 | issues: write 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: kaizencc/issue-reprioritization-manager@main 13 | id: reprioritization-manager 14 | with: 15 | github-token: ${{ secrets.GITHUB_TOKEN }} 16 | original-label: p2 17 | new-label: p1 18 | reprioritization-threshold: 5 19 | - uses: kaizencc/pr-triage-manager@main 20 | with: 21 | github-token: ${{ secrets.GITHUB_TOKEN }} 22 | on-pulls: ${{ steps.reprioritization-manager.outputs.linked-pulls }} 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Junk that could exist anywhere: 2 | .DS_Store 3 | *.swp 4 | *.tmp 5 | *~ 6 | 7 | # Project files that should not be in the repo 8 | .* 9 | \#* 10 | !/.github 11 | !/.gitignore 12 | .*.gz 13 | *.tmTheme.js 14 | package-lock.json 15 | 16 | # A handy place to put stuff that git should ignore: 17 | /coverage 18 | /ignore/ 19 | node_modules/ 20 | jam/ 21 | * * 22 | 23 | .git-ref 24 | npm-debug.log 25 | deps/ 26 | dist 27 | 28 | lib/ace 29 | styles -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "doc/wiki"] 2 | path = doc/wiki 3 | url = https://github.com/ajaxorg/ace.wiki.git 4 | [submodule "build"] 5 | path = build 6 | url = https://github.com/ajaxorg/ace-builds.git 7 | -------------------------------------------------------------------------------- /.nojekyll: -------------------------------------------------------------------------------- 1 | disable jekyll on gh-pages 2 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | ace.c9.io -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing 2 | ------------ 3 | 4 | Ace is a community project and wouldn't be what it is without contributions! We actively encourage and support contributions. The Ace source code is released under the BSD License. This license is very simple, and is friendly to all kinds of projects, whether open source or not. Take charge of your editor and add your favorite language highlighting and keybindings! 5 | 6 | Feel free to fork and improve/enhance Ace any way you want. If you feel that the editor or the Ace community will benefit from your changes, please open a pull request. Do make sure that your changes are covered by test cases to pass the pull request checks which exists inorder to keep ace robust. 7 | 8 | Happy coding, Cloud9 9 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Config file for Jekyll, which is used by GH pages to build the Ace website. 2 | # Some files in the docs folder can cause Jekyll to trip up so we ignore those. 3 | # https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll 4 | exclude: 5 | - "demo/kitchen-sink/docs" -------------------------------------------------------------------------------- /amplify.yml: -------------------------------------------------------------------------------- 1 | version: 0.1 2 | frontend: 3 | phases: 4 | preBuild: 5 | commands: 6 | - npm install 7 | # IMPORTANT - Please verify your build commands 8 | build: 9 | commands: 10 | - make build 11 | artifacts: 12 | # IMPORTANT - Please verify your build output directory 13 | baseDirectory: / 14 | files: 15 | - '**/*' 16 | cache: 17 | paths: 18 | - node_modules/**/* 19 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/.gitignore: -------------------------------------------------------------------------------- 1 | # A sample .gitignore file. 2 | 3 | .buildlog 4 | .DS_Store 5 | .svn 6 | 7 | # Negated patterns: 8 | !foo.bar 9 | 10 | # Also ignore user settings... 11 | /.settings 12 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ada.ada: -------------------------------------------------------------------------------- 1 | with Ada.Text_IO; use Ada.Text_IO; 2 | procedure Hello is 3 | begin 4 | Put_Line("Hello, world!"); 5 | end Hello; -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/alda.alda: -------------------------------------------------------------------------------- 1 | # Example taken from https://github.com/alda-lang/alda-core/blob/master/examples/across_the_sea.alda 2 | (tempo! 90) 3 | (quant! 95) 4 | 5 | piano: 6 | o5 g- > g- g-/f > e- d-4. < b-8 d-2 | c-4 e- d- d- g- 7 | 8 | flute: 9 | r2 g-4 a- b-2. > d-32~ e-16.~8 < b-2 a- g-1 -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/aql.aql: -------------------------------------------------------------------------------- 1 | FOR user IN users 2 | FILTER user.username == "olivier" 3 | RETURN user -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/asciidoc.asciidoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/demo/kitchen-sink/docs/asciidoc.asciidoc -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/assembly_x86.asm: -------------------------------------------------------------------------------- 1 | section .text 2 | global main ;must be declared for using gcc 3 | 4 | main: ;tell linker entry point 5 | 6 | mov edx, len ;message length 7 | mov ecx, msg ;message to write 8 | mov ebx, 1 ;file descriptor (stdout) 9 | mov eax, 4 ;system call number (sys_write) 10 | int 0x80 ;call kernel 11 | 12 | mov eax, 1 ;system call number (sys_exit) 13 | int 0x80 ;call kernel 14 | 15 | section .data 16 | 17 | msg db 'Hello, world!',0xa ;our dear string 18 | len equ $ - msg ;length of our dear string 19 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/astro.astro: -------------------------------------------------------------------------------- 1 | --- 2 | const visible = true; 3 | const name = "Legend Sabbir" 4 | --- 5 | {visible &&

Show me!

} 6 | 7 | {visible ?

Show me!

:

Else show me!

} 8 | 9 |

{name}

-------------------------------------------------------------------------------- /demo/kitchen-sink/docs/batchfile.bat: -------------------------------------------------------------------------------- 1 | :: batch file highlighting in Ace! 2 | @echo off 3 | 4 | CALL set var1=%cd% 5 | echo unhide everything in %var1%! 6 | 7 | :: FOR loop in bat is super strange! 8 | FOR /f "tokens=*" %%G IN ('dir /A:D /b') DO ( 9 | echo %var1%%%G 10 | attrib -r -a -h -s "%var1%%%G" /D /S 11 | ) 12 | 13 | pause 14 | 15 | REM that's all 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/cirru.cirru: -------------------------------------------------------------------------------- 1 | -- https://github.com/Cirru/cirru-gopher/blob/master/code/scope.cr, 2 | 3 | set a (int 2) 4 | 5 | print (self) 6 | 7 | set c (child) 8 | 9 | under c 10 | under parent 11 | print a 12 | 13 | print $ get c a 14 | 15 | set c x (int 3) 16 | print $ get c x 17 | 18 | set just-print $ code 19 | print a 20 | 21 | print just-print 22 | 23 | eval (self) just-print 24 | eval just-print 25 | 26 | print (string "string with space") 27 | print (string "escapes \n \"\\") 28 | 29 | brackets ((((())))) 30 | 31 | "eval" $ string "eval" 32 | 33 | print (add $ (int 1) (int 2)) 34 | 35 | print $ unwrap $ 36 | map (a $ int 1) (b $ int 2) 37 | 38 | print a 39 | int 1 40 | , b c 41 | int 2 42 | , d -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/coffee.coffee: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env coffee 2 | 3 | try 4 | throw URIError decodeURI(0xC0ffee * 123456.7e-8 / .9) 5 | catch e 6 | console.log 'qstring' + "qqstring" + ''' 7 | qdoc 8 | ''' + """ 9 | qqdoc 10 | """ 11 | 12 | do -> 13 | ### 14 | herecomment 15 | ### 16 | re = /regex/imgy.test /// 17 | heregex # comment 18 | ///imgy 19 | this isnt: `just JavaScript` 20 | undefined 21 | 22 | sentence = "#{ 22 / 7 } is a decent approximation of π" -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/coldfusion.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | #welcome# -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/csharp.cs: -------------------------------------------------------------------------------- 1 | public void HelloWorld() { 2 | //Say Hello! 3 | Console.WriteLine("Hello World"); 4 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/csound_document.csd: -------------------------------------------------------------------------------- 1 | text 2 | 3 | 4 | 0dbfs = 1 5 | prints "hello, world\n" 6 | 7 | 8 | i 1 0 0 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/csound_score.sco: -------------------------------------------------------------------------------- 1 | /* 2 | * comment 3 | */ 4 | ; comment 5 | // comment 6 | a B b C d e f i q s t v x y 7 | z 8 | np0 nP1 Np2 NP3 9 | m/**/label; 10 | n label 11 | 123 0123456789 12 | 0xabcdef0123456789 0XABCDEF 13 | 1e2 3e+4 5e-6 7E8 9E+0 1E-2 3. 4.56 .789 14 | "characters$MACRO." 15 | { 1 I 16 | { 2 J 17 | { 3 K 18 | $I $J $K 19 | } 20 | } 21 | } 22 | #include "score.sco" 23 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/csv.csv: -------------------------------------------------------------------------------- 1 | col1,col2 long,col3,col4, 2 | "col1,with quotes",col2,col3,col4, 3 | col1,col2,col"""3,co""l4, 4 | col1,col2,col3"broken",col4, 5 | col1",-"col2,col3,col4,col5 6 | col1,"col2 7 | multiline","col3 8 | multiline""string 9 | 3","col4 10 | multiline string 11 | 12 | 4" 13 | col1,col2,"c,o,l""3",col4,col5,col6,col7,col8,col9,col10,col11,col12,col13 14 | col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col11,col12,col13 15 | col1,col2,col3,col4,col5,col6,co"l7,col8,col9,col10,11,col12,col13 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/curly.curly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | 14 |

{{author_name}}

15 | 16 | 17 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/cuttlefish.conf: -------------------------------------------------------------------------------- 1 | include extras.conf # overflow config file 2 | 3 | ring_size = 32 4 | 5 | # experimental 6 | anti_entropy = debug 7 | 8 | # logging 9 | log.error.file = /var/log/error.log 10 | log.console.file = /var/log/console.log 11 | log.syslog = on 12 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/d.d: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env rdmd 2 | // Computes average line length for standard input. 3 | import std.stdio; 4 | 5 | void main() { 6 | ulong lines = 0; 7 | double sumLength = 0; 8 | foreach (line; stdin.byLine()) { 9 | ++lines; 10 | sumLength += line.length; 11 | } 12 | writeln("Average line length: ", 13 | lines ? sumLength / lines : 0); 14 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/dart.dart: -------------------------------------------------------------------------------- 1 | // Go ahead and modify this example. 2 | 3 | import "dart:html"; 4 | 5 | // Computes the nth Fibonacci number. 6 | int fibonacci(int n) { 7 | if (n < 2) return n; 8 | return fibonacci(n - 1) + fibonacci(n - 2); 9 | } 10 | 11 | // Displays a Fibonacci number. 12 | void main() { 13 | int i = 20; 14 | String message = "fibonacci($i) = ${fibonacci(i)}"; 15 | 16 | // This example uses HTML to display the result and it will appear 17 | // in a nested HTML frame (an iframe). 18 | document.body.append(new HeadingElement.h1()..appendText(message)); 19 | } 20 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/django.djt: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block title %}Ace Django Template{% endblock %} 4 | 5 | {% block content %} 6 |

Hello, {{ name|default:"World" }}!

7 | {% endblock %} 8 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/edifact.edi: -------------------------------------------------------------------------------- 1 | UNB+UNOA:1+005435656:1+006415160:1+060515:1434+00000000000778' 2 | UNH+00000000000117+INVnrOIC:D:97B:UN' 3 | BGM+380+342459+9' 4 | DTM+3:20060515:102' 5 | RFF+ON:521052' 6 | NAD+BY+792820524::16++CUMMINS MID-RANGE ENGINE PLANT' 7 | NAD+SE+005435656::16++GENERAL WIDGET COMPANY' 8 | CUX+1:USD' 9 | LIN+1++157870:IN' 10 | IMD+F++:::WIDGET' 11 | QTY+47:1020:EA' 12 | ALI+US' 13 | MOA+203:1202.58' 14 | PRI+INV:1.179' 15 | LIN+2++157871:IN' 16 | IMD+F++:::DIFFERENT WIDGET' 17 | QTY+47:20:EA' 18 | ALI+JP' 19 | MOA+203:410' 20 | PRI+INV:20.5' 21 | UNS+S' 22 | MOA+39:2137.58' 23 | ALC+C+ABG' 24 | MOA+8:525' 25 | UNT+23+00000000000117' 26 | UNZ+1+00000000000778' -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/eiffel.e: -------------------------------------------------------------------------------- 1 | note 2 | description: "Represents a person." 3 | 4 | class 5 | PERSON 6 | 7 | create 8 | make, make_unknown 9 | 10 | feature {NONE} -- Creation 11 | 12 | make (a_name: like name) 13 | -- Create a person with `a_name' as `name'. 14 | do 15 | name := a_name 16 | ensure 17 | name = a_name 18 | end 19 | 20 | make_unknown 21 | do ensure 22 | name = Void 23 | end 24 | 25 | feature -- Access 26 | 27 | name: detachable STRING 28 | -- Full name or Void if unknown. 29 | 30 | end -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/elm.elm: -------------------------------------------------------------------------------- 1 | {- Ace {- 4 -} Elm -} 2 | main = lift clock (every second) 3 | 4 | clock t = collage 400 400 [ filled lightGrey (ngon 12 110) 5 | , outlined (solid grey) (ngon 12 110) 6 | , hand orange 100 t 7 | , hand charcoal 100 (t/60) 8 | , hand charcoal 60 (t/720) ] 9 | 10 | hand clr len time = 11 | let angle = degrees (90 - 6 * inSeconds time) 12 | in traced (solid clr) <| segment (0,0) (len * cos angle, len * sin angle) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/erlang.erl: -------------------------------------------------------------------------------- 1 | %% A process whose only job is to keep a counter. 2 | %% First version 3 | -module(counter). 4 | -export([start/0, codeswitch/1]). 5 | 6 | start() -> loop(0). 7 | 8 | loop(Sum) -> 9 | receive 10 | {increment, Count} -> 11 | loop(Sum+Count); 12 | {counter, Pid} -> 13 | Pid ! {counter, Sum}, 14 | loop(Sum); 15 | code_switch -> 16 | ?MODULE:codeswitch(Sum) 17 | % Force the use of 'codeswitch/1' from the latest MODULE version 18 | end. 19 | 20 | codeswitch(Sum) -> loop(Sum). 21 | 22 | % Print the data using the pretty print specifier 23 | io:format("Here is the data: ~p~n", [Data]). 24 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/fsharp.fsi: -------------------------------------------------------------------------------- 1 | (* fsharp (* example *) *) 2 | module Test = 3 | let (*) x y = (x + y) 4 | let func1 x = 5 | if x < 100 then 6 | x*x 7 | else 8 | x*x + 1 9 | let list = (-1, 42) :: [ for i in 0 .. 99 -> (i, func1(i)) ] 10 | let verbatim = @"c:\Program "" Files\" 11 | let trippleQuote = """ "hello world" """ 12 | 13 | // print 14 | printfn "The table of squares from 0 to 99 is:\n%A" list -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/gcode.gcode: -------------------------------------------------------------------------------- 1 | O003 (DIAMOND SQUARE) 2 | N2 G54 G90 G49 G80 3 | N3 M6 T1 (1.ENDMILL) 4 | N4 M3 S1800 5 | N5 G0 X-.6 Y2.050 6 | N6 G43 H1 Z.1 7 | N7 G1 Z-.3 F50. 8 | N8 G41 D1 Y1.45 9 | N9 G1 X0 F20. 10 | N10 G2 J-1.45 11 | (CUTTER COMP CANCEL) 12 | N11 G1 Z-.2 F50. 13 | N12 Y-.990 14 | N13 G40 15 | N14 G0 X-.6 Y1.590 16 | N15 G0 Z.1 17 | N16 M5 G49 G28 G91 Z0 18 | N17 CALL O9456 19 | N18 #500=0.004 20 | N19 #503=[#500+#501] 21 | N20 VC45=0.0006 22 | VS4=0.0007 23 | N21 G90 G10 L20 P3 X5.Y4. Z6.567 24 | N22 G0 X5000 25 | N23 IF [#1 LT 0.370] GOTO 49 26 | N24 X-0.678 Y+.990 27 | N25 G84.3 X-0.1 28 | N26 #4=#5*COS[45] 29 | N27 #4=#5*SIN[45] 30 | N28 VZOFZ=652.9658 31 | % -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/glsl.glsl: -------------------------------------------------------------------------------- 1 | uniform float amplitude; 2 | attribute float displacement; 3 | varying vec3 vNormal; 4 | 5 | void main() { 6 | 7 | vNormal = normal; 8 | 9 | // multiply our displacement by the 10 | // amplitude. The amp will get animated 11 | // so we'll have animated displacement 12 | vec3 newPosition = position + 13 | normal * 14 | vec3(displacement * 15 | amplitude); 16 | 17 | gl_Position = projectionMatrix * 18 | modelViewMatrix * 19 | vec4(newPosition,1.0); 20 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/handlebars.hbs: -------------------------------------------------------------------------------- 1 | {{!-- Ace + :-}} --}} 2 | 3 |
4 | {{#each comments}} 5 |

{{title}}

6 |
{{{body}}}
7 | {{/each}} 8 |
9 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/haskell.hs: -------------------------------------------------------------------------------- 1 | -- Type annotation (optional) 2 | fib :: Int -> Integer 3 | 4 | -- With self-referencing data 5 | fib n = fibs !! n 6 | where fibs = 0 : scanl (+) 1 fibs 7 | -- 0,1,1,2,3,5,... 8 | 9 | -- Same, coded directly 10 | fib n = fibs !! n 11 | where fibs = 0 : 1 : next fibs 12 | next (a : t@(b:_)) = (a+b) : next t 13 | 14 | -- Similar idea, using zipWith 15 | fib n = fibs !! n 16 | where fibs = 0 : 1 : zipWith (+) fibs (tail fibs) 17 | 18 | -- Using a generator function 19 | fib n = fibs (0,1) !! n 20 | where fibs (a,b) = a : fibs (b,a+b) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/haxe.hx: -------------------------------------------------------------------------------- 1 | class Haxe 2 | { 3 | public static function main() 4 | { 5 | // Say Hello! 6 | var greeting:String = "Hello World"; 7 | trace(greeting); 8 | 9 | var targets:Array = ["Flash","Javascript","PHP","Neko","C++","iOS","Android","webOS"]; 10 | trace("Haxe is a great language that can target:"); 11 | for (target in targets) 12 | { 13 | trace (" - " + target); 14 | } 15 | trace("And many more!"); 16 | } 17 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/hjson.hjson: -------------------------------------------------------------------------------- 1 | { 2 | # specify rate in requests/second (because comments are helpful!) 3 | rate: 1000 4 | 5 | // prefer c-style comments? 6 | /* feeling old fashioned? */ 7 | 8 | # did you notice that rate doesn't need quotes? 9 | hey: look ma, no quotes for strings either! 10 | 11 | # best of all 12 | notice: [] 13 | anything: ? 14 | 15 | # yes, commas are optional! 16 | } 17 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/htaccess: -------------------------------------------------------------------------------- 1 | Redirect /linux http://www.linux.org 2 | Redirect 301 /kernel http://www.linux.org 3 | 4 | # comment 5 | RewriteEngine on 6 | 7 | RewriteCond %{HTTP_USER_AGENT} ^Mozilla.* 8 | RewriteRule ^/$ /homepage.max.html [L] 9 | 10 | RewriteRule ^/$ /homepage.std.html [L] 11 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/html.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 |

Juhu Kinners

16 | 17 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/html_elixir.eex: -------------------------------------------------------------------------------- 1 |

Listing Books

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | <%= for book <- @books do %> 13 | 14 | <%# comment %> 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% end %> 22 |
TitleSummary
<%= book.title %><%= book.content %><%= link "Show", to: book_path(@conn, :show, book) %><%= link "Edit", to: book_path(@conn, :edit, book) %><%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %>
23 | 24 |
25 | 26 | <%= link "New book", to: book_path(@conn, :new) %> 27 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/html_ruby.erb: -------------------------------------------------------------------------------- 1 |

Listing Books

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | <% @books.each do |book| %> 13 | 14 | <%# comment %> 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% end %> 22 |
TitleSummary
<%= book.title %><%= book.content %><%= link_to 'Show', book %><%= link_to 'Edit', edit_book_path(book) %><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %>
23 | 24 |
25 | 26 | <%= link_to 'New book', new_book_path %> -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ini.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | IconResource=..\logo.png 3 | [ViewState] 4 | FolderType=Generic 5 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/io.io: -------------------------------------------------------------------------------- 1 | // computes factorial of a number 2 | factorial := method(n, 3 | if(n == 0, return 1) 4 | res := 1 5 | Range 1 to(n) foreach(i, res = res * i) 6 | ) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jade.jade: -------------------------------------------------------------------------------- 1 | !!!doctype 2 | !!!5 3 | !!! 4 | 5 | include something 6 | 7 | include another_thing 8 | 9 | // let's talk about it 10 | 11 | // 12 | here it is. a block comment! 13 | and another row! 14 | but not here. 15 | 16 | // 17 | a far spaced 18 | should be lack of block 19 | 20 | // also not a comment 21 | div.attemptAtBlock 22 | 23 | span#myName 24 | 25 | #{implicit} 26 | !{more_explicit} 27 | 28 | #idDiv 29 | 30 | .idDiv 31 | 32 | test(id="tag") 33 | header(id="tag", blah="foo", meh="aads") 34 | mixin article(obj, parents) 35 | 36 | mixin bleh() 37 | 38 | mixin clever-name 39 | 40 | -var x = "0"; 41 | - y each z 42 | 43 | - var items = ["one", "two", "three"] 44 | each item in items 45 | li= item -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/javascript.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * @param {string[]} items 4 | * @param nada 5 | */ 6 | function foo(items, nada) { 7 | for (var i=0; i= 5.0.0; 6 | graph_layout : dot; 7 | 8 | on_init : ${setup}; 9 | on_halt : ${finalize}; 10 | 11 | 12 | 13 | /* turn on */ 14 | Off 'Enable' { follow: ${turned_on}; } -> Red; 15 | 16 | // main sequence 17 | Red 'Proceed' => Green 'Proceed' => Yellow 'Proceed' => Red; 18 | 19 | // emergency flash red 20 | [Red Yellow Green] 'Flash' -> Flash; 21 | Flash 'Proceed' { label: 'no change'; } -> Flash 'Exit' -> Red; 22 | 23 | // turn off 24 | [Red Yellow Green Flash] 'Disable' { follow: ${turned_off}; } ~> Off; 25 | 26 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jsx.jsx: -------------------------------------------------------------------------------- 1 | import * as React from "react"; 2 | 3 | export default () => { 4 | return ( 5 |
6 | Keywords here are not highlighted, for example class or instance. 7 |
8 | ); 9 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/julia.jl: -------------------------------------------------------------------------------- 1 | for op = (:+, :*, :&, :|, :$) 2 | @eval ($op)(a,b,c) = ($op)(($op)(a,b),c) 3 | end 4 | 5 | v = α'; 6 | function g(x,y) 7 | return x * y 8 | x + y 9 | end 10 | 11 | cd("data") do 12 | open("outfile", "w") do f 13 | write(f, data) 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/less.less: -------------------------------------------------------------------------------- 1 | /* styles.less */ 2 | 3 | @base: #f938ab; 4 | 5 | .box-shadow(@style, @c) when (iscolor(@c)) { 6 | box-shadow: @style @c; 7 | -webkit-box-shadow: @style @c; 8 | -moz-box-shadow: @style @c; 9 | } 10 | .box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) { 11 | .box-shadow(@style, rgba(0, 0, 0, @alpha)); 12 | } 13 | 14 | // Box styles 15 | .box { 16 | color: saturate(@base, 5%); 17 | border-color: lighten(@base, 30%); 18 | 19 | div { .box-shadow(0 0 5px, 30%) } 20 | 21 | a { 22 | color: @base; 23 | 24 | &:hover { 25 | color: lighten(@base, 50%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lisp.lisp: -------------------------------------------------------------------------------- 1 | (defun prompt-for-cd () 2 | "Prompts 3 | for CD" 4 | (prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6)) 5 | (prompt-read "Artist" &rest) 6 | (or (parse-integer (prompt-read "Rating") :junk-allowed t) 0) 7 | (if x (format t "yes") (format t "no" nil) ;and here comment 8 | ) 0xFFLL -23ull 9 | ;; second line comment 10 | '(+ 1 2) 11 | (defvar *lines*) ; list of all lines 12 | (position-if-not #'sys::whitespacep line :start beg)) 13 | (quote (privet 1 2 3)) 14 | '(hello world) 15 | (* 5 7) 16 | (1 2 34 5) 17 | (:use "aaaa") 18 | (let ((x 10) (y 20)) 19 | (print (+ x y)) 20 | ) LAmbDa 21 | 22 | "asdad\0eqweqe" -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/logiql.logic: -------------------------------------------------------------------------------- 1 | // ancestors 2 | parentof("douglas", "john"). 3 | parentof("john", "bob"). 4 | parentof("bob", "ebbon"). 5 | 6 | parentof("douglas", "jane"). 7 | parentof("jane", "jan"). 8 | 9 | ancestorof(A, B) <- parentof(A, B). 10 | ancestorof(A, C) <- ancestorof(A, B), parentof(B,C). 11 | 12 | grandparentof(A, B) <- parentof(A, C), parentof(C, B). 13 | 14 | cousins(A,B) <- grandparentof(C,A), grandparentof(C,B). 15 | 16 | parentof[`arg](A, B) -> int[32](A), !string(B). -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/logtalk.lgt: -------------------------------------------------------------------------------- 1 | :- object(bottles). 2 | 3 | :- initialization(sing(99)). 4 | 5 | sing(0) :- 6 | write('No more bottles of beer on the wall, no more bottles of beer.'), nl, 7 | write('Go to the store and buy some more, 99 bottles of beer on the wall.'), nl, nl. 8 | sing(N) :- 9 | N > 0, 10 | N2 is N - 1, 11 | beers(N), write(' of beer on the wall, '), beers(N), write(' of beer.'), nl, 12 | write('Take one down and pass it around, '), beers(N2), write(' of beer on the wall.'), nl, nl, 13 | sing(N2). 14 | 15 | beers(0) :- 16 | write('no more bottles'). 17 | beers(1) :- 18 | write('1 bottle'). 19 | beers(N) :- 20 | N > 1, 21 | write(N), write(' bottles'). 22 | 23 | :- end_object. 24 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lucene.lucene: -------------------------------------------------------------------------------- 1 | (title:"foo bar" AND body:"quick fox") OR title:fox -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/matlab.matlab: -------------------------------------------------------------------------------- 1 | %{ 2 | %{ 3 | Ace Matlab demo 4 | %} 5 | %} 6 | 7 | classdef hello 8 | methods 9 | function greet(this) 10 | disp('Hello!') % say hi 11 | end 12 | end 13 | end 14 | 15 | % transpose 16 | a = [ 'x''y', "x\n\ 17 | y", 1' ]' + 2' -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/maze.mz: -------------------------------------------------------------------------------- 1 | ## ## () ## ^^ ## ## ## ## 2 | ## H1 C2 S1 <> S2 H2 DN ## 3 | ## %U <> %D *2 %L IZ .. ## 4 | ## ## ## .. ## DN *3 ## ## 5 | ## ## ## %R C1 IZ () ## ## 6 | ## ## ## ## >/ *1 7 | ## () *3 *1 %L () 8 | 9 | 10 | // Set divisor and dividend 11 | S1-> = 9 12 | S2-> = 24 13 | 14 | // Holding cells 15 | H1-> IF *1 THEN %R ELSE %N 16 | H2-> IF *2 THEN %R ELSE %N 17 | 18 | // Arithmetic 19 | DN-> -= 1 20 | IZ-> IF <= 0 THEN %D ELSE %U 21 | 22 | C1-> IF *3 THEN %D ELSE %R 23 | C2-> IF *3 THEN %U ELSE %D 24 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/mixal.mixal: -------------------------------------------------------------------------------- 1 | * PROGRAM START 2 | ΔSTART LDA 2000 LOAD A FROM CELL 2000 3 | CMP7 =15= 4 | 12345 HLT 5 | END START 6 | ABC ALF abc 7 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/mysql.mysql: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/nasal.nas: -------------------------------------------------------------------------------- 1 | var sayHello = func(names, favorite) { 2 | foreach (var name; names) { 3 | printf("Hello %s, %s is the best!", name, favorite); 4 | } 5 | } 6 | 7 | sayHello(["World", "FlightGear"], "Nasal"); 8 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/nim.nim: -------------------------------------------------------------------------------- 1 | #[ #[ Multiline comment in already 2 | commented out code. ]# 3 | proc p[T](x: T) = discard 4 | ]# 5 | echo "This is code" 6 | var 7 | p = 0B0_10001110100_0000101001000111101011101111111011000101001101001001'f64 8 | 9 | proc getAlphabet(): string = 10 | var accm = "" 11 | for letter in 'a'..'z': # see iterators 12 | accm.add(letter) 13 | return accm 14 | 15 | assert("a" * 10 == "aaaaaaaaaa") 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/nsis.nsi: -------------------------------------------------------------------------------- 1 | /* 2 | NSIS Mode 3 | for Ace 4 | */ 5 | 6 | ; Includes 7 | !include MUI2.nsh 8 | 9 | ; Settings 10 | Name "installer_name" 11 | OutFile "installer_name.exe" 12 | RequestExecutionLevel user 13 | CRCCheck on 14 | !ifdef x64 15 | InstallDir "$PROGRAMFILES64\installer_name" 16 | !else 17 | InstallDir "$PROGRAMFILES\installer_name" 18 | !endif 19 | 20 | ; Pages 21 | !insertmacro MUI_PAGE_INSTFILES 22 | 23 | ; Sections 24 | Section "section_name" section_index 25 | # your code here 26 | SectionEnd 27 | 28 | ; Functions 29 | Function .onInit 30 | MessageBox MB_OK "Here comes a$\n$\rline-break!" 31 | FunctionEnd -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ocaml.ml: -------------------------------------------------------------------------------- 1 | (* 2 | * Example of early return implementation taken from 3 | * http://ocaml.janestreet.com/?q=node/91 4 | *) 5 | 6 | let with_return (type t) (f : _ -> t) = 7 | let module M = 8 | struct exception Return of t end 9 | in 10 | let return = { return = (fun x -> raise (M.Return x)); } in 11 | try f return with M.Return x -> x 12 | 13 | 14 | (* Function that uses the 'early return' functionality provided by `with_return` *) 15 | let sum_until_first_negative list = 16 | with_return (fun r -> 17 | List.fold list ~init:0 ~f:(fun acc x -> 18 | if x >= 0 then acc + x else r.return acc)) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/odin.odin: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "core:fmt" 4 | 5 | main :: proc() { 6 | program := "+ + * 😃 - /" 7 | accumulator := 0 8 | 9 | for token in program { 10 | switch token { 11 | case '+': accumulator += 1 12 | case '-': accumulator -= 1 13 | case '*': accumulator *= 2 14 | case '/': accumulator /= 2 15 | case '😃': accumulator *= accumulator 16 | case: // Ignore everything else 17 | } 18 | } 19 | 20 | fmt.printf("The program \"%s\" calculates the value %d\n", program, accumulator) 21 | } 22 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/php.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/pig.pig: -------------------------------------------------------------------------------- 1 | A = load 'mobydick.txt'; 2 | B = foreach A generate flatten(TOKENIZE((chararray)$0)) as word; 3 | C = filter B by word matches '\\w+'; 4 | D = group C by word; 5 | E = foreach D generate COUNT(C) as count, group as word; 6 | F = order E by count desc; 7 | -- one comment 8 | /* another comment */ 9 | dump F; 10 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/plsql.plsql: -------------------------------------------------------------------------------- 1 | create table t ( 2 | id integer, 3 | month varchar(3), 4 | value integer 5 | ); 6 | 7 | insert into t (month, value) values ('jan', 1); 8 | insert into t (month, value) values ('jan', 1); 9 | insert into t (month, value) values ('oct', 3); 10 | insert into t (month, value) values ('dec', 96); 11 | 12 | 13 | select * from (select month, value from t) 14 | pivot 15 | ( 16 | sum(value) 17 | for month in ('jan', 'oct', 'dec') 18 | ); -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/prolog.plg: -------------------------------------------------------------------------------- 1 | partition([], _, [], []). 2 | partition([X|Xs], Pivot, Smalls, Bigs) :- 3 | ( X @< Pivot -> 4 | Smalls = [X|Rest], 5 | partition(Xs, Pivot, Rest, Bigs) 6 | ; Bigs = [X|Rest], 7 | partition(Xs, Pivot, Smalls, Rest) 8 | ). 9 | 10 | quicksort([]) --> []. 11 | quicksort([X|Xs]) --> 12 | { partition(Xs, X, Smaller, Bigger) }, 13 | quicksort(Smaller), [X], quicksort(Bigger). 14 | 15 | perfect(N) :- 16 | between(1, inf, N), U is N // 2, 17 | findall(D, (between(1,U,D), N mod D =:= 0), Ds), 18 | sumlist(Ds, N). -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/properties.properties: -------------------------------------------------------------------------------- 1 | # You are reading the ".properties" entry. 2 | ! The exclamation mark can also mark text as comments. 3 | # The key and element characters #, !, =, and : are written with a preceding backslash to ensure that they are properly loaded. 4 | website = http\://en.wikipedia.org/ 5 | language = English 6 | # The backslash below tells the application to continue reading 7 | # the value onto the next line. 8 | message = Welcome to \ 9 | Wikipedia! 10 | # Add spaces to the key 11 | key\ with\ spaces = This is the value that could be looked up with the key "key with spaces". 12 | # Unicode 13 | tab : \u0009 14 | empty-key= 15 | last.line=value 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/protobuf.proto: -------------------------------------------------------------------------------- 1 | message Point { 2 | required int32 x = 1; 3 | required int32 y = 2; 4 | optional string label = 3; 5 | } 6 | 7 | message Line { 8 | required Point start = 1; 9 | required Point end = 2; 10 | optional string label = 3; 11 | } 12 | 13 | message Polyline { 14 | repeated Point point = 1; 15 | optional string label = 2; 16 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/prql.prql: -------------------------------------------------------------------------------- 1 | from invoices 2 | filter invoice_date >= @1970-01-16 3 | derive { 4 | transaction_fees = 0.8, 5 | income = total - transaction_fees 6 | } 7 | filter income > 1 8 | group customer_id ( 9 | aggregate { 10 | average total, 11 | sum_income = sum income, 12 | ct = count total, 13 | } 14 | ) 15 | sort {-sum_income} 16 | take 10 17 | join c=customers (==customer_id) 18 | derive name = f"{c.last_name}, {c.first_name}" 19 | select { 20 | c.customer_id, name, sum_income 21 | } 22 | derive db_version = s"version()" 23 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/python.py: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/python 2 | 3 | import string, sys 4 | 5 | # If no arguments were given, print a helpful message 6 | if len(sys.argv)==1: 7 | print '''Usage: 8 | celsius temp1 temp2 ...''' 9 | sys.exit(0) 10 | 11 | # Loop over the arguments 12 | for i in sys.argv[1:]: 13 | try: 14 | fahrenheit=float(string.atoi(i)) 15 | except string.atoi_error: 16 | print repr(i), "not a numeric value" 17 | else: 18 | celsius=(fahrenheit-32)*5.0/9.0 19 | print '%i\260F = %i\260C' % (int(fahrenheit), int(celsius+.5)) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/qml.qml: -------------------------------------------------------------------------------- 1 | // A simple example 2 | import QtQuick 2.7 3 | import QtQuick.Controls 2.3 4 | 5 | Rectangle { 6 | color: "red" 7 | anchors.fill: parent 8 | 9 | Text { 10 | text: "WEEEEEEEEEE" 11 | font.pixelSize: 50 12 | color: "white" 13 | anchors.centerIn: parent 14 | RotationAnimator on rotation { 15 | running: true 16 | loops: Animation.Infinite 17 | from: 0 18 | to: 360 19 | duration: 1500 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/r.r: -------------------------------------------------------------------------------- 1 | Call: 2 | lm(formula = y ~ x) 3 | 4 | Residuals: 5 | 1 2 3 4 5 6 6 | 3.3333 -0.6667 -2.6667 -2.6667 -0.6667 3.3333 7 | 8 | Coefficients: 9 | Estimate Std. Error t value Pr(>|t|) 10 | (Intercept) -9.3333 2.8441 -3.282 0.030453 * 11 | x 7.0000 0.7303 9.585 0.000662 *** 12 | --- 13 | Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 14 | 15 | Residual standard error: 3.055 on 4 degrees of freedom 16 | Multiple R-squared: 0.9583, Adjusted R-squared: 0.9478 17 | F-statistic: 91.88 on 1 and 4 DF, p-value: 0.000662 18 | 19 | > par(mfrow=c(2, 2)) # Request 2x2 plot layout 20 | > plot(lm_1) # Diagnostic plot of regression model -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/razor.cshtml: -------------------------------------------------------------------------------- 1 | @* razor mode *@ 2 | @{ 3 | Layout = "~/layout" 4 | @: 5 | @Layout 6 | @: 7 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/rhtml.Rhtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Title 5 | 6 | 7 | 8 | 9 |

This is an R HTML document. When you click the Knit HTML button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

10 | 11 | 14 | 15 |

You can also embed plots, for example:

16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ruby.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/ruby 2 | 3 | # Program to find the factorial of a number 4 | def fact(n) 5 | if n == 0 6 | 1 7 | else 8 | n * fact(n-1) 9 | end 10 | end 11 | 12 | puts fact(ARGV[0].to_i) 13 | 14 | class Range 15 | def to_json(*a) 16 | { 17 | 'json_class' => self.class.name, # = 'Range' 18 | 'data' => [ first, last, exclude_end? ] 19 | }.to_json(*a) 20 | end 21 | end 22 | 23 | {:id => ?", :key => "value"} 24 | 25 | 26 | herDocs = [<<'FOO', < i.length); 24 | } or { 25 | hold(1500); 26 | throw new Error("timed out"); 27 | } 28 | } // Real Tab. 29 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/smarty.smarty: -------------------------------------------------------------------------------- 1 | {foreach $foo as $bar} 2 | {$bar.zag} 3 | {$bar.zag2} 4 | {$bar.zag3} 5 | {foreachelse} 6 | There were no rows found. 7 | {/foreach} -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/snippets.snippets: -------------------------------------------------------------------------------- 1 | # Function 2 | snippet fun 3 | function ${1?:function_name}(${2:argument}) { 4 | ${3:// body...} 5 | } 6 | # Anonymous Function 7 | regex /((=)\s*|(:)\s*|(\()|\b)/f/(\))?/ 8 | name f 9 | function${M1?: ${1:functionName}}($2) { 10 | ${0:$TM_SELECTED_TEXT} 11 | }${M2?;}${M3?,}${M4?)} 12 | # Immediate function 13 | trigger \(?f\( 14 | endTrigger \)? 15 | snippet f( 16 | (function(${1}) { 17 | ${0:${TM_SELECTED_TEXT:/* code */}} 18 | }(${1})); 19 | # if 20 | snippet if 21 | if (${1:true}) { 22 | ${0} 23 | } 24 | 25 | 26 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/sparql.rq: -------------------------------------------------------------------------------- 1 | PREFIX dbpedia-owl: 2 | PREFIX rdfs: 3 | 4 | # 1. Directors of movies starring Brad Pitt 5 | # Datasource: http://fragments.dbpedia.org/*/en 6 | SELECT ?movie ?title ?name 7 | WHERE { 8 | ?movie dbpedia-owl:starring [ rdfs:label "Brad Pitt"@en ]; 9 | rdfs:label ?title; 10 | dbpedia-owl:director [ rdfs:label ?name ]. 11 | FILTER LANGMATCHES(LANG(?title), "EN") 12 | FILTER LANGMATCHES(LANG(?name), "EN") 13 | } 14 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/sql.sql: -------------------------------------------------------------------------------- 1 | SELECT city, COUNT(id) AS users_count 2 | FROM users 3 | WHERE group_name = 'salesman' 4 | AND created > '2011-05-21' 5 | GROUP BY 1 6 | ORDER BY 2 DESC -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/swift.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | class DetailsViewController: UIViewController { 4 | var album: Album? 5 | @IBOutlet weak var albumCover: UIImageView! 6 | 7 | required init(coder aDecoder: NSCoder) { 8 | super.init(coder: aDecoder) 9 | } 10 | 11 | override func viewDidLoad() { 12 | super.viewDidLoad() 13 | mLabel.text = self.album?.title && "Juhu \( "kinners" )! " 14 | albumCover.image = UIImage(data: NSData(contentsOfURL: NSURL(string: self.album!.largeImageURL)!)!) 15 | } 16 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/tex.tex: -------------------------------------------------------------------------------- 1 | The quadratic formula is $$-b \pm \sqrt{b^2 - 4ac} \over 2a$$ 2 | \bye 3 | 4 | \makeatletter 5 | \newcommand{\be}{% 6 | \begingroup 7 | % \setlength{\arraycolsep}{2pt} 8 | \eqnarray% 9 | \@ifstar{\nonumber}{}% 10 | } 11 | \newcommand{\ee}{\endeqnarray\endgroup} 12 | \makeatother 13 | 14 | \begin{equation} 15 | x=\left\{ \begin{array}{cl} 16 | 0 & \textrm{if }A=\ldots\\ 17 | 1 & \textrm{if }B=\ldots\\ 18 | x & \textrm{this runs with as much text as you like, but without an raggeright text 19 | .}\end{array}\right. 20 | \end{equation} -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/text.txt: -------------------------------------------------------------------------------- 1 | This is just some text! 2 | 3 | // These 4 | # are 5 | -- not 6 | 7 | (but indent actions work) 8 | 9 | This is just some text! 10 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/textile.textile: -------------------------------------------------------------------------------- 1 | h1. Textile document 2 | 3 | h2. Heading Two 4 | 5 | h3. A two-line 6 | header 7 | 8 | h2. Another two-line 9 | header 10 | 11 | Paragraph: 12 | one, two, 13 | thee lines! 14 | 15 | p(classone two three). This is a paragraph with classes 16 | 17 | p(#id). (one with an id) 18 | 19 | p(one two three#my_id). ..classes + id 20 | 21 | * Unordered list 22 | ** sublist 23 | * back again! 24 | ** sublist again.. 25 | 26 | # ordered 27 | 28 | bg. Blockquote! 29 | This is a two-list blockquote..! -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/toml.toml: -------------------------------------------------------------------------------- 1 | # This is a TOML document. Boom. 2 | 3 | title = "TOML Example" 4 | 5 | [owner] 6 | name = "Tom Preston-Werner" 7 | organization = "GitHub" 8 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." 9 | dob = 1979-05-27T07:32:00Z # First class dates? Why not? 10 | 11 | [database] 12 | server = "192.168.1.1" 13 | ports = [ 8001, 8001, 8002 ] 14 | connection_max = 5000 15 | enabled = true 16 | 17 | [servers] 18 | 19 | # You can indent as you please. Tabs or spaces. TOML don't care. 20 | [servers.alpha] 21 | ip = "10.0.0.1" 22 | dc = "eqdc10" 23 | 24 | [servers.beta] 25 | ip = "10.0.0.2" 26 | dc = "eqdc10" 27 | 28 | [clients] 29 | data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/tsv.tsv: -------------------------------------------------------------------------------- 1 | col1 col2 long col3 col4 2 | "col1 with quotes" col2 col3 col4 3 | col1 col2 col"""3 co""l4 4 | col1 col2 col3"broken" col4 5 | col1" -"col2 col3 col4 col5 6 | col1 "col2 7 | multiline" "col3 8 | multiline""string 9 | 3" "col4 10 | multiline string 11 | 12 | 4" 13 | col1 col2 "c o l""3" col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 14 | col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 15 | col1 col2 col3 col4 col5 col6 co"l7 col8 col9 col10 11 col12 col13 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/tsx.tsx: -------------------------------------------------------------------------------- 1 | var mode =
2 | Typescript + JSX 3 |
; -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/turtle.ttl: -------------------------------------------------------------------------------- 1 | @base . 2 | @prefix rdf: . 3 | @prefix rdfs: . 4 | @prefix foaf: . 5 | @prefix rel: . 6 | 7 | <#green-goblin> 8 | rel:enemyOf <#spiderman> ; 9 | a foaf:Person ; # in the context of the Marvel universe 10 | foaf:name "Green Goblin" . 11 | 12 | <#spiderman> 13 | rel:enemyOf <#green-goblin> ; 14 | a foaf:Person ; 15 | foaf:name "Spiderman", "Человек-паук"@ru . -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/vala.vala: -------------------------------------------------------------------------------- 1 | using Gtk; 2 | 3 | int main (string[] args) { 4 | Gtk.init (ref args); 5 | var foo = new MyFoo>(); 6 | 7 | var window = new Window(); 8 | window.title = "Hello, World!"; 9 | window.border_width = 10; 10 | window.window_position = WindowPosition.CENTER; 11 | window.set_default_size(350, 70); 12 | window.destroy.connect(Gtk.main_quit); 13 | 14 | var label = new Label("Hello, World!"); 15 | 16 | window.add(label); 17 | window.show_all(); 18 | 19 | Gtk.main(); 20 | return 0; 21 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/verilog.v: -------------------------------------------------------------------------------- 1 | always @(negedge reset or posedge clk) begin 2 | if (reset == 0) begin 3 | d_out <= 16'h0000; 4 | d_out_mem[resetcount] <= d_out; 5 | laststoredvalue <= d_out; 6 | end else begin 7 | d_out <= d_out + 1'b1; 8 | end 9 | end 10 | 11 | always @(bufreadaddr) 12 | bufreadval = d_out_mem[bufreadaddr]; -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/wollok.wlk: -------------------------------------------------------------------------------- 1 | class Actividad { 2 | method calcularMejora() 3 | } 4 | 5 | class EstudiarMateria inherits Actividad { 6 | var materia 7 | var puntos = 0 8 | 9 | new(m, p) { 10 | materia = m 11 | puntos = p 12 | } 13 | 14 | override method calcularMejora() = puntos 15 | } 16 | 17 | class EjercitarEnSimulador inherits Actividad { 18 | var horas = 0 19 | new(h) { horas = h } 20 | override method calcularMejora() = 10 * horas 21 | } 22 | 23 | object pepita { 24 | var energia = 100 25 | method volar(m) { 26 | energia -= m 27 | } 28 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/xquery.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | 3 | let $message := "Hello World!" 4 | return 5 | {$message} 6 | 7 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/zig.zig: -------------------------------------------------------------------------------- 1 | const std = @import("std"); 2 | 3 | pub fn main() !void { 4 | const stdout = std.io.getStdOut().writer(); 5 | try stdout.print("Hello, {s}!\n", .{"world"}); 6 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/demo/kitchen-sink/logo.png -------------------------------------------------------------------------------- /demo/r.js/build.js: -------------------------------------------------------------------------------- 1 | ({ 2 | optimize: "none", 3 | preserveLicenseComments: false, 4 | name: "node_modules/almond/almond.js", 5 | baseUrl: ".", 6 | paths: { 7 | ace : "../../lib/ace", 8 | demo: "../../demo/kitchen-sink" 9 | }, 10 | packages: [ 11 | ], 12 | include: [ 13 | "ace/ace" 14 | ], 15 | exclude: [ 16 | ], 17 | out: "./dist/bundle.js", 18 | useStrict: true, 19 | wrap: false 20 | }) 21 | -------------------------------------------------------------------------------- /demo/svg.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 |
Hi!
10 |
11 |
-------------------------------------------------------------------------------- /demo/test_ace_builds/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-test-package", 3 | "version": "1.0.0", 4 | "description": "Test package for Ace builds", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "tsc -p tsconfig.json", 8 | "test": "node index.js" 9 | }, 10 | "dependencies": { 11 | "ace-builds": "file:../../ace-builds-latest.tgz" 12 | }, 13 | "devDependencies": { 14 | "typescript": "^5.8.2" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /demo/test_package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-test-package", 3 | "version": "1.0.0", 4 | "description": "Test package for Ace", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "tsc -p tsconfig.json", 8 | "test": "node index.js" 9 | }, 10 | "dependencies": { 11 | "ace-code": "file:../../ace-code-latest.tgz" 12 | }, 13 | "devDependencies": { 14 | "typescript": "^5.6.2" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /demo/webpack/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /demo/webpack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-webpack-demo", 3 | "version": "1.0.0", 4 | "description": "", 5 | "scripts": { 6 | "start": "webpack-dev-server" 7 | }, 8 | "keywords": [], 9 | "author": "", 10 | "dependencies": { 11 | "file-loader": "^1.1.11", 12 | "webpack": "^4.0.1", 13 | "webpack-cli": "^2.0.10" 14 | }, 15 | "devDependencies": { 16 | "webpack-dev-server": "^3.1.0" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /demo/webpack/webpack.config.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = { 4 | mode: "development", 5 | entry: "./demo.js", 6 | output: { 7 | path: __dirname + "/dist", 8 | filename: "bundle.js" 9 | }, 10 | node: { 11 | global: false, 12 | process: false, 13 | Buffer: false, 14 | __filename: "mock", 15 | __dirname: "mock", 16 | setImmediate: false 17 | }, 18 | resolveLoader: { 19 | modules: [ 20 | "node_modules", 21 | __dirname + "/node_modules", 22 | ], 23 | }, 24 | devServer: { 25 | contentBase: __dirname, 26 | compress: true, 27 | port: 9000 28 | } 29 | }; -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | 3 | The API doc build takes a look a source Javascript files in the _lib_ directory, and turns it into HTML output in the _api_ directory. It uses [Panino](https://github.com/gjtorikian/panino-docs) to perform the conversion. 4 | 5 | For any questions on the build system, please see that repo. 6 | 7 | # Building 8 | 9 | In the root directory, just run: 10 | 11 | make doc 12 | 13 | In this directory, just run: 14 | 15 | npm install 16 | node build.js 17 | 18 | -------------------------------------------------------------------------------- /doc/index.md: -------------------------------------------------------------------------------- 1 | # Ace API Reference 2 | 3 | Welcome to the Ace API Reference Guide. Ace is a standalone code editor written in JavaScript that you can embed onto any website. We're used in a bunch of places already, like GitHub, Google, and Facebook. 4 | 5 | On the left, you'll find a list of all of our currently documented classes. There are plenty more to do, but these represent the "core" set. For more information on how to work with Ace, check out the [main Ace website](https://ace.c9.io). 6 | -------------------------------------------------------------------------------- /doc/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-api", 3 | "version": "0.1.0", 4 | "dependencies": { 5 | "panino" : ">=2.2.0", 6 | "asset-smasher": "0.2.0" 7 | } 8 | } -------------------------------------------------------------------------------- /doc/site/images/ace-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/ace-logo.png -------------------------------------------------------------------------------- /doc/site/images/ace-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/ace-tab.png -------------------------------------------------------------------------------- /doc/site/images/body_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/body_background.png -------------------------------------------------------------------------------- /doc/site/images/cloud9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/cloud9-logo.png -------------------------------------------------------------------------------- /doc/site/images/codecademy-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/codecademy-logo.png -------------------------------------------------------------------------------- /doc/site/images/codiad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/codiad.png -------------------------------------------------------------------------------- /doc/site/images/empty-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/empty-logo.png -------------------------------------------------------------------------------- /doc/site/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/favicon.ico -------------------------------------------------------------------------------- /doc/site/images/fork_on_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/fork_on_github.png -------------------------------------------------------------------------------- /doc/site/images/ideone-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/ideone-logo.png -------------------------------------------------------------------------------- /doc/site/images/khan-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/khan-logo.png -------------------------------------------------------------------------------- /doc/site/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/logo.png -------------------------------------------------------------------------------- /doc/site/images/logo_half.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/logo_half.png -------------------------------------------------------------------------------- /doc/site/images/modx-logo-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/modx-logo-4.png -------------------------------------------------------------------------------- /doc/site/images/plunker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/plunker.png -------------------------------------------------------------------------------- /doc/site/images/rstudio_logo_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/rstudio_logo_64.png -------------------------------------------------------------------------------- /doc/site/images/sassmeister-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/sassmeister-logo.png -------------------------------------------------------------------------------- /doc/site/images/shiftedit-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/shiftedit-logo.png -------------------------------------------------------------------------------- /doc/site/images/sx-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/sx-logo.png -------------------------------------------------------------------------------- /doc/site/images/textimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/site/images/textimage.png -------------------------------------------------------------------------------- /doc/site/iphone.css: -------------------------------------------------------------------------------- 1 | #wrapper { 2 | position:relative; 3 | overflow:hidden; 4 | } 5 | 6 | #wrapper .content .column1 { 7 | margin:0 16px 0 15px; 8 | } 9 | 10 | #header .content .signature { 11 | font-size:18px; 12 | bottom:0; 13 | } 14 | 15 | UL.menu-list LI { 16 | font-size:22px; 17 | } 18 | 19 | UL.menu-footer LI { 20 | font-size:22px; 21 | } 22 | 23 | PRE{ 24 | font-size:22px; 25 | } -------------------------------------------------------------------------------- /doc/site/js/ga.js: -------------------------------------------------------------------------------- 1 | var _gaq = _gaq || []; 2 | _gaq.push(['_setAccount', 'UA-31998201-1']); 3 | _gaq.push(['_trackPageview']); 4 | 5 | (function() { 6 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 7 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 8 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 9 | })(); -------------------------------------------------------------------------------- /doc/template/jade/layout.jade: -------------------------------------------------------------------------------- 1 | include common_layout 2 | include lib 3 | 4 | #documentation.span9 5 | -if (isIndex) 6 | != indexContent 7 | -else 8 | mixin api() 9 | 10 | mixin endingScripts 11 | 12 | div(id="disqus_thread") -------------------------------------------------------------------------------- /doc/template/resources/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /doc/template/resources/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /doc/template/resources/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /doc/template/resources/images/Ace_ERD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/Ace_ERD.png -------------------------------------------------------------------------------- /doc/template/resources/images/ace_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/ace_logo.png -------------------------------------------------------------------------------- /doc/template/resources/images/ace_logo_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/ace_logo_menu.png -------------------------------------------------------------------------------- /doc/template/resources/images/c9-log-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/c9-log-footer.png -------------------------------------------------------------------------------- /doc/template/resources/images/c9-sponsor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/c9-sponsor.png -------------------------------------------------------------------------------- /doc/template/resources/images/cloud9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/cloud9-logo.png -------------------------------------------------------------------------------- /doc/template/resources/images/content-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/content-top.png -------------------------------------------------------------------------------- /doc/template/resources/images/content_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/content_bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/content_top_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/content_top_bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/dashed_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/dashed_back.png -------------------------------------------------------------------------------- /doc/template/resources/images/footer-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/footer-bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/main_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/main_bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/member-sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/member-sprites.png -------------------------------------------------------------------------------- /doc/template/resources/images/menu_disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/menu_disc.png -------------------------------------------------------------------------------- /doc/template/resources/images/method_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/method_bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/scrolled-heading-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/scrolled-heading-shadow.png -------------------------------------------------------------------------------- /doc/template/resources/images/sidebar-top-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/sidebar-top-bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/sidebar_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/sidebar_border.png -------------------------------------------------------------------------------- /doc/template/resources/images/swirl_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/doc/template/resources/images/swirl_divider.png -------------------------------------------------------------------------------- /doc/template/resources/javascripts/prettify-extension.js: -------------------------------------------------------------------------------- 1 | // Stolen from StackOverflow. Find all
 
 2 | // elements on the page and add the "prettyprint" style. If at least one 
 3 | // prettyprint element was found, call the Google Prettify prettyPrint() API.
 4 | //http://sstatic.net/so/js/master.js?v=6523
 5 | function styleCode() 
 6 | {
 7 |     if (typeof disableStyleCode != "undefined") 
 8 |     {
 9 |         return;
10 |     }
11 | 
12 |     var a = false;
13 | 
14 |     $("pre code").parent().each(function() 
15 |     {
16 |         if (!$(this).hasClass("prettyprint")) 
17 |         {
18 |             $(this).addClass("prettyprint");
19 |             a = true
20 |         }
21 |     });
22 |     
23 |     if (a) { prettyPrint() } 
24 | }


--------------------------------------------------------------------------------
/experiments/worker.js:
--------------------------------------------------------------------------------
1 | onmessage = function(e) {
2 |     onmessage = new Function("e", e.data);
3 | };


--------------------------------------------------------------------------------
/experiments/zenbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/experiments/zenbg.png


--------------------------------------------------------------------------------
/lib/ace/mode/_test/tokens_jsoniq.json:
--------------------------------------------------------------------------------
1 | [[
2 |    "[\"start\"]",
3 |   ["support.function","TODO"]
4 | ]]


--------------------------------------------------------------------------------
/lib/ace/mode/xquery/Readme.md:
--------------------------------------------------------------------------------
1 | This files are build from [xqlint](https://github.com/wcandillon/xqlint) (using the `grunt ace_build`)
2 | 


--------------------------------------------------------------------------------
/lib/ace/snippets/jsoniq.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./jsoniq.snippets");
4 | exports.scope = "jsoniq";
5 | 


--------------------------------------------------------------------------------
/lib/ace/snippets/xquery.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./xquery.snippets");
4 | exports.scope = "xquery";
5 | 


--------------------------------------------------------------------------------
/src/clipboard.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var $cancelT;
 4 | module.exports = { 
 5 |     /** @type {string|false} */
 6 |     lineMode: false,
 7 |     pasteCancelled: function() {
 8 |         if ($cancelT && $cancelT > Date.now() - 50)
 9 |             return true;
10 |         return $cancelT = false;
11 |     },
12 |     cancel: function() {
13 |         $cancelT = Date.now();
14 |     }
15 | };
16 | 


--------------------------------------------------------------------------------
/src/css/codefolding-fold-button-states.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/src/css/codefolding-fold-button-states.png


--------------------------------------------------------------------------------
/src/css/expand-marker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ajaxorg/ace/b4748041d889274acc52e10a601729917b3fb10a/src/css/expand-marker.png


--------------------------------------------------------------------------------
/src/ext/split.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | /**
4 |  * this is experimental, and subject to change, use at your own risk!
5 |  */
6 | module.exports = require("../split");
7 | 


--------------------------------------------------------------------------------
/src/layer/text_util.js:
--------------------------------------------------------------------------------
1 | // Tokens for which Ace just uses a simple TextNode and does not add any special className.
2 | const textTokens = new Set(["text", "rparen", "lparen"]);
3 | 
4 | exports.isTextToken = function(tokenType) {
5 |     return textTokens.has(tokenType);
6 | };
7 | 


--------------------------------------------------------------------------------
/src/lib/deep_copy.js:
--------------------------------------------------------------------------------
 1 | exports.deepCopy = function deepCopy(obj) {
 2 |     if (typeof obj !== "object" || !obj)
 3 |         return obj;
 4 |     var copy;
 5 |     if (Array.isArray(obj)) {
 6 |         copy = [];
 7 |         for (let key = 0; key < obj.length; key++) {
 8 |             copy[key] = deepCopy(obj[key]);
 9 |         }
10 |         return copy;
11 |     }
12 |     if (Object.prototype.toString.call(obj) !== "[object Object]")
13 |         return obj;
14 |     
15 |     copy = {};
16 |     for (let key in obj)
17 |         copy[key] = deepCopy(obj[key]);
18 |     return copy;
19 | };
20 | 


--------------------------------------------------------------------------------
/src/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 | "use strict";
14 | 
15 | // @ts-ignore
16 | require("./es6-shim");
17 | 


--------------------------------------------------------------------------------
/src/lib/report_error.js:
--------------------------------------------------------------------------------
1 | 
2 | exports.reportError = function reportError(msg, data) {
3 |     var e = new Error(msg);
4 |     e["data"] = data;
5 |     if (typeof console == "object" && console.error)
6 |         console.error(e);
7 |     setTimeout(function() { throw e; });
8 | };
9 | 


--------------------------------------------------------------------------------
/src/lib/scroll.js:
--------------------------------------------------------------------------------
1 | exports.preventParentScroll = function preventParentScroll(event) {
2 |     event.stopPropagation();
3 |     var target = event.currentTarget;
4 |     var contentOverflows = target.scrollHeight > target.clientHeight;
5 |     if (!contentOverflows) {
6 |         event.preventDefault();
7 |     }
8 | };


--------------------------------------------------------------------------------
/src/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/docs/*` with
 3 | 
 4 | ```sh
 5 | node highlight_rules_test.js -gen
 6 | ```
 7 | 
 8 | command.
 9 | 
10 | 


--------------------------------------------------------------------------------
/src/mode/_test/text_alda.txt:
--------------------------------------------------------------------------------
 1 | vibraphone:
 2 |   (quant 200)
 3 |   (key-signature "f+ c+ g+")
 4 |   a8 b > c d e f g a <
 5 |   a b > c_ d e f_ g_ a <
 6 | 
 7 |   (key-signature [:g :minor])
 8 |   g a b > c+ d e f+ g <
 9 | 
10 |   (key-signature {:e [:flat] :b [:flat]})
11 |   g1~1/b/d


--------------------------------------------------------------------------------
/src/mode/_test/text_coldfusion.txt:
--------------------------------------------------------------------------------
1 | 
2 | 
3 |   z ---> welcome="Hello World!">
4 |   z -->
5 | #welcome#
6 | 
7 |     Dateformat(now())
8 | 


--------------------------------------------------------------------------------
/src/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 | 


--------------------------------------------------------------------------------
/src/mode/_test/text_html.txt:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | '123'
 4 | 
 5 | 
 7 | 
 9 | 
10 | 


--------------------------------------------------------------------------------
/src/mode/_test/text_livescript.txt:
--------------------------------------------------------------------------------
1 | # comment
2 | 


--------------------------------------------------------------------------------
/src/mode/_test/text_markdown.txt:
--------------------------------------------------------------------------------
 1 | test: header 1 
 2 | #f
 3 | # f
 4 | test: header 2
 5 | ## foo
 6 | test: header ends with ' #'
 7 | # # # 
 8 | test: header ends with '#'
 9 | # foo# 
10 | test: 6+ #s is not a valid header
11 | ####### foo
12 | test: # followed be only space is a valid header
13 | # 
14 | test: only space between #s is a valid header
15 | #  #
16 | 
17 | # test links  [Cloud9 IDE](http://www.c9.io/) #
18 | * [demo](http://ajaxorg.github.com/ace/) [+](escape(\) ) [+](a "title") [+](a "space" )
19 | * usually *work* fine (_em_)
20 | in lists
21 | 
22 | in plain text http://ace.ajaxorg.com
23 | 
24 | 


--------------------------------------------------------------------------------
/src/mode/_test/text_php.txt:
--------------------------------------------------------------------------------
 1 |   not &js;
34 | 


--------------------------------------------------------------------------------
/src/mode/_test/text_verilog.txt:
--------------------------------------------------------------------------------
 1 | always @(negedge reset or posedge clk) begin
 2 |   if (reset == 0) begin
 3 |     d_out <= 16'h0000;
 4 |     d_out_mem[resetcount] <= d_out;
 5 |     laststoredvalue <= d_out;
 6 |   end else begin
 7 |     d_out <= d_out + 1'b1; 
 8 |   end
 9 | end
10 | 
11 | always @(bufreadaddr)
12 |   bufreadval = d_out_mem[bufreadaddr];
13 | 
14 | module test;
15 |     assign a = "1";
16 |     initial begin
17 |         $display("Hello \778\xaa\
18 |                   \n world")
19 |         $finish;
20 |     end
21 | endmodule


--------------------------------------------------------------------------------
/src/mode/_test/text_wollok.txt:
--------------------------------------------------------------------------------
 1 | class Actividad {
 2 | 	method calcularMejora()
 3 | }
 4 | 
 5 | class EstudiarMateria inherits Actividad {
 6 | 	var materia
 7 | 	var puntos = 0
 8 | 	
 9 | 	new(m, p) {
10 | 		materia = m
11 | 		puntos = p
12 | 	}
13 | 	
14 | 	override method calcularMejora() = puntos
15 | }
16 | 
17 | class EjercitarEnSimulador inherits Actividad {
18 | 	var horas = 0
19 | 	new(h) { horas = h }
20 | 	override method calcularMejora() = 10 * horas
21 | }
22 | 
23 | object pepita {
24 | 	var energia = 100
25 | 	method volar(m) {
26 | 		energia -= m
27 | 	}
28 | }


--------------------------------------------------------------------------------
/src/mode/_test/text_xml.txt:
--------------------------------------------------------------------------------
1 | //Juhu Kinners
2 | test: two tags in the same lines should be in separate tokens"
3 | 
4 | test: multiline attributes"
5 | 


--------------------------------------------------------------------------------
/src/mode/_test/tokens_aql.json:
--------------------------------------------------------------------------------
 1 | [[
 2 |    "start",
 3 |   ["keyword","FOR"],
 4 |   ["text"," "],
 5 |   ["identifier","user"],
 6 |   ["text"," "],
 7 |   ["keyword","IN"],
 8 |   ["text"," "],
 9 |   ["identifier","users"]
10 | ],[
11 |    "start",
12 |   ["text","  "],
13 |   ["keyword","FILTER"],
14 |   ["text"," "],
15 |   ["identifier","user"],
16 |   ["text","."],
17 |   ["identifier","username"],
18 |   ["text"," "],
19 |   ["keyword.operator","=="],
20 |   ["text"," "],
21 |   ["string","\"olivier\""]
22 | ],[
23 |    "start",
24 |   ["text","  "],
25 |   ["keyword","RETURN"],
26 |   ["text"," "],
27 |   ["identifier","user"]
28 | ]]


--------------------------------------------------------------------------------
/src/mode/_test/tokens_cobol.json:
--------------------------------------------------------------------------------
1 | [[
2 |    "start",
3 |   ["identifier","TODO"]
4 | ]]


--------------------------------------------------------------------------------
/src/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 | ]]


--------------------------------------------------------------------------------
/src/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 | ]]


--------------------------------------------------------------------------------
/src/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 | ]]


--------------------------------------------------------------------------------
/src/mode/_test/tokens_livescript.json:
--------------------------------------------------------------------------------
1 | [[
2 |    "start",
3 |   ["comment","# comment"]
4 | ],[
5 |    "start"
6 | ]]


--------------------------------------------------------------------------------
/src/mode/_test/tokens_mysql.json:
--------------------------------------------------------------------------------
1 | [[
2 |    "start",
3 |   ["identifier","TODO"]
4 | ]]


--------------------------------------------------------------------------------
/src/mode/_test/tokens_razor.json:
--------------------------------------------------------------------------------
 1 | [[
 2 |    ["razor-block-start","@{"],
 3 |   ["punctuation.block.razor","@{"]
 4 | ],[
 5 |    ["razor-block-start","@{"],
 6 |   ["text","\t"],
 7 |   ["identifier","Layout"],
 8 |   ["text"," "],
 9 |   ["keyword.operator","="],
10 |   ["text"," "],
11 |   ["string.start","\""],
12 |   ["string","~/layout"],
13 |   ["string.end","\""]
14 | ],[
15 |    "start",
16 |   ["punctuation.block.razor","}"]
17 | ]]


--------------------------------------------------------------------------------
/src/mode/abap.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var Rules = require("./abap_highlight_rules").AbapHighlightRules;
 4 | var FoldMode = require("./folding/coffee").FoldMode;
 5 | var Range = require("../range").Range;
 6 | var TextMode = require("./text").Mode;
 7 | var oop = require("../lib/oop");
 8 | 
 9 | function Mode() {
10 |     this.HighlightRules = Rules;
11 |     this.foldingRules = new FoldMode();
12 | }
13 | 
14 | oop.inherits(Mode, TextMode);
15 | 
16 | (function() {
17 |     
18 |     this.lineCommentStart = '"';
19 |     
20 |     this.getNextLineIndent = function(state, line, tab) {
21 |         var indent = this.$getIndent(line);
22 |         return indent;
23 |     };    
24 |     
25 |     this.$id = "ace/mode/abap";
26 | }).call(Mode.prototype);
27 | 
28 | exports.Mode = Mode;
29 | 


--------------------------------------------------------------------------------
/src/mode/alda.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var AldaHighlightRules = require("./alda_highlight_rules").AldaHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = AldaHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     // this.lineCommentStart = ""\\(comment\\b"";
21 |     // this.blockComment = {start: ""/*"", end: ""*/""};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/alda";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/apache_conf.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var ApacheConfHighlightRules = require("./apache_conf_highlight_rules").ApacheConfHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = ApacheConfHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "#";
21 |     this.$id = "ace/mode/apache_conf";
22 |     // Extra logic goes here.
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/apex.js:
--------------------------------------------------------------------------------
 1 | /* caption: Apex; extensions: apex,cls,trigger,tgr */
 2 | 
 3 | "use strict";
 4 | 
 5 | var oop = require("../lib/oop");
 6 | var TextMode = require("../mode/text").Mode;
 7 | var ApexHighlightRules = require("./apex_highlight_rules").ApexHighlightRules;
 8 | var FoldMode = require("../mode/folding/cstyle").FoldMode;
 9 | 
10 | function ApexMode() {
11 |     TextMode.call(this);
12 | 
13 |     this.HighlightRules = ApexHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | }
17 | 
18 | oop.inherits(ApexMode, TextMode);
19 | 
20 | ApexMode.prototype.lineCommentStart = "//";
21 | 
22 | ApexMode.prototype.blockComment = {
23 |     start: "/*",
24 |     end: "*/"
25 | };
26 | 
27 | exports.Mode = ApexMode;
28 | 


--------------------------------------------------------------------------------
/src/mode/applescript.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var AppleScriptHighlightRules = require("./applescript_highlight_rules").AppleScriptHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = AppleScriptHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = "--";
17 |     this.blockComment = {start: "(*", end: "*)"};
18 |     this.$id = "ace/mode/applescript";
19 |     // Extra logic goes here.
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/aql.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 |   var oop = require("../lib/oop");
 4 |   var TextMode = require("./text").Mode;
 5 |   var AqlHighlightRules = require("./aql_highlight_rules").AqlHighlightRules;
 6 | 
 7 |   var Mode = function() {
 8 |       this.HighlightRules = AqlHighlightRules;
 9 |       this.$behaviour = this.$defaultBehaviour;
10 |   };
11 |   oop.inherits(Mode, TextMode);
12 | 
13 |   (function() {
14 | 
15 |       this.lineCommentStart = "//";
16 | 
17 |       this.$id = "ace/mode/aql";
18 |   }).call(Mode.prototype);
19 | 
20 |   exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/asl.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var ASLHighlightRules = require("./asl_highlight_rules").ASLHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function () {
 9 |     this.HighlightRules = ASLHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |         this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function () {
16 |     this.$id = "ace/mode/asl";
17 | }).call(Mode.prototype);
18 | 
19 | exports.Mode = Mode;
20 | 


--------------------------------------------------------------------------------
/src/mode/assembly_arm32.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var AssemblyARM32HighlightRules = require("./assembly_arm32_highlight_rules").AssemblyARM32HighlightRules;
 6 | var FoldMode = require("./folding/coffee").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = AssemblyARM32HighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = [";"];
17 | 	this.blockComment = {start: "/*", end: "*/"};
18 |     this.$id = "ace/mode/assembly_arm32";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;


--------------------------------------------------------------------------------
/src/mode/assembly_x86.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var AssemblyX86HighlightRules = require("./assembly_x86_highlight_rules").AssemblyX86HighlightRules;
10 | var FoldMode = require("./folding/coffee").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = AssemblyX86HighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = [";"];
21 |     this.$id = "ace/mode/assembly_x86";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/astro.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlMode = require("./html").Mode;
 5 | var AstroHighlightRules = require("./astro_highlight_rules").AstroHighlightRules;
 6 | var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour;
 7 | 
 8 | var Mode = function() {
 9 |   HtmlMode.call(this);
10 |   this.HighlightRules = AstroHighlightRules;
11 |   this.$behaviour = new HtmlBehaviour();
12 | };
13 | 
14 | oop.inherits(Mode, HtmlMode);
15 | 
16 | (function() {
17 |   this.$id = "ace/mode/astro";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;


--------------------------------------------------------------------------------
/src/mode/autohotkey.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var AutoHotKeyHighlightRules = require("./autohotkey_highlight_rules").AutoHotKeyHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = AutoHotKeyHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = ";";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     this.$id = "ace/mode/autohotkey";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/batchfile.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var BatchFileHighlightRules = require("./batchfile_highlight_rules").BatchFileHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = BatchFileHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "::";
21 |     this.blockComment = "";
22 |     this.$id = "ace/mode/batchfile";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/behaviour/html.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../../lib/oop");
 4 | var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
 5 | 
 6 | /**@type {(new() => Partial)}*/
 7 | var HtmlBehaviour = function () {
 8 | 
 9 |     XmlBehaviour.call(this);
10 | 
11 | };
12 | 
13 | oop.inherits(HtmlBehaviour, XmlBehaviour);
14 | 
15 | exports.HtmlBehaviour = HtmlBehaviour;
16 | 


--------------------------------------------------------------------------------
/src/mode/bibtex.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var BibTeXHighlightRules = require("./bibtex_highlight_rules").BibTeXHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = BibTeXHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 |     this.$id = "ace/mode/bibtex";
16 | }).call(Mode.prototype);
17 | 
18 | exports.Mode = Mode;


--------------------------------------------------------------------------------
/src/mode/cirru.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var CirruHighlightRules = require("./cirru_highlight_rules").CirruHighlightRules;
 6 | var CoffeeFoldMode = require("./folding/coffee").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = CirruHighlightRules;
10 |     this.foldingRules = new CoffeeFoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = "--";
17 |     this.$id = "ace/mode/cirru";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/cobol.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var CobolHighlightRules = require("./cobol_highlight_rules").CobolHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = CobolHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 | 
15 |     this.lineCommentStart = "*";
16 | 
17 |     this.$id = "ace/mode/cobol";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/csound_document.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var CsoundDocumentHighlightRules = require("./csound_document_highlight_rules").CsoundDocumentHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = CsoundDocumentHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 |     this.$id = "ace/mode/csound_document";
14 |     this.snippetFileId = "ace/snippets/csound_document";
15 | }).call(Mode.prototype);
16 | 
17 | exports.Mode = Mode;
18 | 


--------------------------------------------------------------------------------
/src/mode/csound_orchestra.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var CsoundOrchestraHighlightRules = require("./csound_orchestra_highlight_rules").CsoundOrchestraHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = CsoundOrchestraHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 | 
14 |     this.lineCommentStart = ";";
15 |     this.blockComment = {start: "/*", end: "*/"};
16 | 
17 |     this.$id = "ace/mode/csound_orchestra";
18 |     this.snippetFileId = "ace/snippets/csound_orchestra";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/csound_score.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var CsoundScoreHighlightRules = require("./csound_score_highlight_rules").CsoundScoreHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = CsoundScoreHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 | 
14 |     this.lineCommentStart = ";";
15 |     this.blockComment = {start: "/*", end: "*/"};
16 | 
17 |     this.$id = "ace/mode/csound_score";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/csp.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 |     "use strict";
 6 | 
 7 |     var TextMode = require("./text").Mode;
 8 |     var CspHighlightRules = require("./csp_highlight_rules").CspHighlightRules;
 9 |     var oop = require("../lib/oop");
10 | 
11 |     var Mode = function() {
12 |         this.HighlightRules = CspHighlightRules;
13 |     };
14 | 
15 |     oop.inherits(Mode, TextMode);
16 | 
17 |     (function() {
18 |         this.$id = "ace/mode/csp";
19 |     }).call(Mode.prototype);
20 | 
21 |     exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/csv_highlight_rules.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
 5 | 
 6 | 
 7 | var CsvHighlightRules = function() {
 8 |     TextHighlightRules.call(this);
 9 | };
10 | 
11 | oop.inherits(CsvHighlightRules, TextHighlightRules);
12 | 
13 | exports.CsvHighlightRules = CsvHighlightRules;
14 | 


--------------------------------------------------------------------------------
/src/mode/curly_highlight_rules.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
 5 | 
 6 | 
 7 | var CurlyHighlightRules = function() {
 8 |     HtmlHighlightRules.call(this);
 9 | 
10 |     this.$rules["start"].unshift({
11 |         token: "variable",
12 |         regex: "{{",
13 |         push: "curly-start"
14 |     });
15 | 
16 |     this.$rules["curly-start"] = [{
17 |         token: "variable",
18 |         regex: "}}",
19 |         next: "pop"
20 |     }];
21 | 
22 |     this.normalizeRules();
23 | };
24 | 
25 | oop.inherits(CurlyHighlightRules, HtmlHighlightRules);
26 | 
27 | exports.CurlyHighlightRules = CurlyHighlightRules;
28 | 


--------------------------------------------------------------------------------
/src/mode/cuttlefish.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var CuttlefishHighlightRules = require("./cuttlefish_highlight_rules").CuttlefishHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = CuttlefishHighlightRules;
 9 |     this.foldingRules = null;
10 |     this.$behaviour = this.$defaultBehaviour;
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 |     this.lineCommentStart = "#";
16 |     this.blockComment = null;
17 |     this.$id = "ace/mode/cuttlefish";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/d.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var DHighlightRules = require("./d_highlight_rules").DHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = DHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     this.$id = "ace/mode/d";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/diff.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var HighlightRules = require("./diff_highlight_rules").DiffHighlightRules;
 6 | var FoldMode = require("./folding/diff").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = HighlightRules;
10 |     this.foldingRules = new FoldMode(["diff", "@@|\\*{5}"], "i");
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 | 
16 |     this.$id = "ace/mode/diff";
17 |     this.snippetFileId = "ace/snippets/diff";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/dockerfile.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var ShMode = require("./sh").Mode;
 5 | var DockerfileHighlightRules = require("./dockerfile_highlight_rules").DockerfileHighlightRules;
 6 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     ShMode.call(this);
10 |     
11 |     this.HighlightRules = DockerfileHighlightRules;
12 |     this.foldingRules = new CStyleFoldMode();
13 | };
14 | oop.inherits(Mode, ShMode);
15 | 
16 | (function() {
17 |     this.$id = "ace/mode/dockerfile";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/drools.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var DroolsHighlightRules = require("./drools_highlight_rules").DroolsHighlightRules;
 6 | var DroolsFoldMode = require("./folding/drools").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = DroolsHighlightRules;
10 |     this.foldingRules = new DroolsFoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | 
13 | };
14 | oop.inherits(Mode, TextMode);
15 | 
16 | (function() {
17 |     this.lineCommentStart = "//";
18 |     this.$id = "ace/mode/drools";
19 |     this.snippetFileId = "ace/snippets/drools";
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/edifact.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var EdifactHighlightRules = require("./edifact_highlight_rules").EdifactHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |    
 9 |     this.HighlightRules = EdifactHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 |     this.$id = "ace/mode/edifact";
16 |     this.snippetFileId = "ace/snippets/edifact";
17 | }).call(Mode.prototype);
18 | 
19 | exports.Mode = Mode;
20 | 


--------------------------------------------------------------------------------
/src/mode/eiffel.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var EiffelHighlightRules = require("./eiffel_highlight_rules").EiffelHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = EiffelHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 |     this.lineCommentStart = "--";
15 |     this.$id = "ace/mode/eiffel";
16 | }).call(Mode.prototype);
17 | 
18 | exports.Mode = Mode;
19 | 


--------------------------------------------------------------------------------
/src/mode/elixir.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var ElixirHighlightRules = require("./elixir_highlight_rules").ElixirHighlightRules;
10 | var FoldMode = require("./folding/coffee").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = ElixirHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "#";
21 |     // this.blockComment = {start: ""/*"", end: ""*/""};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/elixir";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/elm.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var HighlightRules = require("./elm_highlight_rules").ElmHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = HighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "--";
21 |     this.blockComment = {start: "{-", end: "-}", nestable: true};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/elm";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/erlang.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var ErlangHighlightRules = require("./erlang_highlight_rules").ErlangHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = ErlangHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "%";
21 |     this.blockComment = null;
22 |     this.$id = "ace/mode/erlang";
23 |     this.snippetFileId = "ace/snippets/erlang";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/flix.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var FlixHighlightRules = require("./flix_highlight_rules").FlixHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = FlixHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 |     this.$id = "ace/mode/flix";
14 | }).call(Mode.prototype);
15 | 
16 | exports.Mode = Mode;


--------------------------------------------------------------------------------
/src/mode/folding/html.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../../lib/oop");
 4 | var MixedFoldMode = require("./mixed").FoldMode;
 5 | var XmlFoldMode = require("./xml").FoldMode;
 6 | var CStyleFoldMode = require("./cstyle").FoldMode;
 7 | 
 8 | var FoldMode = exports.FoldMode = function(voidElements, optionalTags) {
 9 |     MixedFoldMode.call(this, new XmlFoldMode(voidElements, optionalTags), {
10 |         "js-": new CStyleFoldMode(),
11 |         "css-": new CStyleFoldMode()
12 |     });
13 | };
14 | 
15 | oop.inherits(FoldMode, MixedFoldMode);
16 | 


--------------------------------------------------------------------------------
/src/mode/folding/sql.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../../lib/oop");
 4 | var BaseFoldMode = require("./cstyle").FoldMode;
 5 | 
 6 | var FoldMode = exports.FoldMode = function() {};
 7 | 
 8 | oop.inherits(FoldMode, BaseFoldMode);
 9 | 
10 | (function() {
11 |     /** 
12 |      * Inheriting cstyle folding because it handles the region comment folding 
13 |      * and special block comment folding appropriately.
14 |      * 
15 |      * Cstyle's getCommentRegionBlock() contains the sql comment characters '--' for end region block.
16 |      */
17 |     
18 | 
19 | }).call(FoldMode.prototype);
20 | 


--------------------------------------------------------------------------------
/src/mode/forth.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var ForthHighlightRules = require("./forth_highlight_rules").ForthHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = ForthHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "--";
21 |     this.blockComment = null;
22 |     this.$id = "ace/mode/forth";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/fsharp.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 |     var oop = require("../lib/oop");
 4 |     var TextMode = require("./text").Mode;
 5 |     var FSharpHighlightRules = require("./fsharp_highlight_rules").FSharpHighlightRules;
 6 |     var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 |     var Mode = function () {
 9 |         TextMode.call(this);
10 |         this.HighlightRules = FSharpHighlightRules;
11 |         this.foldingRules = new CStyleFoldMode();
12 |     };
13 | 
14 |     oop.inherits(Mode, TextMode);
15 | 
16 | 
17 |     (function () {
18 |         this.lineCommentStart = "//";
19 |         this.blockComment = {start: "(*", end: "*)", nestable: true};
20 | 
21 | 
22 |         this.$id = "ace/mode/fsharp";
23 |     }).call(Mode.prototype);
24 | 
25 |     exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/ftl.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var FtlHighlightRules = require("./ftl_highlight_rules").FtlHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = FtlHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 | 
15 |     this.$id = "ace/mode/ftl";
16 | }).call(Mode.prototype);
17 | 
18 | exports.Mode = Mode;
19 | 


--------------------------------------------------------------------------------
/src/mode/gcode.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 |     var oop = require("../lib/oop");
 4 |     var TextMode = require("./text").Mode;
 5 |     var GcodeHighlightRules = require("./gcode_highlight_rules").GcodeHighlightRules;
 6 |     var Range = require("../range").Range;
 7 | 
 8 |     var Mode = function() {
 9 |         this.HighlightRules = GcodeHighlightRules;
10 |         this.$behaviour = this.$defaultBehaviour;
11 |     };
12 |     oop.inherits(Mode, TextMode);
13 | 
14 |     (function() {
15 |         this.$id = "ace/mode/gcode";
16 |     }).call(Mode.prototype);
17 | 
18 |     exports.Mode = Mode;
19 | 


--------------------------------------------------------------------------------
/src/mode/gitignore.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var GitignoreHighlightRules = require("./gitignore_highlight_rules").GitignoreHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = GitignoreHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 |     this.lineCommentStart = "#";
15 |     this.$id = "ace/mode/gitignore";
16 | }).call(Mode.prototype);
17 | 
18 | exports.Mode = Mode;
19 | 


--------------------------------------------------------------------------------
/src/mode/glsl.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var CMode = require("./c_cpp").Mode;
 5 | var glslHighlightRules = require("./glsl_highlight_rules").glslHighlightRules;
 6 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
 7 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 8 | 
 9 | var Mode = function() {
10 |     this.HighlightRules = glslHighlightRules;
11 |     
12 |     this.$outdent = new MatchingBraceOutdent();
13 |     this.$behaviour = this.$defaultBehaviour;
14 |     this.foldingRules = new CStyleFoldMode();
15 | };
16 | oop.inherits(Mode, CMode);
17 | 
18 | (function() {
19 |     this.$id = "ace/mode/glsl";
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/gobstones.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptMode = require("./javascript").Mode;
 5 | var GobstonesHighlightRules = require("./gobstones_highlight_rules").GobstonesHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     JavaScriptMode.call(this);
 9 |     this.HighlightRules = GobstonesHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 | 
14 | (function() {
15 | 
16 |     this.createWorker = function() {
17 |         return null;
18 |     };
19 | 
20 |     this.$id = "ace/mode/gobstones";
21 |     this.snippetFileId = "ace/snippets/gobstones";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/graphqlschema.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var GraphQLSchemaHighlightRules = require("./graphqlschema_highlight_rules").GraphQLSchemaHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = GraphQLSchemaHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 |     this.lineCommentStart = "#";
16 |     this.$id = "ace/mode/graphqlschema";
17 |     this.snippetFileId = "ace/snippets/graphqlschema";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/groovy.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptMode = require("./javascript").Mode;
 5 | var GroovyHighlightRules = require("./groovy_highlight_rules").GroovyHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     JavaScriptMode.call(this);
 9 |     this.HighlightRules = GroovyHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
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 | 


--------------------------------------------------------------------------------
/src/mode/haml.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var HamlHighlightRules = require("./haml_highlight_rules").HamlHighlightRules;
10 | var FoldMode = require("./folding/coffee").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = HamlHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     
22 |     this.$id = "ace/mode/haml";
23 |     this.snippetFileId = "ace/snippets/haml";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/handlebars.js:
--------------------------------------------------------------------------------
 1 | /* global define */
 2 | 
 3 |   "use strict";
 4 | 
 5 | var oop = require("../lib/oop");
 6 | var HtmlMode = require("./html").Mode;
 7 | var HandlebarsHighlightRules = require("./handlebars_highlight_rules").HandlebarsHighlightRules;
 8 | var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour;
 9 | var HtmlFoldMode = require("./folding/html").FoldMode;
10 | 
11 | var Mode = function() {
12 |     HtmlMode.call(this);
13 |     this.HighlightRules = HandlebarsHighlightRules;
14 |     this.$behaviour = new HtmlBehaviour();
15 | };
16 | 
17 | oop.inherits(Mode, HtmlMode);
18 | 
19 | (function() {
20 |     this.blockComment = {start: "{{!--", end: "--}}"};
21 |     this.$id = "ace/mode/handlebars";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/hjson.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var HjsonHighlightRules = require("./hjson_highlight_rules").HjsonHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = HjsonHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 |     this.lineCommentStart = "//";
16 |     this.blockComment = { start: "/*", end: "*/" };
17 |     this.$id = "ace/mode/hjson";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/html_elixir.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlElixirHighlightRules = require("./html_elixir_highlight_rules").HtmlElixirHighlightRules;
 5 | var HtmlMode = require("./html").Mode;
 6 | var JavaScriptMode = require("./javascript").Mode;
 7 | var CssMode = require("./css").Mode;
 8 | var ElixirMode = require("./elixir").Mode;
 9 | 
10 | var Mode = function() {
11 |     HtmlMode.call(this);   
12 |     this.HighlightRules = HtmlElixirHighlightRules;
13 |     this.createModeDelegates({
14 |         "js-": JavaScriptMode,
15 |         "css-": CssMode,
16 |         "elixir-": ElixirMode
17 |     });
18 | };
19 | oop.inherits(Mode, HtmlMode);
20 | 
21 | (function() {
22 | 
23 |     this.$id = "ace/mode/html_elixir";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/html_ruby.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlRubyHighlightRules = require("./html_ruby_highlight_rules").HtmlRubyHighlightRules;
 5 | var HtmlMode = require("./html").Mode;
 6 | var JavaScriptMode = require("./javascript").Mode;
 7 | var CssMode = require("./css").Mode;
 8 | var RubyMode = require("./ruby").Mode;
 9 | 
10 | var Mode = function() {
11 |     HtmlMode.call(this);   
12 |     this.HighlightRules = HtmlRubyHighlightRules;    
13 |     this.createModeDelegates({
14 |         "js-": JavaScriptMode,
15 |         "css-": CssMode,
16 |         "ruby-": RubyMode
17 |     });
18 | };
19 | oop.inherits(Mode, HtmlMode);
20 | 
21 | (function() {
22 | 
23 |     this.$id = "ace/mode/html_ruby";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/ini.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var IniHighlightRules = require("./ini_highlight_rules").IniHighlightRules;
 6 | // TODO: pick appropriate fold mode
 7 | var FoldMode = require("./folding/ini").FoldMode;
 8 | 
 9 | var Mode = function() {
10 |     this.HighlightRules = IniHighlightRules;
11 |     this.foldingRules = new FoldMode();
12 |     this.$behaviour = this.$defaultBehaviour;
13 | };
14 | oop.inherits(Mode, TextMode);
15 | 
16 | (function() {
17 |     this.lineCommentStart = ";";
18 |     this.blockComment = null;
19 |     this.$id = "ace/mode/ini";
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/jade.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var JadeHighlightRules = require("./jade_highlight_rules").JadeHighlightRules;
 6 | var FoldMode = require("./folding/coffee").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = JadeHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() { 
16 | 	this.lineCommentStart = "//";
17 |     this.$id = "ace/mode/jade";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/java.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptMode = require("./javascript").Mode;
 5 | var JavaHighlightRules = require("./java_highlight_rules").JavaHighlightRules;
 6 | var JavaFoldMode = require("./folding/java").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     JavaScriptMode.call(this);
10 |     this.HighlightRules = JavaHighlightRules;
11 |     this.foldingRules = new JavaFoldMode();
12 |     this.$behaviour = this.$defaultBehaviour;
13 | };
14 | oop.inherits(Mode, JavaScriptMode);
15 | 
16 | (function() {
17 |     
18 |     this.createWorker = function(session) {
19 |         return null;
20 |     };
21 | 
22 |     this.$id = "ace/mode/java";
23 |     this.snippetFileId = "ace/snippets/java";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/jexl.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JexlHighlightRules = require("./jexl_highlight_rules").JexlHighlightRules;
 5 | var TextMode = require("./text").Mode;
 6 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function () {
 9 |     this.HighlightRules = JexlHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
11 |     this.foldingRules = new CStyleFoldMode();
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function () {
16 |     this.lineCommentStart = ["//", "##"];
17 |     this.blockComment = {start: "/*", end: "*/"};
18 | 
19 |     this.$id = "ace/mode/jexl";
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/jsp.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var JspHighlightRules = require("./jsp_highlight_rules").JspHighlightRules;
 6 | var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
 7 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 8 | 
 9 | var Mode = function() {
10 |     this.HighlightRules = JspHighlightRules;
11 |     this.$outdent = new MatchingBraceOutdent();
12 |     this.$behaviour = this.$defaultBehaviour;
13 |     this.foldingRules = new CStyleFoldMode();
14 | };
15 | oop.inherits(Mode, TextMode);
16 | 
17 | (function() {
18 | 
19 |     this.$id = "ace/mode/jsp";
20 |     this.snippetFileId = "ace/snippets/jsp";
21 | }).call(Mode.prototype);
22 | 
23 | exports.Mode = Mode;
24 | 


--------------------------------------------------------------------------------
/src/mode/jssm.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var JSSMHighlightRules = require("./jssm_highlight_rules").JSSMHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = JSSMHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/jssm";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/jsx.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var jsMode = require("./javascript").Mode;
 5 | 
 6 | function Mode() {
 7 |     jsMode.call(this);
 8 |     this.$highlightRuleConfig = {jsx: true};
 9 | }
10 | oop.inherits(Mode, jsMode);
11 | 
12 | (function() {
13 |     // disable jshint
14 |     this.createWorker = function() {
15 |         return null;
16 |     };
17 |     this.$id = "ace/mode/jsx";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/jsx_highlight_rules.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
 5 | 
 6 | 
 7 | var JsxHighlightRules = function () {
 8 |   JavaScriptHighlightRules.call(this, {
 9 |     jsx: true
10 |   });
11 | };
12 | oop.inherits(JsxHighlightRules, JavaScriptHighlightRules);
13 | 
14 | exports.JsxHighlightRules = JsxHighlightRules;


--------------------------------------------------------------------------------
/src/mode/julia.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var JuliaHighlightRules = require("./julia_highlight_rules").JuliaHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = JuliaHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 |     this.$behaviour = this.$defaultBehaviour;
17 | };
18 | oop.inherits(Mode, TextMode);
19 | 
20 | (function() {
21 |     this.lineCommentStart = "#";
22 |     this.blockComment = "";
23 |     this.$id = "ace/mode/julia";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/kotlin.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var KotlinHighlightRules = require("./kotlin_highlight_rules").KotlinHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = KotlinHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/kotlin";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/lisp.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var LispHighlightRules = require("./lisp_highlight_rules").LispHighlightRules;
10 | 
11 | var Mode = function() {
12 |     this.HighlightRules = LispHighlightRules;
13 |     this.$behaviour = this.$defaultBehaviour;
14 | };
15 | oop.inherits(Mode, TextMode);
16 | 
17 | (function() {
18 |        
19 |     this.lineCommentStart = ";";
20 |     
21 |     this.$id = "ace/mode/lisp";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/logtalk.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var Tokenizer = require("../tokenizer").Tokenizer;
 6 | var LogtalkHighlightRules = require("./logtalk_highlight_rules").LogtalkHighlightRules;
 7 | // TODO: pick appropriate fold mode
 8 | var FoldMode = require("./folding/cstyle").FoldMode;
 9 | 
10 | var Mode = function() {
11 |     this.HighlightRules = LogtalkHighlightRules;
12 |     this.foldingRules = new FoldMode();
13 |     this.$behaviour = this.$defaultBehaviour;
14 | };
15 | oop.inherits(Mode, TextMode);
16 | 
17 | (function() {
18 |     this.lineCommentStart = "%";
19 |     this.blockComment = {start: "/*", end: "*/"};
20 |     this.$id = "ace/mode/logtalk";
21 | }).call(Mode.prototype);
22 | 
23 | exports.Mode = Mode;
24 | 


--------------------------------------------------------------------------------
/src/mode/luapage.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlMode = require("./html").Mode;
 5 | var LuaMode = require("./lua").Mode;
 6 | var LuaPageHighlightRules = require("./luapage_highlight_rules").LuaPageHighlightRules;
 7 | 
 8 | var Mode = function() {
 9 |     HtmlMode.call(this);
10 |     
11 |     this.HighlightRules = LuaPageHighlightRules;
12 |     this.createModeDelegates({
13 |         "lua-": LuaMode
14 |     });
15 | };
16 | oop.inherits(Mode, HtmlMode);
17 | 
18 | (function() {
19 |     this.$id = "ace/mode/luapage";
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/lucene.js:
--------------------------------------------------------------------------------
 1 | 'use strict';
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = LuceneHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
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 | 


--------------------------------------------------------------------------------
/src/mode/matlab.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var MatlabHighlightRules = require("./matlab_highlight_rules").MatlabHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = MatlabHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 | 
15 |     this.lineCommentStart = "%";
16 |     this.blockComment = {start: "%{", end: "%}"};
17 | 
18 |     this.$id = "ace/mode/matlab";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/maze.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var MazeHighlightRules = require("./maze_highlight_rules").MazeHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = MazeHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = "//";
17 |     this.$id = "ace/mode/maze";
18 |     this.snippetFileId = "ace/snippets/maze";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/mediawiki.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var MediaWikiHighlightRules = require("./mediawiki_highlight_rules").MediaWikiHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = MediaWikiHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 |     this.type = "text";
14 |     this.blockComment = {start: ""};
15 |     this.$id = "ace/mode/mediawiki";
16 | }).call(Mode.prototype);
17 | 
18 | exports.Mode = Mode;
19 | 


--------------------------------------------------------------------------------
/src/mode/mel.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var MELHighlightRules = require("./mel_highlight_rules").MELHighlightRules;
 6 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = MELHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
11 |     this.foldingRules = new CStyleFoldMode();
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 | 
17 |     this.lineCommentStart = "//";
18 |     this.blockComment = {start: "/*", end: "*/"};
19 |     this.$id = "ace/mode/mel";
20 | }).call(Mode.prototype);
21 | 
22 | exports.Mode = Mode;
23 | 


--------------------------------------------------------------------------------
/src/mode/mips.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var MIPSHighlightRules = require("./mips_highlight_rules").MIPSHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = MIPSHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = ["#"];
21 |     this.$id = "ace/mode/mips";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/mixal.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var MixalHighlightRules = require("./mixal_highlight_rules").MixalHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = MixalHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 |     this.$id = "ace/mode/mixal";
14 |     this.lineCommentStart = "*";
15 | }).call(Mode.prototype);
16 | 
17 | exports.Mode = Mode;
18 | 


--------------------------------------------------------------------------------
/src/mode/mysql.js:
--------------------------------------------------------------------------------
 1 | var oop = require("../lib/oop");
 2 | var TextMode = require("../mode/text").Mode;
 3 | var MysqlHighlightRules = require("./mysql_highlight_rules").MysqlHighlightRules;
 4 | 
 5 | var Mode = function() {
 6 |     this.HighlightRules = MysqlHighlightRules;
 7 |     this.$behaviour = this.$defaultBehaviour;
 8 | };
 9 | oop.inherits(Mode, TextMode);
10 | 
11 | (function() {       
12 |     this.lineCommentStart = ["--", "#"]; // todo space
13 |     this.blockComment = {start: "/*", end: "*/"};
14 | 
15 |     this.$id = "ace/mode/mysql";
16 | }).call(Mode.prototype);
17 | 
18 | exports.Mode = Mode;
19 | 


--------------------------------------------------------------------------------
/src/mode/nginx.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var NginxHighlightRules = require("./nginx_highlight_rules").NginxHighlightRules;
 6 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function () {
 9 |     TextMode.call(this);
10 |     this.HighlightRules = NginxHighlightRules;
11 |     this.foldingRules = new CStyleFoldMode();
12 |     this.$behaviour = this.$defaultBehaviour;
13 | };
14 | 
15 | oop.inherits(Mode, TextMode);
16 | 
17 | 
18 | (function () {
19 |     this.lineCommentStart = "#";
20 | 
21 |     this.$id = "ace/mode/nginx";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/nim.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var NimHighlightRules = require("./nim_highlight_rules").NimHighlightRules;
 6 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function () {
 9 |     TextMode.call(this);
10 |     this.HighlightRules = NimHighlightRules;
11 |     this.foldingRules = new CStyleFoldMode();
12 |     this.$behaviour = this.$defaultBehaviour;
13 | };
14 | 
15 | oop.inherits(Mode, TextMode);
16 | 
17 | 
18 | (function () {
19 |     this.lineCommentStart = "#";
20 |     this.blockComment = {start: "#[", end: "]#", nestable: true};
21 | 
22 | 
23 |     this.$id = "ace/mode/nim";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/nix.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var CMode = require("./c_cpp").Mode;
 9 | var NixHighlightRules = require("./nix_highlight_rules").NixHighlightRules;
10 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     CMode.call(this);
14 |     this.HighlightRules = NixHighlightRules;
15 |     this.foldingRules = new CStyleFoldMode();
16 |     this.$behaviour = this.$defaultBehaviour;
17 | };
18 | oop.inherits(Mode, CMode);
19 | 
20 | (function() { 
21 |     this.lineCommentStart = "#";
22 |     this.blockComment = {start: "/*", end: "*/"};
23 |     this.$id = "ace/mode/nix";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/nsis.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var NSISHighlightRules = require("./nsis_highlight_rules").NSISHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = NSISHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = [";", "#"];
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     this.$id = "ace/mode/nsis";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/objectivec.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var ObjectiveCHighlightRules = require("./objectivec_highlight_rules").ObjectiveCHighlightRules;
10 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = ObjectiveCHighlightRules;
14 |     this.foldingRules = new CStyleFoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     this.$id = "ace/mode/objectivec";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/pig.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var PigHighlightRules = require("./pig_highlight_rules").PigHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = PigHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "--";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/pig";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/plain_text.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
 6 | var Behaviour = require("./behaviour").Behaviour;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = TextHighlightRules;
10 |     this.$behaviour = new Behaviour();
11 | };
12 | 
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.type = "text";
17 |     this.getNextLineIndent = function(state, line, tab) {
18 |         return '';
19 |     };
20 |     this.$id = "ace/mode/plain_text";
21 | }).call(Mode.prototype);
22 | 
23 | exports.Mode = Mode;
24 | 


--------------------------------------------------------------------------------
/src/mode/plain_text_test.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var EditSession = require("../edit_session").EditSession;
 4 | var PlainTextMode = require("./plain_text").Mode;
 5 | var assert = require("../test/assertions");
 6 | 
 7 | module.exports = {
 8 |     setUp : function() {
 9 |         this.mode = new PlainTextMode();
10 |     },
11 | 
12 |     "test: lines should not be indented" : function() {
13 |         assert.equal("", this.mode.getNextLineIndent("start", "   abc", "  "));
14 |     }
15 | };
16 | 
17 | 
18 | if (typeof module !== "undefined" && module === require.main) {
19 |     require("asyncjs").test.testcase(module.exports).exec();
20 | }
21 | 


--------------------------------------------------------------------------------
/src/mode/prisma.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var PrismaHighlightRules = require("./prisma_highlight_rules").PrismaHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = PrismaHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     // this.blockComment = {start: ""/*"", end: ""*/""};
22 |     // Extra logic goes here.
23 |     this.$id = "ace/mode/prisma";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/prolog.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var PrologHighlightRules = require("./prolog_highlight_rules").PrologHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = PrologHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "%";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     this.$id = "ace/mode/prolog";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/properties.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = PropertiesHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 |     this.$id = "ace/mode/properties";
15 | }).call(Mode.prototype);
16 | 
17 | exports.Mode = Mode;
18 | 


--------------------------------------------------------------------------------
/src/mode/protobuf.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var CMode = require("./c_cpp").Mode;
 9 | var ProtobufHighlightRules = require("./protobuf_highlight_rules").ProtobufHighlightRules;
10 | var CStyleFoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     CMode.call(this);
14 |     this.foldingRules = new CStyleFoldMode();
15 |     this.HighlightRules = ProtobufHighlightRules;
16 | };
17 | oop.inherits(Mode, CMode);
18 | 
19 | (function() {
20 |     // Extra logic goes here.
21 |     this.lineCommentStart = "//";
22 |     this.blockComment = {start: "/*", end: "*/"};
23 |     this.$id = "ace/mode/protobuf";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/prql.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var HighlightRules = require("./prql_highlight_rules").PrqlHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = HighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = "#";
17 |     // Extra logic goes here.
18 |     this.$id = "ace/mode/prql";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/robot.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 |   
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var RobotHighlightRules = require("./robot_highlight_rules").RobotHighlightRules;
 6 | var FoldMode = require("./folding/pythonic").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |   this.HighlightRules = RobotHighlightRules;
10 |   this.foldingRules = new FoldMode();
11 |   this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |   this.lineCommentStart = "#";
17 |   this.$id = "ace/mode/robot";
18 |   this.snippetFileId = "ace/snippets/robot";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/rst.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var RSTHighlightRules = require("./rst_highlight_rules").RSTHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = RSTHighlightRules;
 9 | };
10 | oop.inherits(Mode, TextMode);
11 | 
12 | (function() {
13 |     this.type = "text";
14 | 
15 |     this.$id = "ace/mode/rst";
16 |     this.snippetFileId = "ace/snippets/rst";
17 | }).call(Mode.prototype);
18 | 
19 | exports.Mode = Mode;
20 | 


--------------------------------------------------------------------------------
/src/mode/rust.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var RustHighlightRules = require("./rust_highlight_rules").RustHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = RustHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     this.blockComment = {start: "/*", end: "*/", nestable: true};
22 |     this.$quotes = { '"': '"' };
23 |     this.$id = "ace/mode/rust";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/sac.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var SaCHighlightRules = require("./sac_highlight_rules").sacHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |   this.HighlightRules = SaCHighlightRules;
10 |   this.foldingRules = new FoldMode();
11 |   this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |   this.lineCommentStart = "//";
17 |   this.blockComment = {start: "/*", end: "*/"};
18 |   this.$id = "ace/mode/sac";
19 | }).call(Mode.prototype);
20 | 
21 | exports.Mode = Mode;
22 | 


--------------------------------------------------------------------------------
/src/mode/sass.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var SassHighlightRules = require("./sass_highlight_rules").SassHighlightRules;
 6 | var FoldMode = require("./folding/coffee").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = SassHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {   
16 |     this.lineCommentStart = "//";
17 |     this.$id = "ace/mode/sass";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/scala.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptMode = require("./javascript").Mode;
 5 | var ScalaHighlightRules = require("./scala_highlight_rules").ScalaHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     JavaScriptMode.call(this);
 9 |     this.HighlightRules = ScalaHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
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/scala";
21 | }).call(Mode.prototype);
22 | 
23 | exports.Mode = Mode;
24 | 


--------------------------------------------------------------------------------
/src/mode/smarty.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlMode = require("./html").Mode;
 5 | var SmartyHighlightRules = require("./smarty_highlight_rules").SmartyHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     HtmlMode.call(this);
 9 |     this.HighlightRules = SmartyHighlightRules;
10 | };
11 | 
12 | oop.inherits(Mode, HtmlMode);
13 | 
14 | (function() {
15 |     
16 |     this.$id = "ace/mode/smarty";
17 | }).call(Mode.prototype);
18 | 
19 | exports.Mode = Mode;
20 | 


--------------------------------------------------------------------------------
/src/mode/soy_template.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var HtmlMode = require("./html").Mode;
 5 | var SoyTemplateHighlightRules = require("./soy_template_highlight_rules").SoyTemplateHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     HtmlMode.call(this);
 9 |     this.HighlightRules = SoyTemplateHighlightRules;
10 | };
11 | oop.inherits(Mode, HtmlMode);
12 | 
13 | (function() {
14 |     this.lineCommentStart = "//";
15 |     this.blockComment = {start: "/*", end: "*/"};
16 |     this.$id = "ace/mode/soy_template";
17 | }).call(Mode.prototype);
18 | 
19 | exports.Mode = Mode;
20 | 


--------------------------------------------------------------------------------
/src/mode/space.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | var oop = require("../lib/oop");
 3 | // defines the parent mode
 4 | var TextMode = require("./text").Mode;
 5 | var FoldMode = require("./folding/coffee").FoldMode;
 6 | // defines the language specific highlighters and folding rules
 7 | var SpaceHighlightRules = require("./space_highlight_rules").SpaceHighlightRules;
 8 | var Mode = function() {
 9 |     // set everything up
10 |     this.HighlightRules = SpaceHighlightRules;
11 |     this.foldingRules = new FoldMode();
12 |     this.$behaviour = this.$defaultBehaviour;
13 | };
14 | oop.inherits(Mode, TextMode);
15 | (function() {
16 |     
17 |     this.$id = "ace/mode/space";
18 | }).call(Mode.prototype);
19 | exports.Mode = Mode;
20 | 


--------------------------------------------------------------------------------
/src/mode/sparql.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var SPARQLHighlightRules = require("./sparql_highlight_rules").SPARQLHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = SPARQLHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     // this.lineCommentStart = ""#"";
21 |     // Extra logic goes here.
22 |     this.$id = "ace/mode/sparql";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/sql.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var SqlHighlightRules = require("./sql_highlight_rules").SqlHighlightRules;
 6 | var SqlFoldMode = require("./folding/sql").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = SqlHighlightRules;
10 |     this.foldingRules = new SqlFoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 | 
17 |     this.lineCommentStart = "--";
18 |     this.blockComment = {start: "/*", end: "*/"};
19 | 
20 |     this.$id = "ace/mode/sql";
21 |     this.snippetFileId = "ace/snippets/sql";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/stylus.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var StylusHighlightRules = require("./stylus_highlight_rules").StylusHighlightRules;
10 | var FoldMode = require("./folding/coffee").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = StylusHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 |     this.$behaviour = this.$defaultBehaviour;
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     this.lineCommentStart = "//";
21 |     this.blockComment = {start: "/*", end: "*/"};
22 |     
23 |     this.$id = "ace/mode/stylus";
24 | }).call(Mode.prototype);
25 | 
26 | exports.Mode = Mode;
27 | 


--------------------------------------------------------------------------------
/src/mode/svg_highlight_rules.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
 5 | var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
 6 | 
 7 | var SvgHighlightRules = function() {
 8 |     XmlHighlightRules.call(this);
 9 | 
10 |     this.embedTagRules(JavaScriptHighlightRules, "js-", "script");
11 | 
12 |     this.normalizeRules();
13 | };
14 | 
15 | oop.inherits(SvgHighlightRules, XmlHighlightRules);
16 | 
17 | exports.SvgHighlightRules = SvgHighlightRules;
18 | 


--------------------------------------------------------------------------------
/src/mode/toml.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var TomlHighlightRules = require("./toml_highlight_rules").TomlHighlightRules;
 6 | var FoldMode = require("./folding/ini").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = TomlHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = "#";
17 |     this.$id = "ace/mode/toml";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/tsv.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var CSVMode = require("./csv").Mode;
 4 | var TsvHighlightRules = require("./tsv_highlight_rules").TsvHighlightRules;
 5 | 
 6 | var Mode = function(options) {
 7 |     var mode = new CSVMode({
 8 |         splitter: "\t",
 9 |         quote: '"'
10 |     });
11 |     mode.HighlightRules = TsvHighlightRules;
12 |     mode.$id = "ace/mode/tsv";
13 |     return mode;
14 | };
15 | 
16 | exports.Mode = Mode;
17 | 


--------------------------------------------------------------------------------
/src/mode/tsv_highlight_rules.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
 5 | 
 6 | 
 7 | var TsvHighlightRules = function() {
 8 |     TextHighlightRules.call(this);
 9 | };
10 | 
11 | oop.inherits(TsvHighlightRules, TextHighlightRules);
12 | 
13 | exports.TsvHighlightRules = TsvHighlightRules;
14 | 


--------------------------------------------------------------------------------
/src/mode/tsx.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | const JavaScriptBehaviour = require("./behaviour/javascript").JavaScriptBehaviour;
 9 | const JavaScriptFoldMode = require("./folding/javascript").FoldMode;
10 | var tsMode = require("./typescript").Mode;
11 | 
12 | var Mode = function() {
13 |     tsMode.call(this);
14 |     this.$highlightRuleConfig = {jsx: true};
15 |     this.foldingRules = new JavaScriptFoldMode();
16 |     this.$behaviour = new JavaScriptBehaviour();
17 | };
18 | oop.inherits(Mode, tsMode);
19 | 
20 | (function() {
21 |     this.$id = "ace/mode/tsx";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/tsx_highlight_rules.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TypeScriptHighlightRules = require("./typescript_highlight_rules").TypeScriptHighlightRules;
 5 | 
 6 | var TsxHighlightRules = function () {
 7 |     TypeScriptHighlightRules.call(this, {
 8 |       jsx: true
 9 |     });
10 | };
11 | oop.inherits(TsxHighlightRules, TypeScriptHighlightRules);
12 | 
13 | exports.TsxHighlightRules = TsxHighlightRules;


--------------------------------------------------------------------------------
/src/mode/turtle.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var TurtleHighlightRules = require("./turtle_highlight_rules").TurtleHighlightRules;
10 | // TODO: pick appropriate fold mode
11 | var FoldMode = require("./folding/cstyle").FoldMode;
12 | 
13 | var Mode = function() {
14 |     this.HighlightRules = TurtleHighlightRules;
15 |     this.foldingRules = new FoldMode();
16 | };
17 | oop.inherits(Mode, TextMode);
18 | 
19 | (function() {
20 |     // this.lineCommentStart = ""#"";
21 |     // Extra logic goes here.
22 |     this.$id = "ace/mode/turtle";
23 | }).call(Mode.prototype);
24 | 
25 | exports.Mode = Mode;
26 | 


--------------------------------------------------------------------------------
/src/mode/verilog.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var VerilogHighlightRules = require("./verilog_highlight_rules").VerilogHighlightRules;
 6 | var Range = require("../range").Range;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = VerilogHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
11 | };
12 | oop.inherits(Mode, TextMode);
13 | 
14 | (function() {
15 | 
16 |     this.lineCommentStart = "//";
17 |     this.blockComment = {start: "/*", end: "*/"};
18 |     this.$quotes = { '"': '"' };
19 | 
20 | 
21 |     this.$id = "ace/mode/verilog";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/vhdl.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var VHDLHighlightRules = require("./vhdl_highlight_rules").VHDLHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     this.HighlightRules = VHDLHighlightRules;
 9 |     this.$behaviour = this.$defaultBehaviour;
10 | };
11 | oop.inherits(Mode, TextMode);
12 | 
13 | (function() {
14 | 
15 |     this.lineCommentStart = "--";
16 | 
17 |     this.$id = "ace/mode/vhdl";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/mode/wollok.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var JavaScriptMode = require("./javascript").Mode;
 5 | var WollokHighlightRules = require("./wollok_highlight_rules").WollokHighlightRules;
 6 | 
 7 | var Mode = function() {
 8 |     JavaScriptMode.call(this);
 9 |     this.HighlightRules = WollokHighlightRules;
10 |     this.$behaviour = this.$defaultBehaviour;
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/wollok";
21 |     this.snippetFileId = "ace/snippets/wollok";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/zeek.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |   THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
 3 | */
 4 | 
 5 | "use strict";
 6 | 
 7 | var oop = require("../lib/oop");
 8 | var TextMode = require("./text").Mode;
 9 | var ZeekHighlightRules = require("./zeek_highlight_rules").ZeekHighlightRules;
10 | var FoldMode = require("./folding/cstyle").FoldMode;
11 | 
12 | var Mode = function() {
13 |     this.HighlightRules = ZeekHighlightRules;
14 |     this.foldingRules = new FoldMode();
15 | };
16 | oop.inherits(Mode, TextMode);
17 | 
18 | (function() {
19 |     this.lineCommentStart = "#";
20 |     // Extra logic goes here.
21 |     this.$id = "ace/mode/zeek";
22 | }).call(Mode.prototype);
23 | 
24 | exports.Mode = Mode;
25 | 


--------------------------------------------------------------------------------
/src/mode/zig.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | var oop = require("../lib/oop");
 4 | var TextMode = require("./text").Mode;
 5 | var ZigHighlightRules = require("./zig_highlight_rules").ZigHighlightRules;
 6 | var FoldMode = require("./folding/cstyle").FoldMode;
 7 | 
 8 | var Mode = function() {
 9 |     this.HighlightRules = ZigHighlightRules;
10 |     this.foldingRules = new FoldMode();
11 |     this.$behaviour = this.$defaultBehaviour;
12 | };
13 | oop.inherits(Mode, TextMode);
14 | 
15 | (function() {
16 |     this.lineCommentStart = "//";
17 |     this.$id = "ace/mode/zig";
18 | }).call(Mode.prototype);
19 | 
20 | exports.Mode = Mode;
21 | 


--------------------------------------------------------------------------------
/src/snippets/abc.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./abc.snippets");
4 | exports.scope = "abc";
5 | 


--------------------------------------------------------------------------------
/src/snippets/actionscript.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./actionscript.snippets");
4 | exports.scope = "actionscript";
5 | 


--------------------------------------------------------------------------------
/src/snippets/c_cpp.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./c_cpp.snippets");
4 | exports.scope = "c_cpp";
5 | 


--------------------------------------------------------------------------------
/src/snippets/clojure.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./clojure.snippets");
4 | exports.scope = "clojure";
5 | 


--------------------------------------------------------------------------------
/src/snippets/coffee.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./coffee.snippets");
4 | exports.scope = "coffee";
5 | 


--------------------------------------------------------------------------------
/src/snippets/csound_document.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./csound_document.snippets");
4 | exports.scope = "csound_document";
5 | 


--------------------------------------------------------------------------------
/src/snippets/csound_document.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# 
 2 | snippet synth
 3 | 	
 4 | 	
 5 | 	\${1}
 6 | 	
 7 | 	
 8 | 	e
 9 | 	
10 | 	
11 | `;
12 | 


--------------------------------------------------------------------------------
/src/snippets/csound_orchestra.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./csound_orchestra.snippets");
4 | exports.scope = "csound_orchestra";
5 | 


--------------------------------------------------------------------------------
/src/snippets/css.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./css.snippets");
4 | exports.scope = "css";
5 | 


--------------------------------------------------------------------------------
/src/snippets/dart.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./dart.snippets");
4 | exports.scope = "dart";
5 | 


--------------------------------------------------------------------------------
/src/snippets/diff.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./diff.snippets");
4 | exports.scope = "diff";
5 | 


--------------------------------------------------------------------------------
/src/snippets/diff.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# 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 | `;
13 | 


--------------------------------------------------------------------------------
/src/snippets/django.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./django.snippets");
4 | exports.scope = "django";
5 | 


--------------------------------------------------------------------------------
/src/snippets/drools.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./drools.snippets");
4 | exports.scope = "drools";
5 | 


--------------------------------------------------------------------------------
/src/snippets/drools.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `
 2 | snippet rule
 3 | 	rule "\${1?:rule_name}"
 4 | 	when
 5 | 		\${2:// when...} 
 6 | 	then
 7 | 		\${3:// then...}
 8 | 	end
 9 | 
10 | snippet query
11 | 	query \${1?:query_name}
12 | 		\${2:// find} 
13 | 	end
14 | 	
15 | snippet declare
16 | 	declare \${1?:type_name}
17 | 		\${2:// attributes} 
18 | 	end
19 | 
20 | `;
21 | 


--------------------------------------------------------------------------------
/src/snippets/edifact.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |     
3 |     exports.snippetText = require("./edifact.snippets");
4 |     exports.scope = "edifact";
5 | 


--------------------------------------------------------------------------------
/src/snippets/erlang.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./erlang.snippets");
4 | exports.scope = "erlang";
5 | 


--------------------------------------------------------------------------------
/src/snippets/fsl.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./fsl.snippets");
4 | exports.scope = "fsl";
5 | 


--------------------------------------------------------------------------------
/src/snippets/fsl.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `snippet header
 2 | 	machine_name     : "";
 3 | 	machine_author   : "";
 4 | 	machine_license  : MIT;
 5 | 	machine_comment  : "";
 6 | 	machine_language : en;
 7 | 	machine_version  : 1.0.0;
 8 | 	fsl_version      : 1.0.0;
 9 | 	start_states     : [];
10 | `;
11 | 


--------------------------------------------------------------------------------
/src/snippets/gobstones.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./gobstones.snippets");
4 | exports.scope = "gobstones";
5 | 


--------------------------------------------------------------------------------
/src/snippets/graphqlschema.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./graphqlschema.snippets");
4 | exports.scope = "graphqlschema";
5 | 


--------------------------------------------------------------------------------
/src/snippets/graphqlschema.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# Type Snippet
 2 | trigger type
 3 | snippet type
 4 | 	type \${1:type_name} {
 5 | 		\${2:type_siblings}
 6 | 	}
 7 | 
 8 | # Input Snippet
 9 | trigger input
10 | snippet input
11 | 	input \${1:input_name} {
12 | 		\${2:input_siblings}
13 | 	}
14 | 
15 | # Interface Snippet
16 | trigger interface
17 | snippet interface
18 | 	interface \${1:interface_name} {
19 | 		\${2:interface_siblings}
20 | 	}
21 | 
22 | # Interface Snippet
23 | trigger union
24 | snippet union
25 | 	union \${1:union_name} = \${2:type} | \${3: type}
26 | 
27 | # Enum Snippet
28 | trigger enum
29 | snippet enum
30 | 	enum \${1:enum_name} {
31 | 		\${2:enum_siblings}
32 | 	}
33 | `;
34 | 


--------------------------------------------------------------------------------
/src/snippets/haml.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./haml.snippets");
4 | exports.scope = "haml";
5 | 


--------------------------------------------------------------------------------
/src/snippets/haml.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `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 | `;
22 | 


--------------------------------------------------------------------------------
/src/snippets/haskell.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./haskell.snippets");
4 | exports.scope = "haskell";
5 | 


--------------------------------------------------------------------------------
/src/snippets/html.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./html.snippets");
4 | exports.scope = "html";
5 | 


--------------------------------------------------------------------------------
/src/snippets/java.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./java.snippets");
4 | exports.scope = "java";
5 | 


--------------------------------------------------------------------------------
/src/snippets/javascript.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./javascript.snippets");
4 | exports.scope = "javascript";
5 | 


--------------------------------------------------------------------------------
/src/snippets/jsp.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./jsp.snippets");
4 | exports.scope = "jsp";
5 | 


--------------------------------------------------------------------------------
/src/snippets/liquid.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./liquid.snippets");
4 | exports.scope = "liquid";
5 | 


--------------------------------------------------------------------------------
/src/snippets/lsl.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./lsl.snippets");
4 | exports.scope = "lsl";
5 | 


--------------------------------------------------------------------------------
/src/snippets/lua.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./lua.snippets");
4 | exports.scope = "lua";
5 | 


--------------------------------------------------------------------------------
/src/snippets/lua.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `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 | `;
23 | 


--------------------------------------------------------------------------------
/src/snippets/makefile.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./makefile.snippets");
4 | exports.scope = "makefile";
5 | 


--------------------------------------------------------------------------------
/src/snippets/makefile.snippets.js:
--------------------------------------------------------------------------------
1 | module.exports = `snippet ifeq
2 | 	ifeq (\${1:cond0},\${2:cond1})
3 | 		\${3:code}
4 | 	endif
5 | `;
6 | 


--------------------------------------------------------------------------------
/src/snippets/markdown.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./markdown.snippets");
4 | exports.scope = "markdown";
5 | 


--------------------------------------------------------------------------------
/src/snippets/maze.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./maze.snippets");
4 | exports.scope = "maze";
5 | 


--------------------------------------------------------------------------------
/src/snippets/maze.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `snippet >
 2 | description assignment
 3 | scope maze
 4 | 	-> \${1}= \${2}
 5 | 
 6 | snippet >
 7 | description if
 8 | scope maze
 9 | 	-> IF \${2:**} THEN %\${3:L} ELSE %\${4:R}
10 | `;
11 | 


--------------------------------------------------------------------------------
/src/snippets/perl.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./perl.snippets");
4 | exports.scope = "perl";
5 | 


--------------------------------------------------------------------------------
/src/snippets/php.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./php.snippets");
4 | exports.scope = "php";
5 | 


--------------------------------------------------------------------------------
/src/snippets/python.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./python.snippets");
4 | exports.scope = "python";
5 | 


--------------------------------------------------------------------------------
/src/snippets/r.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./r.snippets");
4 | exports.scope = "r";
5 | 


--------------------------------------------------------------------------------
/src/snippets/razor.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./razor.snippets");
4 | exports.scope = "razor";
5 | 


--------------------------------------------------------------------------------
/src/snippets/razor.snippets.js:
--------------------------------------------------------------------------------
1 | module.exports = `snippet if
2 | (\${1} == \${2}) {
3 | 	\${3}
4 | }`;
5 | 


--------------------------------------------------------------------------------
/src/snippets/robot.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./robot.snippets");
4 | exports.scope = "robot";
5 | 


--------------------------------------------------------------------------------
/src/snippets/rst.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./rst.snippets");
4 | exports.scope = "rst";
5 | 


--------------------------------------------------------------------------------
/src/snippets/rst.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# 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 | `;
24 | 


--------------------------------------------------------------------------------
/src/snippets/ruby.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./ruby.snippets");
4 | exports.scope = "ruby";
5 | 


--------------------------------------------------------------------------------
/src/snippets/sh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./sh.snippets");
4 | exports.scope = "sh";
5 | 


--------------------------------------------------------------------------------
/src/snippets/snippets.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./snippets.snippets");
4 | exports.scope = "snippets";
5 | 


--------------------------------------------------------------------------------
/src/snippets/snippets.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# 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 | `;
11 | 


--------------------------------------------------------------------------------
/src/snippets/sql.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./sql.snippets");
4 | exports.scope = "sql";
5 | 


--------------------------------------------------------------------------------
/src/snippets/sqlserver.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./sqlserver.snippets");
4 | exports.scope = "sqlserver";
5 | 


--------------------------------------------------------------------------------
/src/snippets/tcl.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./tcl.snippets");
4 | exports.scope = "tcl";
5 | 


--------------------------------------------------------------------------------
/src/snippets/tex.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./tex.snippets");
4 | exports.scope = "tex";
5 | 


--------------------------------------------------------------------------------
/src/snippets/textile.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./textile.snippets");
4 | exports.scope = "textile";
5 | 


--------------------------------------------------------------------------------
/src/snippets/textile.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# 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 | `;
32 | 


--------------------------------------------------------------------------------
/src/snippets/velocity.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./velocity.snippets");
4 | exports.scope = "velocity";
5 | exports.includeScopes = ["html", "javascript", "css"];
6 | 


--------------------------------------------------------------------------------
/src/snippets/velocity.snippets.js:
--------------------------------------------------------------------------------
 1 | module.exports = `# 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 | `;
30 | 


--------------------------------------------------------------------------------
/src/snippets/wollok.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("./wollok.snippets");
4 | exports.scope = "wollok";
5 | 


--------------------------------------------------------------------------------
/src/test/all.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | require("amd-loader");
4 | var test = require("asyncjs").test;
5 | test.walkTestCases(__dirname + "/..").exec();
6 | 


--------------------------------------------------------------------------------
/src/test/asyncjs/index.js:
--------------------------------------------------------------------------------
 1 | /*!
 2 |  * async.js
 3 |  * Copyright(c) 2010 Fabian Jakobs 
 4 |  * MIT Licensed
 5 |  */
 6 | 
 7 |     
 8 | module.exports = require("./async")
 9 | module.exports.test = require("./test")
10 | require("./utils")
11 | 


--------------------------------------------------------------------------------
/src/test/util.js:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * @returns {boolean} true if it's a Node.js environment, false otherwise
 3 |  */
 4 | function isNodeEnvironment() {
 5 |     return typeof process !== "undefined";
 6 | }
 7 | 
 8 | module.exports = {
 9 |     isNodeEnvironment
10 | };


--------------------------------------------------------------------------------
/src/theme/ambiance.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-ambiance";
3 | exports.cssText = require("./ambiance-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/chaos.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-chaos";
3 | exports.cssText = require("./chaos-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/chrome.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-chrome";
3 | exports.cssText = require("./chrome-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/cloud9_day.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 |   exports.isDark = false;
4 |   exports.cssClass = "ace-cloud9-day";
5 |   exports.cssText = require("./cloud9_day-css");
6 | 
7 |   var dom = require("../lib/dom");
8 |   dom.importCssString(exports.cssText, exports.cssClass);
9 | 


--------------------------------------------------------------------------------
/src/theme/cloud9_night.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 |   exports.cssClass = "ace-cloud9-night";
3 |   exports.cssText = require("./cloud9_night-css");
4 | 
5 |   var dom = require("../lib/dom");
6 |   dom.importCssString(exports.cssText, exports.cssClass);
7 | 


--------------------------------------------------------------------------------
/src/theme/cloud9_night_low_color.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 |   exports.cssClass = "ace-cloud9-night-low-color";
3 |   exports.cssText = require("./cloud9_night_low_color-css");
4 | 
5 |   var dom = require("../lib/dom");
6 |   dom.importCssString(exports.cssText, exports.cssClass);
7 | 


--------------------------------------------------------------------------------
/src/theme/cloud_editor.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-cloud_editor";
3 | exports.cssText = require("./cloud_editor-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/cloud_editor_dark.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-cloud_editor_dark";
3 | exports.cssText = require("./cloud_editor_dark-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/clouds.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-clouds";
3 | exports.cssText = require("./clouds-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/clouds_midnight.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-clouds-midnight";
3 | exports.cssText = require("./clouds_midnight-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/cobalt.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-cobalt";
3 | exports.cssText = require("./cobalt-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/crimson_editor.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssText = require("./crimson_editor-css");
3 | 
4 | exports.cssClass = "ace-crimson-editor";
5 | 
6 | var dom = require("../lib/dom");
7 | dom.importCssString(exports.cssText, exports.cssClass, false);
8 | 


--------------------------------------------------------------------------------
/src/theme/dawn.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-dawn";
3 | exports.cssText = require("./dawn-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/dracula.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-dracula";
3 | exports.cssText = require("./dracula-css");
4 | exports.$selectionColorConflict = true;
5 | 
6 | var dom = require("../lib/dom");
7 | dom.importCssString(exports.cssText, exports.cssClass, false);
8 | 


--------------------------------------------------------------------------------
/src/theme/dreamweaver.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-dreamweaver";
3 | exports.cssText = require("./dreamweaver-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/eclipse.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | exports.isDark = false;
 4 | exports.cssText = require("./eclipse-css");
 5 | 
 6 | exports.cssClass = "ace-eclipse";
 7 | 
 8 | var dom = require("../lib/dom");
 9 | dom.importCssString(exports.cssText, exports.cssClass, false);
10 | 


--------------------------------------------------------------------------------
/src/theme/github.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-github";
3 | exports.cssText = require("./github-css");
4 | 
5 |     var dom = require("../lib/dom");
6 |     dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/github_dark.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-github-dark";
3 | exports.cssText = require("./github_dark-css");
4 | 
5 |     var dom = require("../lib/dom");
6 |     dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 
8 | 


--------------------------------------------------------------------------------
/src/theme/github_light_default.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-github-light-default";
3 | exports.cssText = require("./github_light_default-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/gob.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-gob";
3 | exports.cssText = require("./gob-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/gruvbox.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-gruvbox";
3 | exports.cssText = require("./gruvbox-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/gruvbox_dark_hard.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-gruvbox-dark-hard";
3 | exports.cssText = require("./gruvbox_dark_hard-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass);
7 | 


--------------------------------------------------------------------------------
/src/theme/gruvbox_light_hard.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-gruvbox-light-hard";
3 | exports.cssText = require("./gruvbox_light_hard-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass);
7 | 


--------------------------------------------------------------------------------
/src/theme/idle_fingers.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-idle-fingers";
3 | exports.cssText = require("./idle_fingers-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/iplastic.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-iplastic";
3 | exports.cssText = require("./iplastic-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/katzenmilch.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-katzenmilch";
3 | exports.cssText = require("./katzenmilch-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/kr_theme.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-kr-theme";
3 | exports.cssText = require("./kr_theme-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/kuroir.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-kuroir";
3 | exports.cssText = require("./kuroir-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/merbivore.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-merbivore";
3 | exports.cssText = require("./merbivore-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/merbivore_soft.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-merbivore-soft";
3 | exports.cssText = require("./merbivore_soft-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/mono_industrial.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-mono-industrial";
3 | exports.cssText = require("./mono_industrial-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/monokai.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-monokai";
3 | exports.cssText = require("./monokai-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/nord_dark.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-nord-dark";
3 | exports.cssText = require("./nord_dark-css");
4 | exports.$selectionColorConflict = true;
5 | 
6 | var dom = require("../lib/dom");
7 | dom.importCssString(exports.cssText, exports.cssClass, false);
8 | 


--------------------------------------------------------------------------------
/src/theme/one_dark.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 |     exports.cssClass = "ace-one-dark";
3 |     exports.cssText = require("./one_dark-css");
4 |     
5 |     var dom = require("../lib/dom");
6 |     dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/pastel_on_dark.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-pastel-on-dark";
3 | exports.cssText = require("./pastel_on_dark-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/solarized_dark.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-solarized-dark";
3 | exports.cssText = require("./solarized_dark-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/solarized_light.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-solarized-light";
3 | exports.cssText = require("./solarized_light-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/sqlserver.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-sqlserver";
3 | exports.cssText = require("./sqlserver-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/terminal.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-terminal-theme";
3 | exports.cssText = require("./terminal-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/textmate.js:
--------------------------------------------------------------------------------
 1 | "use strict";
 2 | 
 3 | exports.isDark = false;
 4 | exports.cssClass = "ace-tm";
 5 | exports.cssText = require("./textmate-css");
 6 | exports.$id = "ace/theme/textmate";
 7 | 
 8 | var dom = require("../lib/dom");
 9 | dom.importCssString(exports.cssText, exports.cssClass, false);
10 | 


--------------------------------------------------------------------------------
/src/theme/tomorrow.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-tomorrow";
3 | exports.cssText = require("./tomorrow-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/tomorrow_night.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-tomorrow-night";
3 | exports.cssText = require("./tomorrow_night-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/tomorrow_night_blue.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-tomorrow-night-blue";
3 | exports.cssText = require("./tomorrow_night_blue-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/tomorrow_night_bright.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-tomorrow-night-bright";
3 | exports.cssText = require("./tomorrow_night_bright-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/tomorrow_night_eighties.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-tomorrow-night-eighties";
3 | exports.cssText = require("./tomorrow_night_eighties-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/twilight.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-twilight";
3 | exports.cssText = require("./twilight-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/vibrant_ink.js:
--------------------------------------------------------------------------------
1 | exports.isDark = true;
2 | exports.cssClass = "ace-vibrant-ink";
3 | exports.cssText = require("./vibrant_ink-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/theme/xcode.js:
--------------------------------------------------------------------------------
1 | exports.isDark = false;
2 | exports.cssClass = "ace-xcode";
3 | exports.cssText = require("./xcode-css");
4 | 
5 | var dom = require("../lib/dom");
6 | dom.importCssString(exports.cssText, exports.cssClass, false);
7 | 


--------------------------------------------------------------------------------
/src/worker/worker_client.js:
--------------------------------------------------------------------------------
 1 | // not implemented
 2 | var WorkerClient;
 3 | WorkerClient = function() {
 4 |     this.attachToDocument = function() {};
 5 |     this.on = function() {};
 6 |     this.terminate = function() {};
 7 | };
 8 | 
 9 | exports.WorkerClient = WorkerClient;
10 | 


--------------------------------------------------------------------------------
/tool/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "ace-tools",
 3 |   "version": "0.1.0",
 4 |   "dependencies": {
 5 |     "amd-loader": "~0.0.4",
 6 |     "browser-pack": "5.0.1",
 7 |     "browserify": "10.2.4",
 8 |     "cson": "3.0.1",
 9 |     "css-parse": "1.0.3",
10 |     "css-stringify": "1.0.3",
11 |     "deps-sort": "1.3.9",
12 |     "derequire": "2.0.0",
13 |     "plist": "3.0.5"
14 |   }
15 | }
16 | 


--------------------------------------------------------------------------------
/tool/regexp_tokenizer_test.js:
--------------------------------------------------------------------------------
 1 | require("amd-loader");
 2 | var assert = require("assert");
 3 | 
 4 | var tk = require("./regexp_tokenizer");
 5 | var tokenize = tk.tokenize;
 6 | var toStr = tk.toStr;
 7 | 
 8 | var logTokens = function(tokens) {
 9 |     tokens.forEach(function(x) {
10 |         delete x.end
11 |         delete x.start
12 |     })
13 |     console.log(tokens)
14 | }
15 | 
16 | assert.equal(toStr(
17 |     tokenize("(?x)c + +\n\
18 |     # comment\n\
19 |     (?-x)  #  (?x:  1 \n\
20 |         (2) [ ]   # a    \n\
21 |         3  4)  c#"
22 |     )),    
23 |     "(?x)c++(?-x)  #  (?x:1(2)[ ]34)  c#"
24 |  )
25 | assert.equal(toStr(
26 |     tokenize("(?x)\n\
27 |         u  # comment\n\
28 |     ")),
29 |     "(?x)u"
30 |  )
31 | 


--------------------------------------------------------------------------------
/tool/templates/snippets.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | 
3 | exports.snippetText = require("../requirejs/text!./%modeName%.snippets");
4 | exports.scope = "%modeName%";


--------------------------------------------------------------------------------
/tool/tmthemes/LICENSE:
--------------------------------------------------------------------------------
1 | If not otherwise specified (see below), files in this directory fall under the following license:
2 | 
3 |    Permission to copy, use, modify, sell and distribute this
4 |    software is granted. This software is provided "as is" without
5 |    express or implied warranty, and with no claim as to its
6 |    suitability for any purpose.
7 | 
8 | An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”.


--------------------------------------------------------------------------------
/translations/Readme.md:
--------------------------------------------------------------------------------
1 | ### Generating new translation file
2 | - Create a `JSON` file in this folder named `.json`.
3 | - Add `{"$id": ""}` to the empty file.
4 | - Run `node Makefile.dryice.js nls` in the root of the repository to generate empty translation file.


--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "compilerOptions": {
 3 |     "strict": false,
 4 |     "noImplicitAny": false,
 5 |     "skipDefaultLibCheck": true,
 6 |     "module": "commonjs",
 7 |     "target": "es2019",
 8 |     "allowJs": true,
 9 |     "checkJs": true,
10 |     "declaration": true,
11 |     "noEmit": true,
12 |   },
13 |   "exclude": [
14 |     "node_modules",
15 |     "src/test",
16 |     "src/**/*_test.js",
17 |     "src/keyboard/vim.js",
18 |     "src/keyboard/emacs.js",
19 |     "src/keyboard/sublime.js",
20 |     "src/keyboard/vscode.js",
21 |     "src/mode",
22 |     "./ace-internal.d.ts",
23 |     "./ace-modes.d.ts",
24 |     "src/**/* *"
25 |   ],
26 |   "include": [
27 |     "./src/**/*",
28 |     "./ace.d.ts",
29 |     "./types/ace_*.d.ts"
30 |   ]
31 | }
32 | 


--------------------------------------------------------------------------------
/version.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var x;
3 | x = require('./package');
4 | console.log(x.version);
5 | 


--------------------------------------------------------------------------------