Commit 6560ac6d by Arnaud Fontaine

erp5_code_mirror: Update to 3.22.

1 parent 9240d498
Showing 404 changed files with 4536 additions and 277 deletions
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>AUTHORS</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>List of CodeMirror contributors. Updated before every release.\n
\n
4r2r\n
Aaron Brooks\n
Abe Fettig\n
Adam King\n
adanlobato\n
Adán Lobato\n
aeroson\n
Ahmad Amireh\n
Ahmad M. Zawawi\n
ahoward\n
Akeksandr Motsjonov\n
Alberto Pose\n
Albert Xing\n
Alexander Pavlov\n
Alexander Schepanovski\n
Alexander Solovyov\n
alexey-k\n
Alex Piggott\n
Amsul\n
Amy\n
Ananya Sen\n
anaran\n
AndersMad\n
Anderson Mesquita\n
Andre von Houck\n
Andrey Lushnikov\n
Andy Joslin\n
Andy Kimball\n
Andy Li\n
angelozerr\n
angelo.zerr@gmail.com\n
Ankit Ahuja\n
Ansel Santosa\n
Anthony Grimes\n
Anton Kovalyov\n
areos\n
AtomicPages LLC\n
Atul Bhouraskar\n
Aurelian Oancea\n
Bastian Müller\n
benbro\n
Beni Cherniavsky-Paskin\n
Benjamin DeCoste\n
Ben Keen\n
Bernhard Sirlinger\n
Billy Moon\n
Blaine G\n
boomyjee\n
borawjm\n
Brandon Frohs\n
Brandon Wamboldt\n
Brett Zamir\n
Brian Sletten\n
Bruce Mitchener\n
Chandra Sekhar Pydi\n
Charles Skelton\n
Chris Coyier\n
Chris Granger\n
Chris Houseknecht\n
Chris Morgan\n
Christopher Brown\n
ciaranj\n
CodeAnimal\n
ComFreek\n
Curtis Gagliardi\n
dagsta\n
Dan Heberden\n
Daniel, Dao Quang Minh\n
Daniel Faust\n
Daniel Huigens\n
Daniel KJ\n
Daniel Neel\n
Daniel Parnell\n
Danny Yoo\n
Darius Roberts\n
David Mignot\n
David Pathakjee\n
deebugger\n
Deep Thought\n
domagoj412\n
Dominator008\n
Domizio Demichelis\n
Drew Bratcher\n
Drew Hintz\n
Drew Khoury\n
Dror BG\n
duralog\n
eborden\n
edsharp\n
ekhaled\n
Enam Mijbah Noor\n
Eric Allam\n
eustas\n
Fabien O\'Carroll\n
Fabio Zendhi Nagao\n
Fauntleroy\n
fbuchinger\n
feizhang365\n
Felipe Lalanne\n
Felix Raab\n
Filip Noetzel\n
flack\n
ForbesLindesay\n
Forbes Lindesay\n
Ford_Lawnmower\n
Frank Wiegand\n
Gabriel Nahmias\n
galambalazs\n
Gautam Mehta\n
Glenn Jorde\n
Glenn Ruehle\n
Golevka\n
Gordon Smith\n
Grant Skinner\n
greengiant\n
Guillaume Massé\n
Guillaume Massé\n
Hans Engel\n
Hardest\n
Hasan Karahan\n
hitsthings\n
Hocdoc\n
Ian Beck\n
Ian Dickinson\n
Ian Wehrman\n
Ian Wetherbee\n
Ice White\n
ICHIKAWA, Yuji\n
ilvalle\n
Ingo Richter\n
Irakli Gozalishvili\n
Ivan Kurnosov\n
Jacob Lee\n
Jakob Miland\n
Jakub Vrana\n
James Campos\n
James Thorne\n
Jamie Hill\n
Jan Jongboom\n
jankeromnes\n
Jan Keromnes\n
Jan Odvarko\n
Jan T. Sott\n
Jason\n
Jason Grout\n
Jason Johnston\n
Jason San Jose\n
Jason Siefken\n
Jean Boussier\n
jeffkenton\n
Jeff Pickhardt\n
jem (graphite)\n
Jochen Berger\n
Johan Ask\n
John Connor\n
John Lees-Miller\n
John Snelson\n
John Van Der Loo\n
Jonathan Malmaud\n
jongalloway\n
Jon Malmaud\n
Joost-Wim Boekesteijn\n
Joseph Pecoraro\n
Joshua Newman\n
jots\n
jsoojeon\n
Juan Benavides Romero\n
Jucovschi Constantin\n
Juho Vuori\n
jwallers@gmail.com\n
kaniga\n
Ken Newman\n
Ken Rockot\n
Kevin Sawicki\n
Klaus Silveira\n
Koh Zi Han, Cliff\n
komakino\n
Konstantin Lopuhin\n
koops\n
ks-ifware\n
kubelsmieci\n
Lanny\n
Laszlo Vidacs\n
leaf corcoran\n
Leonya Khachaturov\n
Liam Newman\n
LM\n
Lorenzo Stoakes\n
Luciano Longo\n
lynschinzer\n
Maksim Lin\n
Maksym Taran\n
Manuel Rego Casasnovas\n
Marat Dreizin\n
Marco Aurélio\n
Marco Munizaga\n
Marijn Haverbeke\n
Mario Pietsch\n
Mark Lentczner\n
Marko Bonaci\n
Martin Balek\n
Martín Gaitán\n
Martin Hasoň\n
Mason Malone\n
Mateusz Paprocki\n
mats cronqvist\n
Matthew Beale\n
Matthias BUSSONNIER\n
Matt McDonald\n
Matt Pass\n
Matt Sacks\n
Maximilian Hils\n
Maxim Kraev\n
Max Kirsch\n
mbarkhau\n
Metatheos\n
Micah Dubinko\n
Michael Lehenbauer\n
Michael Zhou\n
Mighty Guava\n
Miguel Castillo\n
Mike\n
Mike Brevoort\n
Mike Diaz\n
Mike Ivanov\n
Mike Kadin\n
MinRK\n
Miraculix87\n
misfo\n
mloginov\n
mps\n
mtaran-google\n
Narciso Jaramillo\n
Nathan Williams\n
ndr\n
nerbert\n
nextrevision\n
nguillaumin\n
Nicholas Bollweg\n
Niels van Groningen\n
Nikita Beloglazov\n
Nikita Vasilyev\n
Nikolay Kostov\n
nlwillia\n
pablo\n
Page\n
Patrick Strawderman\n
Paul Garvin\n
Paul Ivanov\n
Pavel Feldman\n
Pavel Strashkin\n
Paweł Bartkiewicz\n
peteguhl\n
peterkroon\n
Peter Kroon\n
prasanthj\n
Prasanth J\n
Rahul\n
Randy Edmunds\n
Rasmus Erik Voel Jensen\n
Richard Z.H. Wang\n
robertop23\n
Robert Plummer\n
Ruslan Osmanov\n
Ryan Prior\n
sabaca\n
Samuel Ainsworth\n
sandeepshetty\n
santec\n
Sascha Peilicke\n
satchmorun\n
sathyamoorthi\n
SCLINIC\\jdecker\n
Sebastian Zaha\n
shaund\n
shaun gilchrist\n
Shawn A\n
sheopory\n
Shiv Deepak\n
Shmuel Englard\n
soliton4\n
sonson\n
spastorelli\n
Stanislav Oaserele\n
Stas Kobzar\n
Stefan Borsje\n
Steffen Beyer\n
Steve O\'Hara\n
stoskov\n
Taha Jahangir\n
Tarmil\n
tfjgeorge\n
Thaddee Tyl\n
think\n
Thomas Dvornik\n
Thomas Schmid\n
Tim Baumann\n
Timothy Farrell\n
Timothy Hatcher\n
TobiasBg\n
Tomas-A\n
Tomas Varaneckas\n
Tom Erik Støwer\n
Tom MacWright\n
Tony Jian\n
Travis Heppe\n
Triangle717\n
Vestimir Markov\n
vf\n
Volker Mische\n
wenli\n
Wesley Wiser\n
William Jamieson\n
Wojtek Ptak\n
Xavier Mendez\n
YNH Webdev\n
Yunchi Luo\n
Yuvi Panda\n
Zachary Dremann\n
zziuni\n
魏鹏刚\n
</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>CONTRIBUTING.md</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string># How to contribute\n
\n
- [Getting help](#getting-help-)\n
- [Submitting bug reports](#submitting-bug-reports-)\n
- [Contributing code](#contributing-code-)\n
\n
## Getting help\n
\n
Community discussion, questions, and informal bug reporting is done on the\n
[CodeMirror Google group](http://groups.google.com/group/codemirror).\n
\n
## Submitting bug reports\n
\n
The preferred way to report bugs is to use the\n
[GitHub issue tracker](http://github.com/marijnh/CodeMirror/issues). Before\n
reporting a bug, read these pointers.\n
\n
**Note:** The issue tracker is for *bugs*, not requests for help. Questions\n
should be asked on the\n
[CodeMirror Google group](http://groups.google.com/group/codemirror) instead.\n
\n
### Reporting bugs effectively\n
\n
- CodeMirror is maintained by volunteers. They don\'t owe you anything, so be\n
polite. Reports with an indignant or belligerent tone tend to be moved to the\n
bottom of the pile.\n
\n
- Include information about **the browser in which the problem occurred**. Even\n
if you tested several browsers, and the problem occurred in all of them,\n
mention this fact in the bug report. Also include browser version numbers and\n
the operating system that you\'re on.\n
\n
- Mention which release of CodeMirror you\'re using. Preferably, try also with\n
the current development snapshot, to ensure the problem has not already been\n
fixed.\n
\n
- Mention very precisely what went wrong. "X is broken" is not a good bug\n
report. What did you expect to happen? What happened instead? Describe the\n
exact steps a maintainer has to take to make the problem occur. We can not\n
fix something that we can not observe.\n
\n
- If the problem can not be reproduced in any of the demos included in the\n
CodeMirror distribution, please provide an HTML document that demonstrates\n
the problem. The best way to do this is to go to\n
[jsbin.com](http://jsbin.com/ihunin/edit), enter it there, press save, and\n
include the resulting link in your bug report.\n
\n
## Contributing code\n
\n
- Make sure you have a [GitHub Account](https://github.com/signup/free)\n
- Fork [CodeMirror](https://github.com/marijnh/CodeMirror/)\n
([how to fork a repo](https://help.github.com/articles/fork-a-repo))\n
- Make your changes\n
- If your changes are easy to test or likely to regress, add tests.\n
Tests for the core go into `test/test.js`, some modes have their own\n
test suite under `mode/XXX/test.js`. Feel free to add new test\n
suites to modes that don\'t have one yet (be sure to link the new\n
tests into `test/index.html`).\n
- Follow the general code style of the rest of the project (see\n
below). Run `bin/lint` to verify that the linter is happy.\n
- Make sure all tests pass. Visit `test/index.html` in your browser to\n
run them.\n
- Submit a pull request\n
([how to create a pull request](https://help.github.com/articles/fork-a-repo))\n
\n
### Coding standards\n
\n
- 2 spaces per indentation level, no tabs.\n
- Include semicolons after statements.\n
- Note that the linter (`bin/lint`) which is run after each commit\n
complains about unused variables and functions. Prefix their names\n
with an underscore to muffle it.\n
</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>LICENSE</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
Copyright (C) 2013 by Marijn Haverbeke <marijnh@gmail.com> and others\n
\n
Permission is hereby granted, free of charge, to any person obtaining a copy\n
of this software and associated documentation files (the "Software"), to deal\n
in the Software without restriction, including without limitation the rights\n
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n
copies of the Software, and to permit persons to whom the Software is\n
furnished to do so, subject to the following conditions:\n
\n
The above copyright notice and this permission notice shall be included in\n
all copies or substantial portions of the Software.\n
\n
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n
THE SOFTWARE.\n
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>README.md</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string># CodeMirror\n
[![Build Status](https://secure.travis-ci.org/marijnh/CodeMirror.png?branch=master)](http://travis-ci.org/marijnh/CodeMirror)\n
[![NPM version](https://badge.fury.io/js/codemirror.png)](http://badge.fury.io/js/codemirror)\n
\n
CodeMirror is a JavaScript component that provides a code editor in\n
the browser. When a mode is available for the language you are coding\n
in, it will color your code, and optionally help with indentation.\n
\n
The project page is http://codemirror.net \n
The manual is at http://codemirror.net/doc/manual.html \n
The contributing guidelines are in [CONTRIBUTING.md](https://github.com/marijnh/CodeMirror/blob/master/CONTRIBUTING.md)\n
</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -14,7 +14,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>contrib</string> </value>
<value> <string>addon</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -14,7 +14,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>csharp</string> </value>
<value> <string>comment</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts93403075.99</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>comment.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
(function() {\n
"use strict";\n
\n
var noOptions = {};\n
var nonWS = /[^\\s\\u00a0]/;\n
var Pos = CodeMirror.Pos;\n
\n
function firstNonWS(str) {\n
var found = str.search(nonWS);\n
return found == -1 ? 0 : found;\n
}\n
\n
CodeMirror.commands.toggleComment = function(cm) {\n
var from = cm.getCursor("start"), to = cm.getCursor("end");\n
cm.uncomment(from, to) || cm.lineComment(from, to);\n
};\n
\n
CodeMirror.defineExtension("lineComment", function(from, to, options) {\n
if (!options) options = noOptions;\n
var self = this, mode = self.getModeAt(from);\n
var commentString = options.lineComment || mode.lineComment;\n
if (!commentString) {\n
if (options.blockCommentStart || mode.blockCommentStart) {\n
options.fullLines = true;\n
self.blockComment(from, to, options);\n
}\n
return;\n
}\n
var firstLine = self.getLine(from.line);\n
if (firstLine == null) return;\n
var end = Math.min(to.ch != 0 || to.line == from.line ? to.line + 1 : to.line, self.lastLine() + 1);\n
var pad = options.padding == null ? " " : options.padding;\n
var blankLines = options.commentBlankLines || from.line == to.line;\n
\n
self.operation(function() {\n
if (options.indent) {\n
var baseString = firstLine.slice(0, firstNonWS(firstLine));\n
for (var i = from.line; i < end; ++i) {\n
var line = self.getLine(i), cut = baseString.length;\n
if (!blankLines && !nonWS.test(line)) continue;\n
if (line.slice(0, cut) != baseString) cut = firstNonWS(line);\n
self.replaceRange(baseString + commentString + pad, Pos(i, 0), Pos(i, cut));\n
}\n
} else {\n
for (var i = from.line; i < end; ++i) {\n
if (blankLines || nonWS.test(self.getLine(i)))\n
self.replaceRange(commentString + pad, Pos(i, 0));\n
}\n
}\n
});\n
});\n
\n
CodeMirror.defineExtension("blockComment", function(from, to, options) {\n
if (!options) options = noOptions;\n
var self = this, mode = self.getModeAt(from);\n
var startString = options.blockCommentStart || mode.blockCommentStart;\n
var endString = options.blockCommentEnd || mode.blockCommentEnd;\n
if (!startString || !endString) {\n
if ((options.lineComment || mode.lineComment) && options.fullLines != false)\n
self.lineComment(from, to, options);\n
return;\n
}\n
\n
var end = Math.min(to.line, self.lastLine());\n
if (end != from.line && to.ch == 0 && nonWS.test(self.getLine(end))) --end;\n
\n
var pad = options.padding == null ? " " : options.padding;\n
if (from.line > end) return;\n
\n
self.operation(function() {\n
if (options.fullLines != false) {\n
var lastLineHasText = nonWS.test(self.getLine(end));\n
self.replaceRange(pad + endString, Pos(end));\n
self.replaceRange(startString + pad, Pos(from.line, 0));\n
var lead = options.blockCommentLead || mode.blockCommentLead;\n
if (lead != null) for (var i = from.line + 1; i <= end; ++i)\n
if (i != end || lastLineHasText)\n
self.replaceRange(lead + pad, Pos(i, 0));\n
} else {\n
self.replaceRange(endString, to);\n
self.replaceRange(startString, from);\n
}\n
});\n
});\n
\n
CodeMirror.defineExtension("uncomment", function(from, to, options) {\n
if (!options) options = noOptions;\n
var self = this, mode = self.getModeAt(from);\n
var end = Math.min(to.line, self.lastLine()), start = Math.min(from.line, end);\n
\n
// Try finding line comments\n
var lineString = options.lineComment || mode.lineComment, lines = [];\n
var pad = options.padding == null ? " " : options.padding, didSomething;\n
lineComment: {\n
if (!lineString) break lineComment;\n
for (var i = start; i <= end; ++i) {\n
var line = self.getLine(i);\n
var found = line.indexOf(lineString);\n
if (found > -1 && !/comment/.test(self.getTokenTypeAt(Pos(i, found + 1)))) found = -1;\n
if (found == -1 && (i != end || i == start) && nonWS.test(line)) break lineComment;\n
if (found > -1 && nonWS.test(line.slice(0, found))) break lineComment;\n
lines.push(line);\n
}\n
self.operation(function() {\n
for (var i = start; i <= end; ++i) {\n
var line = lines[i - start];\n
var pos = line.indexOf(lineString), endPos = pos + lineString.length;\n
if (pos < 0) continue;\n
if (line.slice(endPos, endPos + pad.length) == pad) endPos += pad.length;\n
didSomething = true;\n
self.replaceRange("", Pos(i, pos), Pos(i, endPos));\n
}\n
});\n
if (didSomething) return true;\n
}\n
\n
// Try block comments\n
var startString = options.blockCommentStart || mode.blockCommentStart;\n
var endString = options.blockCommentEnd || mode.blockCommentEnd;\n
if (!startString || !endString) return false;\n
var lead = options.blockCommentLead || mode.blockCommentLead;\n
var startLine = self.getLine(start), endLine = end == start ? startLine : self.getLine(end);\n
var open = startLine.indexOf(startString), close = endLine.lastIndexOf(endString);\n
if (close == -1 && start != end) {\n
endLine = self.getLine(--end);\n
close = endLine.lastIndexOf(endString);\n
}\n
if (open == -1 || close == -1 ||\n
!/comment/.test(self.getTokenTypeAt(Pos(start, open + 1))) ||\n
!/comment/.test(self.getTokenTypeAt(Pos(end, close + 1))))\n
return false;\n
\n
self.operation(function() {\n
self.replaceRange("", Pos(end, close - (pad && endLine.slice(close - pad.length, close) == pad ? pad.length : 0)),\n
Pos(end, close + endString.length));\n
var openEnd = open + startString.length;\n
if (pad && startLine.slice(openEnd, openEnd + pad.length) == pad) openEnd += pad.length;\n
self.replaceRange("", Pos(start, open), Pos(start, openEnd));\n
if (lead) for (var i = start + 1; i <= end; ++i) {\n
var line = self.getLine(i), found = line.indexOf(lead);\n
if (found == -1 || nonWS.test(line.slice(0, found))) continue;\n
var foundEnd = found + lead.length;\n