From 6f8f346e408d0f9afb879e085452cc11d49ba314 Mon Sep 17 00:00:00 2001 From: mikedeboer Date: Wed, 22 Sep 2010 14:55:30 +0200 Subject: [PATCH 1/3] added license info (LGPL) to editor files --- LICENSE | 165 +++++++++++++++++++ src/ace/BackgroundTokenizer.js | 7 + src/ace/Document.js | 7 + src/ace/Editor.js | 7 + src/ace/KeyBinding.js | 7 + src/ace/MEventEmitter.js | 7 + src/ace/PluginManager.js | 7 + src/ace/Range.js | 7 + src/ace/ScrollBar.js | 7 + src/ace/Search.js | 7 + src/ace/Selection.js | 7 + src/ace/TextInput.js | 7 + src/ace/Tokenizer.js | 7 + src/ace/UndoManager.js | 7 + src/ace/VirtualRenderer.js | 7 + src/ace/ace.js | 7 + src/ace/commands/DefaultCommands.js | 7 + src/ace/conf/keybindings/default_mac.js | 8 + src/ace/conf/keybindings/default_win.js | 8 + src/ace/layer/Cursor.js | 7 + src/ace/layer/Gutter.js | 7 + src/ace/layer/Marker.js | 7 + src/ace/layer/Text.js | 7 + src/ace/lib/core.js | 7 + src/ace/lib/dom.js | 7 + src/ace/lib/event.js | 7 + src/ace/lib/lang.js | 7 + src/ace/lib/oop.js | 7 + src/ace/mode/Css.js | 7 + src/ace/mode/CssHighlightRules.js | 7 + src/ace/mode/DocCommentHighlightRules.js | 7 + src/ace/mode/Html.js | 7 + src/ace/mode/HtmlHighlightRules.js | 7 + src/ace/mode/JavaScript.js | 7 + src/ace/mode/JavaScriptHighlightRules.js | 7 + src/ace/mode/MatchingBraceOutdent.js | 7 + src/ace/mode/Text.js | 7 + src/ace/mode/TextHighlightRules.js | 7 + src/ace/mode/Xml.js | 7 + src/ace/mode/XmlHighlightRules.js | 7 + src/test/ace/ChangeDocumentTest.js | 7 + src/test/ace/DocumentTest.js | 7 + src/test/ace/EventEmitterTest.js | 7 + src/test/ace/MockRenderer.js | 7 + src/test/ace/NavigationTest.js | 7 + src/test/ace/RangeTest.js | 7 + src/test/ace/SearchTest.js | 7 + src/test/ace/SelectionTest.js | 7 + src/test/ace/TextEditTest.js | 7 + src/test/ace/VirtualRendererTest.js | 7 + src/test/ace/assertions.js | 7 + src/test/ace/mode/CssTest.js | 7 + src/test/ace/mode/CssTokenizerTest.js | 7 + src/test/ace/mode/HtmlTest.js | 7 + src/test/ace/mode/HtmlTokenizerTest.js | 7 + src/test/ace/mode/JavaScriptTest.js | 7 + src/test/ace/mode/JavaScriptTokenizerTest.js | 7 + src/test/ace/mode/TextTest.js | 7 + src/test/ace/mode/XmlTest.js | 7 + src/test/ace/mode/XmlTokenizerTest.js | 7 + 60 files changed, 580 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..02bbb60b --- /dev/null +++ b/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. \ No newline at end of file diff --git a/src/ace/BackgroundTokenizer.js b/src/ace/BackgroundTokenizer.js index 04ae3a59..a4d6f0f3 100644 --- a/src/ace/BackgroundTokenizer.js +++ b/src/ace/BackgroundTokenizer.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/BackgroundTokenizer", ["ace/ace", "ace/MEventEmitter"], function(ace, MEventEmitter) { var BackgroundTokenizer = function(tokenizer) { diff --git a/src/ace/Document.js b/src/ace/Document.js index 522f5e48..7410ee35 100644 --- a/src/ace/Document.js +++ b/src/ace/Document.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/Document", [ "ace/ace", diff --git a/src/ace/Editor.js b/src/ace/Editor.js index 5de0ad63..da029f68 100644 --- a/src/ace/Editor.js +++ b/src/ace/Editor.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/Editor", [ "ace/ace", diff --git a/src/ace/KeyBinding.js b/src/ace/KeyBinding.js index 80c8a8cb..2c3e3aef 100644 --- a/src/ace/KeyBinding.js +++ b/src/ace/KeyBinding.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/KeyBinding", ["ace/ace", "ace/conf/keybindings/default_mac", diff --git a/src/ace/MEventEmitter.js b/src/ace/MEventEmitter.js index 5626def8..32627d20 100644 --- a/src/ace/MEventEmitter.js +++ b/src/ace/MEventEmitter.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/MEventEmitter", ["ace/ace"], function(ace) { var MEventEmitter = {} diff --git a/src/ace/PluginManager.js b/src/ace/PluginManager.js index 44e92cbc..18025088 100644 --- a/src/ace/PluginManager.js +++ b/src/ace/PluginManager.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/PluginManager", [], function() { var PluginManager = { diff --git a/src/ace/Range.js b/src/ace/Range.js index 76dbf88f..57783a85 100644 --- a/src/ace/Range.js +++ b/src/ace/Range.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/Range", function() { var Range = function(startRow, startColumn, endRow, endColumn) { diff --git a/src/ace/ScrollBar.js b/src/ace/ScrollBar.js index bbbe6315..4938b582 100644 --- a/src/ace/ScrollBar.js +++ b/src/ace/ScrollBar.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/ScrollBar", ["ace/ace", "ace/MEventEmitter"], function(ace, MEventEmitter) { var ScrollBar = function(parent) { diff --git a/src/ace/Search.js b/src/ace/Search.js index 8f4955f2..f41be559 100644 --- a/src/ace/Search.js +++ b/src/ace/Search.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/Search", ["ace/ace", "ace/Range"], function(ace, Range) { diff --git a/src/ace/Selection.js b/src/ace/Selection.js index b4386619..13465bf3 100644 --- a/src/ace/Selection.js +++ b/src/ace/Selection.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/Selection", [ "ace/ace", "ace/MEventEmitter", diff --git a/src/ace/TextInput.js b/src/ace/TextInput.js index c052beb8..ca58a185 100644 --- a/src/ace/TextInput.js +++ b/src/ace/TextInput.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/TextInput", ["ace/ace"], function(ace) { var TextInput = function(parentNode, host) { diff --git a/src/ace/Tokenizer.js b/src/ace/Tokenizer.js index 4d932486..71b5d54f 100644 --- a/src/ace/Tokenizer.js +++ b/src/ace/Tokenizer.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/Tokenizer", [], function() { var Tokenizer = function(rules) { diff --git a/src/ace/UndoManager.js b/src/ace/UndoManager.js index 53990829..4133fb8d 100644 --- a/src/ace/UndoManager.js +++ b/src/ace/UndoManager.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/UndoManager", function() { var UndoManager = function() { diff --git a/src/ace/VirtualRenderer.js b/src/ace/VirtualRenderer.js index 07388b1a..d58668eb 100644 --- a/src/ace/VirtualRenderer.js +++ b/src/ace/VirtualRenderer.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/VirtualRenderer", [ "ace/ace", diff --git a/src/ace/ace.js b/src/ace/ace.js index 2665afe8..a254b454 100644 --- a/src/ace/ace.js +++ b/src/ace/ace.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/ace", [ "ace/lib/core", "ace/lib/dom", diff --git a/src/ace/commands/DefaultCommands.js b/src/ace/commands/DefaultCommands.js index 53ac9171..a3a79150 100644 --- a/src/ace/commands/DefaultCommands.js +++ b/src/ace/commands/DefaultCommands.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/commands/DefaultCommands", ["ace/PluginManager"], function(PluginManager) { diff --git a/src/ace/conf/keybindings/default_mac.js b/src/ace/conf/keybindings/default_mac.js index 8f8d3c30..f6b66b5a 100644 --- a/src/ace/conf/keybindings/default_mac.js +++ b/src/ace/conf/keybindings/default_mac.js @@ -1,4 +1,12 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/conf/keybindings/default_mac", function() { +} return { "selectall": "Meta-A", diff --git a/src/ace/conf/keybindings/default_win.js b/src/ace/conf/keybindings/default_win.js index b8ab3f4c..9c8fce78 100644 --- a/src/ace/conf/keybindings/default_win.js +++ b/src/ace/conf/keybindings/default_win.js @@ -1,4 +1,12 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/conf/keybindings/default_win", function() { +} return { "selectall": "Control-A", diff --git a/src/ace/layer/Cursor.js b/src/ace/layer/Cursor.js index 4a9caf1e..aa11fdfd 100644 --- a/src/ace/layer/Cursor.js +++ b/src/ace/layer/Cursor.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/layer/Cursor", ["ace/ace"], function(ace) { var Cursor = function(parentEl) { diff --git a/src/ace/layer/Gutter.js b/src/ace/layer/Gutter.js index 596c6bca..373ad0a3 100644 --- a/src/ace/layer/Gutter.js +++ b/src/ace/layer/Gutter.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/layer/Gutter", [], function() { var Gutter = function(parentEl) { diff --git a/src/ace/layer/Marker.js b/src/ace/layer/Marker.js index a4f97ff1..3b7d0d6b 100644 --- a/src/ace/layer/Marker.js +++ b/src/ace/layer/Marker.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/layer/Marker", [], function() { var Marker = function(parentEl) { diff --git a/src/ace/layer/Text.js b/src/ace/layer/Text.js index aab584b1..0e87ecb4 100644 --- a/src/ace/layer/Text.js +++ b/src/ace/layer/Text.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/layer/Text", ["ace/ace", "ace/MEventEmitter"], function(ace, MEventEmitter) { var Text = function(parentEl) { diff --git a/src/ace/lib/core.js b/src/ace/lib/core.js index e0c2c2c2..d957156c 100644 --- a/src/ace/lib/core.js +++ b/src/ace/lib/core.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/lib/core", function() { var core = {}; diff --git a/src/ace/lib/dom.js b/src/ace/lib/dom.js index 8a238d47..b8331c6e 100644 --- a/src/ace/lib/dom.js +++ b/src/ace/lib/dom.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/lib/dom", ["ace/lib/lang"], function(lang) { var dom = {}; diff --git a/src/ace/lib/event.js b/src/ace/lib/event.js index 28067ead..6e048445 100644 --- a/src/ace/lib/event.js +++ b/src/ace/lib/event.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/lib/event", ["ace/lib/core"], function(core) { var event = {}; diff --git a/src/ace/lib/lang.js b/src/ace/lib/lang.js index e04bd7ee..c17432e0 100644 --- a/src/ace/lib/lang.js +++ b/src/ace/lib/lang.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/lib/lang", function() { var lang = {}; diff --git a/src/ace/lib/oop.js b/src/ace/lib/oop.js index 2cce4252..093bea2b 100644 --- a/src/ace/lib/oop.js +++ b/src/ace/lib/oop.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/lib/oop", function() { var oop = {}; diff --git a/src/ace/mode/Css.js b/src/ace/mode/Css.js index 29e5897e..97b98900 100644 --- a/src/ace/mode/Css.js +++ b/src/ace/mode/Css.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/Css", [ "ace/ace", diff --git a/src/ace/mode/CssHighlightRules.js b/src/ace/mode/CssHighlightRules.js index c2ecd51f..06b9c39b 100644 --- a/src/ace/mode/CssHighlightRules.js +++ b/src/ace/mode/CssHighlightRules.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/CssHighlightRules", [ "ace/ace", diff --git a/src/ace/mode/DocCommentHighlightRules.js b/src/ace/mode/DocCommentHighlightRules.js index d996fc17..69301f86 100644 --- a/src/ace/mode/DocCommentHighlightRules.js +++ b/src/ace/mode/DocCommentHighlightRules.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/DocCommentHighlightRules", [ "ace/ace", diff --git a/src/ace/mode/Html.js b/src/ace/mode/Html.js index 0ba42c3d..435fdac6 100644 --- a/src/ace/mode/Html.js +++ b/src/ace/mode/Html.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/Html", [ "ace/ace", diff --git a/src/ace/mode/HtmlHighlightRules.js b/src/ace/mode/HtmlHighlightRules.js index 1eea2b94..58da4eda 100644 --- a/src/ace/mode/HtmlHighlightRules.js +++ b/src/ace/mode/HtmlHighlightRules.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/HtmlHighlightRules", [ "ace/ace", diff --git a/src/ace/mode/JavaScript.js b/src/ace/mode/JavaScript.js index c9b271cd..9aab2c8f 100644 --- a/src/ace/mode/JavaScript.js +++ b/src/ace/mode/JavaScript.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/JavaScript", [ "ace/ace", diff --git a/src/ace/mode/JavaScriptHighlightRules.js b/src/ace/mode/JavaScriptHighlightRules.js index 815512fc..7483ecfd 100644 --- a/src/ace/mode/JavaScriptHighlightRules.js +++ b/src/ace/mode/JavaScriptHighlightRules.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/JavaScriptHighlightRules", [ "ace/ace", diff --git a/src/ace/mode/MatchingBraceOutdent.js b/src/ace/mode/MatchingBraceOutdent.js index ac08e0ec..4e9aa7e7 100644 --- a/src/ace/mode/MatchingBraceOutdent.js +++ b/src/ace/mode/MatchingBraceOutdent.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/MatchingBraceOutdent", [], function() { var MatchingBraceOutdent = function() {}; diff --git a/src/ace/mode/Text.js b/src/ace/mode/Text.js index faf90325..69985ffa 100644 --- a/src/ace/mode/Text.js +++ b/src/ace/mode/Text.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/Text", [ "ace/Tokenizer", diff --git a/src/ace/mode/TextHighlightRules.js b/src/ace/mode/TextHighlightRules.js index 15bc1e60..3918c55e 100644 --- a/src/ace/mode/TextHighlightRules.js +++ b/src/ace/mode/TextHighlightRules.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/TextHighlightRules", [], function() { var TextHighlightRules = function() { diff --git a/src/ace/mode/Xml.js b/src/ace/mode/Xml.js index 994dfc2b..a334a1d3 100644 --- a/src/ace/mode/Xml.js +++ b/src/ace/mode/Xml.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/Xml", [ "ace/ace", diff --git a/src/ace/mode/XmlHighlightRules.js b/src/ace/mode/XmlHighlightRules.js index 61c92344..f56eb9eb 100644 --- a/src/ace/mode/XmlHighlightRules.js +++ b/src/ace/mode/XmlHighlightRules.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ require.def("ace/mode/XmlHighlightRules", [ "ace/ace", diff --git a/src/test/ace/ChangeDocumentTest.js b/src/test/ace/ChangeDocumentTest.js index 1a41c573..98db7997 100644 --- a/src/test/ace/ChangeDocumentTest.js +++ b/src/test/ace/ChangeDocumentTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var ChangeDocumentTest = new TestCase("ChangeDocumentTest", { setUp : function() { diff --git a/src/test/ace/DocumentTest.js b/src/test/ace/DocumentTest.js index 25817208..6a8f8a36 100644 --- a/src/test/ace/DocumentTest.js +++ b/src/test/ace/DocumentTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var TextDocumentTest = new TestCase("TextDocumentTest", { "test: find matching opening bracket" : function() { diff --git a/src/test/ace/EventEmitterTest.js b/src/test/ace/EventEmitterTest.js index 2c383c9e..a2e092fa 100644 --- a/src/test/ace/EventEmitterTest.js +++ b/src/test/ace/EventEmitterTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var EventEmitter = function() {}; ace.implement(EventEmitter.prototype, ace.MEventEmitter); diff --git a/src/test/ace/MockRenderer.js b/src/test/ace/MockRenderer.js index 1d7a780b..589f72bf 100644 --- a/src/test/ace/MockRenderer.js +++ b/src/test/ace/MockRenderer.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ MockRenderer = function(visibleRowCount) { this.container = document.createElement("div"); this.cursor = { diff --git a/src/test/ace/NavigationTest.js b/src/test/ace/NavigationTest.js index f7eee858..91a3e9ff 100644 --- a/src/test/ace/NavigationTest.js +++ b/src/test/ace/NavigationTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var NavigationTest = TestCase("NavigationTest", { createTextDocument : function(rows, cols) { diff --git a/src/test/ace/RangeTest.js b/src/test/ace/RangeTest.js index 5fe98aae..ae8e5b2b 100644 --- a/src/test/ace/RangeTest.js +++ b/src/test/ace/RangeTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ RangeTest = new TestCase("RangeTest", { "test: create range": function() { diff --git a/src/test/ace/SearchTest.js b/src/test/ace/SearchTest.js index 8a97baf2..cc8e7f0e 100644 --- a/src/test/ace/SearchTest.js +++ b/src/test/ace/SearchTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var SearchTest = new TestCase("SearchTest", { "test: configure the search object" : function() { diff --git a/src/test/ace/SelectionTest.js b/src/test/ace/SelectionTest.js index 05f76be9..e8fcaf06 100644 --- a/src/test/ace/SelectionTest.js +++ b/src/test/ace/SelectionTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var SelectionTest = TestCase("SelectionTest", { createTextDocument : function(rows, cols) { diff --git a/src/test/ace/TextEditTest.js b/src/test/ace/TextEditTest.js index c31650c9..aebe21df 100644 --- a/src/test/ace/TextEditTest.js +++ b/src/test/ace/TextEditTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var TextEditTest = TestCase("TextEditTest", { "test: delete line from the middle" : function() { diff --git a/src/test/ace/VirtualRendererTest.js b/src/test/ace/VirtualRendererTest.js index 3a943485..3b2e8659 100644 --- a/src/test/ace/VirtualRendererTest.js +++ b/src/test/ace/VirtualRendererTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var VirtualRendererTest = new TestCase("VirtualRendererTest", { "test: screen2text the column should be rounded to the next character edge" : function() { diff --git a/src/test/ace/assertions.js b/src/test/ace/assertions.js index 3e754934..3683b90b 100644 --- a/src/test/ace/assertions.js +++ b/src/test/ace/assertions.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ assertPosition = function(row, column, cursor) { assertEquals(row, cursor.row); assertEquals(column, cursor.column); diff --git a/src/test/ace/mode/CssTest.js b/src/test/ace/mode/CssTest.js index a7d02c1b..8ac7758a 100644 --- a/src/test/ace/mode/CssTest.js +++ b/src/test/ace/mode/CssTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var CssTest = new TestCase("mode.CssTest", { setUp : function() { diff --git a/src/test/ace/mode/CssTokenizerTest.js b/src/test/ace/mode/CssTokenizerTest.js index 56d1ce0f..8ece8de1 100644 --- a/src/test/ace/mode/CssTokenizerTest.js +++ b/src/test/ace/mode/CssTokenizerTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var CssTest = new TestCase("mode.CssTest", { setUp : function() { diff --git a/src/test/ace/mode/HtmlTest.js b/src/test/ace/mode/HtmlTest.js index 9b6041e9..4335a781 100644 --- a/src/test/ace/mode/HtmlTest.js +++ b/src/test/ace/mode/HtmlTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var HtmlTest = new TestCase("mode.HtmlTest", { setUp : function() { diff --git a/src/test/ace/mode/HtmlTokenizerTest.js b/src/test/ace/mode/HtmlTokenizerTest.js index 19bebb1a..a30580c3 100644 --- a/src/test/ace/mode/HtmlTokenizerTest.js +++ b/src/test/ace/mode/HtmlTokenizerTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var HtmlTest = new TestCase("mode.HtmlTest", { setUp : function() { diff --git a/src/test/ace/mode/JavaScriptTest.js b/src/test/ace/mode/JavaScriptTest.js index 79f49330..fc21d812 100644 --- a/src/test/ace/mode/JavaScriptTest.js +++ b/src/test/ace/mode/JavaScriptTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var JavaScriptTest = new TestCase("mode.JavaScriptTest", { setUp : function() { diff --git a/src/test/ace/mode/JavaScriptTokenizerTest.js b/src/test/ace/mode/JavaScriptTokenizerTest.js index 60f628e4..7db23a7b 100644 --- a/src/test/ace/mode/JavaScriptTokenizerTest.js +++ b/src/test/ace/mode/JavaScriptTokenizerTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var JavaScriptTokenizerTest = new TestCase("mode.JavaScriptTokenizerTest", { setUp : function() { diff --git a/src/test/ace/mode/TextTest.js b/src/test/ace/mode/TextTest.js index 462f317c..6cd1a685 100644 --- a/src/test/ace/mode/TextTest.js +++ b/src/test/ace/mode/TextTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var TextTest = new TestCase("mode.TextTest", { setUp : function() { diff --git a/src/test/ace/mode/XmlTest.js b/src/test/ace/mode/XmlTest.js index dc8143d3..0692f5c0 100644 --- a/src/test/ace/mode/XmlTest.js +++ b/src/test/ace/mode/XmlTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var XmlTest = new TestCase("mode.XmlTest", { setUp : function() { diff --git a/src/test/ace/mode/XmlTokenizerTest.js b/src/test/ace/mode/XmlTokenizerTest.js index b3aaf6cf..e3e09b5d 100644 --- a/src/test/ace/mode/XmlTokenizerTest.js +++ b/src/test/ace/mode/XmlTokenizerTest.js @@ -1,3 +1,10 @@ +/** + * Ajax.org Code Editor (ACE) + * + * @copyright 2010, Ajax.org Services B.V. + * @license LGPLv3 + * @author Fabian Jakobs + */ var XmlTest = new TestCase("mode.XmlTest", { setUp : function() { From 1fdc39d0c3c9ee6af476905108f845e55db35bab Mon Sep 17 00:00:00 2001 From: mikedeboer Date: Wed, 22 Sep 2010 16:08:40 +0200 Subject: [PATCH 2/3] added package.json for NPM --- package.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 00000000..bfd67f0d --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "ace", + "description": "Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE", + "version": "0.1", + "homepage" : "http://github.com/ajaxorg/editor", + "engines": {"node": ">= 0.1.102"}, + "author": "Fabian Jakobs ", + "main": "src/ace/ace", + "repository" : { + "type" : "git", + "url" : "http://github.com/ajaxorg/editor.git" + }, + "licenses": [{ + "type": "LGPLv3", + "url": "http://www.gnu.org/licenses/lgpl-3.0.txt"} + ] +} \ No newline at end of file From ee295ae563eec6f1e92dd9a82ab855f37e96d660 Mon Sep 17 00:00:00 2001 From: mikedeboer Date: Wed, 22 Sep 2010 16:22:08 +0200 Subject: [PATCH 3/3] fixed default bindings --- src/ace/conf/keybindings/default_mac.js | 1 - src/ace/conf/keybindings/default_win.js | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ace/conf/keybindings/default_mac.js b/src/ace/conf/keybindings/default_mac.js index f6b66b5a..4ee84e95 100644 --- a/src/ace/conf/keybindings/default_mac.js +++ b/src/ace/conf/keybindings/default_mac.js @@ -6,7 +6,6 @@ * @author Fabian Jakobs */ require.def("ace/conf/keybindings/default_mac", function() { -} return { "selectall": "Meta-A", diff --git a/src/ace/conf/keybindings/default_win.js b/src/ace/conf/keybindings/default_win.js index 9c8fce78..7cbf6a2c 100644 --- a/src/ace/conf/keybindings/default_win.js +++ b/src/ace/conf/keybindings/default_win.js @@ -6,7 +6,6 @@ * @author Fabian Jakobs */ require.def("ace/conf/keybindings/default_win", function() { -} return { "selectall": "Control-A",