From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../client/shared/sourceeditor/codemirror/LICENSE | 23 + .../codemirror/addon/accessibleTextarea.js | 146 + .../codemirror/addon/comment/comment.js | 209 + .../codemirror/addon/comment/continuecomment.js | 78 + .../codemirror/addon/dialog/dialog.css | 32 + .../sourceeditor/codemirror/addon/dialog/dialog.js | 161 + .../codemirror/addon/display/placeholder.js | 63 + .../codemirror/addon/edit/closebrackets.js | 191 + .../sourceeditor/codemirror/addon/edit/closetag.js | 184 + .../codemirror/addon/edit/continuelist.js | 99 + .../codemirror/addon/edit/matchbrackets.js | 150 + .../codemirror/addon/edit/matchtags.js | 66 + .../codemirror/addon/edit/trailingspace.js | 27 + .../codemirror/addon/fold/brace-fold.js | 105 + .../codemirror/addon/fold/comment-fold.js | 59 + .../sourceeditor/codemirror/addon/fold/foldcode.js | 152 + .../codemirror/addon/fold/foldgutter.css | 20 + .../codemirror/addon/fold/foldgutter.js | 151 + .../codemirror/addon/fold/indent-fold.js | 48 + .../codemirror/addon/fold/markdown-fold.js | 49 + .../sourceeditor/codemirror/addon/fold/xml-fold.js | 184 + .../codemirror/addon/runmode/runmode.js | 72 + .../codemirror/addon/scroll/annotatescrollbar.js | 128 + .../codemirror/addon/search/match-highlighter.js | 165 + .../codemirror/addon/search/matchesonscrollbar.js | 97 + .../sourceeditor/codemirror/addon/search/search.js | 323 + .../codemirror/addon/search/searchcursor.js | 293 + .../codemirror/addon/selection/active-line.js | 72 + .../codemirror/addon/selection/mark-selection.js | 119 + .../shared/sourceeditor/codemirror/cmiframe.html | 25 + .../sourceeditor/codemirror/codemirror.bundle.js | 1 + .../shared/sourceeditor/codemirror/keymap/emacs.js | 418 + .../sourceeditor/codemirror/keymap/sublime.js | 691 ++ .../shared/sourceeditor/codemirror/keymap/vim.js | 5494 +++++++++++ .../sourceeditor/codemirror/lib/codemirror.css | 350 + .../sourceeditor/codemirror/lib/codemirror.js | 9788 ++++++++++++++++++++ .../sourceeditor/codemirror/mode/clike/clike.js | 889 ++ .../codemirror/mode/clojure/clojure.js | 292 + .../codemirror/mode/coffeescript/coffeescript.js | 359 + .../shared/sourceeditor/codemirror/mode/css/css.js | 831 ++ .../shared/sourceeditor/codemirror/mode/elm/elm.js | 205 + .../sourceeditor/codemirror/mode/haxe/haxe.js | 515 + .../codemirror/mode/htmlmixed/htmlmixed.js | 152 + .../sourceeditor/codemirror/mode/http/http.js | 113 + .../codemirror/mode/javascript/javascript.js | 934 ++ .../shared/sourceeditor/codemirror/mode/jsx/jsx.js | 148 + .../sourceeditor/codemirror/mode/rust/rust.js | 72 + .../sourceeditor/codemirror/mode/simple/simple.js | 216 + .../sourceeditor/codemirror/mode/wasm/wasm.js | 203 + .../shared/sourceeditor/codemirror/mode/xml/xml.js | 413 + .../shared/sourceeditor/codemirror/mozilla.css | 320 + 51 files changed, 25895 insertions(+) create mode 100644 devtools/client/shared/sourceeditor/codemirror/LICENSE create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/accessibleTextarea.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/comment/comment.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/comment/continuecomment.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/dialog/dialog.css create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/dialog/dialog.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/display/placeholder.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/edit/closebrackets.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/edit/closetag.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/edit/continuelist.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/edit/matchbrackets.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/edit/matchtags.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/edit/trailingspace.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/brace-fold.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/comment-fold.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/foldcode.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/foldgutter.css create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/foldgutter.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/indent-fold.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/markdown-fold.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/fold/xml-fold.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/runmode/runmode.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/scroll/annotatescrollbar.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/search/match-highlighter.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/search/matchesonscrollbar.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/search/search.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/search/searchcursor.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/selection/active-line.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/addon/selection/mark-selection.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/cmiframe.html create mode 100644 devtools/client/shared/sourceeditor/codemirror/codemirror.bundle.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/keymap/emacs.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/keymap/sublime.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/keymap/vim.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/lib/codemirror.css create mode 100644 devtools/client/shared/sourceeditor/codemirror/lib/codemirror.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/clike/clike.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/clojure/clojure.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/coffeescript/coffeescript.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/css/css.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/elm/elm.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/haxe/haxe.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/htmlmixed/htmlmixed.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/http/http.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/javascript/javascript.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/jsx/jsx.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/rust/rust.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/simple/simple.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/wasm/wasm.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mode/xml/xml.js create mode 100644 devtools/client/shared/sourceeditor/codemirror/mozilla.css (limited to 'devtools/client/shared/sourceeditor/codemirror') diff --git a/devtools/client/shared/sourceeditor/codemirror/LICENSE b/devtools/client/shared/sourceeditor/codemirror/LICENSE new file mode 100644 index 0000000000..4db615dd23 --- /dev/null +++ b/devtools/client/shared/sourceeditor/codemirror/LICENSE @@ -0,0 +1,23 @@ +Copyright (C) 2015 by Marijn Haverbeke and others + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Please note that some subdirectories of the CodeMirror distribution +include their own LICENSE files, and are released under different +licences. diff --git a/devtools/client/shared/sourceeditor/codemirror/addon/accessibleTextarea.js b/devtools/client/shared/sourceeditor/codemirror/addon/accessibleTextarea.js new file mode 100644 index 0000000000..6119ca0818 --- /dev/null +++ b/devtools/client/shared/sourceeditor/codemirror/addon/accessibleTextarea.js @@ -0,0 +1,146 @@ +/* + * Copyright (C) 2012 Google Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +(function(mod) { + mod(require("resource://devtools/client/shared/sourceeditor/codemirror/lib/codemirror.js")); +})(function(CodeMirror) { + // CodeMirror uses an offscreen