codemirror-rails 3.24 → 4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/lib/codemirror/rails/version.rb +2 -2
  3. data/vendor/assets/javascripts/codemirror.js +3001 -1798
  4. data/vendor/assets/javascripts/codemirror/addons/comment/comment.js +24 -4
  5. data/vendor/assets/javascripts/codemirror/addons/comment/continuecomment.js +47 -32
  6. data/vendor/assets/javascripts/codemirror/addons/dialog/dialog.js +9 -2
  7. data/vendor/assets/javascripts/codemirror/addons/display/fullscreen.js +9 -2
  8. data/vendor/assets/javascripts/codemirror/addons/display/placeholder.js +9 -2
  9. data/vendor/assets/javascripts/codemirror/addons/display/rulers.js +9 -2
  10. data/vendor/assets/javascripts/codemirror/addons/edit/closebrackets.js +76 -37
  11. data/vendor/assets/javascripts/codemirror/addons/edit/closetag.js +59 -37
  12. data/vendor/assets/javascripts/codemirror/addons/edit/continuelist.js +25 -17
  13. data/vendor/assets/javascripts/codemirror/addons/edit/matchbrackets.js +67 -46
  14. data/vendor/assets/javascripts/codemirror/addons/edit/matchtags.js +10 -3
  15. data/vendor/assets/javascripts/codemirror/addons/edit/trailingspace.js +23 -14
  16. data/vendor/assets/javascripts/codemirror/addons/fold/brace-fold.js +12 -3
  17. data/vendor/assets/javascripts/codemirror/addons/fold/comment-fold.js +12 -0
  18. data/vendor/assets/javascripts/codemirror/addons/fold/foldcode.js +28 -3
  19. data/vendor/assets/javascripts/codemirror/addons/fold/foldgutter.js +9 -2
  20. data/vendor/assets/javascripts/codemirror/addons/fold/indent-fold.js +12 -1
  21. data/vendor/assets/javascripts/codemirror/addons/fold/markdown-fold.js +12 -0
  22. data/vendor/assets/javascripts/codemirror/addons/fold/xml-fold.js +9 -4
  23. data/vendor/assets/javascripts/codemirror/addons/hint/anyword-hint.js +9 -2
  24. data/vendor/assets/javascripts/codemirror/addons/hint/css-hint.js +10 -3
  25. data/vendor/assets/javascripts/codemirror/addons/hint/html-hint.js +11 -3
  26. data/vendor/assets/javascripts/codemirror/addons/hint/javascript-hint.js +9 -4
  27. data/vendor/assets/javascripts/codemirror/addons/hint/python-hint.js +11 -3
  28. data/vendor/assets/javascripts/codemirror/addons/hint/show-hint.js +10 -4
  29. data/vendor/assets/javascripts/codemirror/addons/hint/sql-hint.js +9 -2
  30. data/vendor/assets/javascripts/codemirror/addons/hint/xml-hint.js +22 -34
  31. data/vendor/assets/javascripts/codemirror/addons/lint/coffeescript-lint.js +12 -1
  32. data/vendor/assets/javascripts/codemirror/addons/lint/css-lint.js +12 -1
  33. data/vendor/assets/javascripts/codemirror/addons/lint/javascript-lint.js +9 -4
  34. data/vendor/assets/javascripts/codemirror/addons/lint/json-lint.js +12 -1
  35. data/vendor/assets/javascripts/codemirror/addons/lint/lint.js +12 -8
  36. data/vendor/assets/javascripts/codemirror/addons/lint/yaml-lint.js +12 -1
  37. data/vendor/assets/javascripts/codemirror/addons/merge/merge.js +18 -16
  38. data/vendor/assets/javascripts/codemirror/addons/mode/loadmode.js +9 -2
  39. data/vendor/assets/javascripts/codemirror/addons/mode/multiplex.js +12 -0
  40. data/vendor/assets/javascripts/codemirror/addons/mode/overlay.js +15 -10
  41. data/vendor/assets/javascripts/codemirror/addons/runmode/colorize.js +11 -3
  42. data/vendor/assets/javascripts/codemirror/addons/runmode/runmode-standalone.js +0 -2
  43. data/vendor/assets/javascripts/codemirror/addons/runmode/runmode.js +12 -0
  44. data/vendor/assets/javascripts/codemirror/addons/runmode/runmode.node.js +4 -0
  45. data/vendor/assets/javascripts/codemirror/addons/scroll/scrollpastend.js +9 -2
  46. data/vendor/assets/javascripts/codemirror/addons/search/match-highlighter.js +12 -3
  47. data/vendor/assets/javascripts/codemirror/addons/search/search.js +24 -16
  48. data/vendor/assets/javascripts/codemirror/addons/search/searchcursor.js +21 -2
  49. data/vendor/assets/javascripts/codemirror/addons/selection/active-line.js +38 -17
  50. data/vendor/assets/javascripts/codemirror/addons/selection/mark-selection.js +16 -9
  51. data/vendor/assets/javascripts/codemirror/addons/tern/tern.js +33 -5
  52. data/vendor/assets/javascripts/codemirror/addons/wrap/hardwrap.js +27 -2
  53. data/vendor/assets/javascripts/codemirror/keymaps/emacs.js +12 -5
  54. data/vendor/assets/javascripts/codemirror/keymaps/sublime.js +505 -0
  55. data/vendor/assets/javascripts/codemirror/keymaps/vim.js +138 -179
  56. data/vendor/assets/javascripts/codemirror/modes/apl.js +12 -0
  57. data/vendor/assets/javascripts/codemirror/modes/asterisk.js +12 -0
  58. data/vendor/assets/javascripts/codemirror/modes/clike.js +15 -4
  59. data/vendor/assets/javascripts/codemirror/modes/clojure.js +13 -0
  60. data/vendor/assets/javascripts/codemirror/modes/cobol.js +12 -0
  61. data/vendor/assets/javascripts/codemirror/modes/coffeescript.js +12 -0
  62. data/vendor/assets/javascripts/codemirror/modes/commonlisp.js +12 -0
  63. data/vendor/assets/javascripts/codemirror/modes/css.js +18 -27
  64. data/vendor/assets/javascripts/codemirror/modes/d.js +12 -2
  65. data/vendor/assets/javascripts/codemirror/modes/diff.js +12 -0
  66. data/vendor/assets/javascripts/codemirror/modes/dtd.js +12 -0
  67. data/vendor/assets/javascripts/codemirror/modes/ecl.js +12 -0
  68. data/vendor/assets/javascripts/codemirror/modes/eiffel.js +12 -0
  69. data/vendor/assets/javascripts/codemirror/modes/erlang.js +13 -1
  70. data/vendor/assets/javascripts/codemirror/modes/fortran.js +12 -0
  71. data/vendor/assets/javascripts/codemirror/modes/gas.js +12 -0
  72. data/vendor/assets/javascripts/codemirror/modes/gfm.js +12 -0
  73. data/vendor/assets/javascripts/codemirror/modes/gherkin.js +12 -0
  74. data/vendor/assets/javascripts/codemirror/modes/go.js +12 -1
  75. data/vendor/assets/javascripts/codemirror/modes/groovy.js +12 -0
  76. data/vendor/assets/javascripts/codemirror/modes/haml.js +12 -0
  77. data/vendor/assets/javascripts/codemirror/modes/haskell.js +12 -0
  78. data/vendor/assets/javascripts/codemirror/modes/haxe.js +18 -9
  79. data/vendor/assets/javascripts/codemirror/modes/htmlembedded.js +12 -0
  80. data/vendor/assets/javascripts/codemirror/modes/htmlmixed.js +12 -0
  81. data/vendor/assets/javascripts/codemirror/modes/http.js +12 -0
  82. data/vendor/assets/javascripts/codemirror/modes/jade.js +12 -0
  83. data/vendor/assets/javascripts/codemirror/modes/javascript.js +23 -16
  84. data/vendor/assets/javascripts/codemirror/modes/jinja2.js +53 -118
  85. data/vendor/assets/javascripts/codemirror/modes/julia.js +12 -0
  86. data/vendor/assets/javascripts/codemirror/modes/livescript.js +17 -4
  87. data/vendor/assets/javascripts/codemirror/modes/lua.js +12 -0
  88. data/vendor/assets/javascripts/codemirror/modes/markdown.js +12 -0
  89. data/vendor/assets/javascripts/codemirror/modes/mirc.js +13 -0
  90. data/vendor/assets/javascripts/codemirror/modes/mllike.js +12 -1
  91. data/vendor/assets/javascripts/codemirror/modes/nginx.js +12 -0
  92. data/vendor/assets/javascripts/codemirror/modes/ntriples.js +13 -0
  93. data/vendor/assets/javascripts/codemirror/modes/octave.js +12 -0
  94. data/vendor/assets/javascripts/codemirror/modes/pascal.js +12 -0
  95. data/vendor/assets/javascripts/codemirror/modes/pegjs.js +12 -0
  96. data/vendor/assets/javascripts/codemirror/modes/perl.js +84 -73
  97. data/vendor/assets/javascripts/codemirror/modes/php.js +20 -101
  98. data/vendor/assets/javascripts/codemirror/modes/pig.js +12 -0
  99. data/vendor/assets/javascripts/codemirror/modes/properties.js +12 -0
  100. data/vendor/assets/javascripts/codemirror/modes/puppet.js +13 -0
  101. data/vendor/assets/javascripts/codemirror/modes/python.js +21 -11
  102. data/vendor/assets/javascripts/codemirror/modes/q.js +12 -0
  103. data/vendor/assets/javascripts/codemirror/modes/r.js +13 -3
  104. data/vendor/assets/javascripts/codemirror/modes/{rpm-spec.js → rpm.js} +34 -2
  105. data/vendor/assets/javascripts/codemirror/modes/rst.js +12 -0
  106. data/vendor/assets/javascripts/codemirror/modes/ruby.js +11 -0
  107. data/vendor/assets/javascripts/codemirror/modes/rust.js +12 -0
  108. data/vendor/assets/javascripts/codemirror/modes/sass.js +12 -0
  109. data/vendor/assets/javascripts/codemirror/modes/scheme.js +13 -0
  110. data/vendor/assets/javascripts/codemirror/modes/shell.js +12 -0
  111. data/vendor/assets/javascripts/codemirror/modes/sieve.js +11 -4
  112. data/vendor/assets/javascripts/codemirror/modes/smalltalk.js +12 -0
  113. data/vendor/assets/javascripts/codemirror/modes/smarty.js +13 -0
  114. data/vendor/assets/javascripts/codemirror/modes/smartymixed.js +14 -2
  115. data/vendor/assets/javascripts/codemirror/modes/solr.js +12 -0
  116. data/vendor/assets/javascripts/codemirror/modes/sparql.js +12 -0
  117. data/vendor/assets/javascripts/codemirror/modes/sql.js +12 -0
  118. data/vendor/assets/javascripts/codemirror/modes/stex.js +12 -0
  119. data/vendor/assets/javascripts/codemirror/modes/tcl.js +13 -0
  120. data/vendor/assets/javascripts/codemirror/modes/tiddlywiki.js +13 -0
  121. data/vendor/assets/javascripts/codemirror/modes/tiki.js +12 -0
  122. data/vendor/assets/javascripts/codemirror/modes/toml.js +12 -0
  123. data/vendor/assets/javascripts/codemirror/modes/turtle.js +12 -0
  124. data/vendor/assets/javascripts/codemirror/modes/vb.js +12 -0
  125. data/vendor/assets/javascripts/codemirror/modes/vbscript.js +13 -0
  126. data/vendor/assets/javascripts/codemirror/modes/velocity.js +12 -0
  127. data/vendor/assets/javascripts/codemirror/modes/verilog.js +89 -236
  128. data/vendor/assets/javascripts/codemirror/modes/xml.js +41 -60
  129. data/vendor/assets/javascripts/codemirror/modes/xquery.js +12 -0
  130. data/vendor/assets/javascripts/codemirror/modes/yaml.js +12 -0
  131. data/vendor/assets/javascripts/codemirror/modes/z80.js +12 -0
  132. data/vendor/assets/stylesheets/codemirror.css +15 -10
  133. data/vendor/assets/stylesheets/codemirror/themes/ambiance.css +1 -0
  134. data/vendor/assets/stylesheets/codemirror/themes/lesser-dark.css +4 -0
  135. data/vendor/assets/stylesheets/codemirror/themes/mdn-like.css +1 -1
  136. data/vendor/assets/stylesheets/codemirror/themes/pastel-on-dark.css +1 -0
  137. data/vendor/assets/stylesheets/codemirror/themes/rubyblue.css +2 -0
  138. data/vendor/assets/stylesheets/codemirror/themes/solarized.css +17 -3
  139. metadata +20 -25
  140. data/vendor/assets/javascripts/codemirror/keymaps/extra.js +0 -43
  141. data/vendor/assets/javascripts/codemirror/modes/django.js +0 -55
  142. data/vendor/assets/javascripts/codemirror/modes/dylan.js +0 -284
  143. data/vendor/assets/javascripts/codemirror/modes/less.js +0 -347
  144. data/vendor/assets/javascripts/codemirror/modes/rpm-changes.js +0 -19
  145. data/vendor/assets/stylesheets/codemirror/modes/rpm-spec.css +0 -5
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("apl", function() {
2
12
  var builtInOps = {
3
13
  ".": "innerProduct",
@@ -158,3 +168,5 @@ CodeMirror.defineMode("apl", function() {
158
168
  });
159
169
 
160
170
  CodeMirror.defineMIME("text/apl", "apl");
171
+
172
+ });
@@ -14,6 +14,16 @@
14
14
  * =====================================================================================
15
15
  */
16
16
 
17
+ (function(mod) {
18
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
19
+ mod(require("../../lib/codemirror"));
20
+ else if (typeof define == "function" && define.amd) // AMD
21
+ define(["../../lib/codemirror"], mod);
22
+ else // Plain browser env
23
+ mod(CodeMirror);
24
+ })(function(CodeMirror) {
25
+ "use strict";
26
+
17
27
  CodeMirror.defineMode("asterisk", function() {
18
28
  var atoms = ["exten", "same", "include","ignorepat","switch"],
19
29
  dpcmd = ["#include","#exec"],
@@ -181,3 +191,5 @@ CodeMirror.defineMode("asterisk", function() {
181
191
  });
182
192
 
183
193
  CodeMirror.defineMIME("text/x-asterisk", "asterisk");
194
+
195
+ });
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("clike", function(config, parserConfig) {
2
12
  var indentUnit = config.indentUnit,
3
13
  statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
@@ -241,7 +251,6 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
241
251
  }
242
252
 
243
253
  function def(mimes, mode) {
244
- if (typeof mimes == "string") mimes = [mimes];
245
254
  var words = [];
246
255
  function add(obj) {
247
256
  if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop))
@@ -286,7 +295,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
286
295
  },
287
296
  modeProps: {fold: ["brace", "include"]}
288
297
  });
289
- def("text/x-java", {
298
+ CodeMirror.defineMIME("text/x-java", {
290
299
  name: "clike",
291
300
  keywords: words("abstract assert boolean break byte case catch char class const continue default " +
292
301
  "do double else enum extends final finally float for goto if implements import " +
@@ -303,7 +312,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
303
312
  },
304
313
  modeProps: {fold: ["brace", "import"]}
305
314
  });
306
- def("text/x-csharp", {
315
+ CodeMirror.defineMIME("text/x-csharp", {
307
316
  name: "clike",
308
317
  keywords: words("abstract as base break case catch checked class const continue" +
309
318
  " default delegate do else enum event explicit extern finally fixed for" +
@@ -329,7 +338,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
329
338
  }
330
339
  }
331
340
  });
332
- def("text/x-scala", {
341
+ CodeMirror.defineMIME("text/x-scala", {
333
342
  name: "clike",
334
343
  keywords: words(
335
344
 
@@ -424,3 +433,5 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
424
433
  modeProps: {fold: ["brace", "include"]}
425
434
  });
426
435
  }());
436
+
437
+ });
@@ -2,6 +2,17 @@
2
2
  * Author: Hans Engel
3
3
  * Branched from CodeMirror's Scheme mode (by Koh Zi Han, based on implementation by Koh Zi Chun)
4
4
  */
5
+
6
+ (function(mod) {
7
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
8
+ mod(require("../../lib/codemirror"));
9
+ else if (typeof define == "function" && define.amd) // AMD
10
+ define(["../../lib/codemirror"], mod);
11
+ else // Plain browser env
12
+ mod(CodeMirror);
13
+ })(function(CodeMirror) {
14
+ "use strict";
15
+
5
16
  CodeMirror.defineMode("clojure", function (options) {
6
17
  var BUILTIN = "builtin", COMMENT = "comment", STRING = "string", CHARACTER = "string-2",
7
18
  ATOM = "atom", NUMBER = "number", BRACKET = "bracket", KEYWORD = "keyword";
@@ -223,3 +234,5 @@ CodeMirror.defineMode("clojure", function (options) {
223
234
  });
224
235
 
225
236
  CodeMirror.defineMIME("text/x-clojure", "clojure");
237
+
238
+ });
@@ -2,6 +2,16 @@
2
2
  * Author: Gautam Mehta
3
3
  * Branched from CodeMirror's Scheme mode
4
4
  */
5
+ (function(mod) {
6
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
7
+ mod(require("../../lib/codemirror"));
8
+ else if (typeof define == "function" && define.amd) // AMD
9
+ define(["../../lib/codemirror"], mod);
10
+ else // Plain browser env
11
+ mod(CodeMirror);
12
+ })(function(CodeMirror) {
13
+ "use strict";
14
+
5
15
  CodeMirror.defineMode("cobol", function () {
6
16
  var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
7
17
  ATOM = "atom", NUMBER = "number", KEYWORD = "keyword", MODTAG = "header",
@@ -238,3 +248,5 @@ CodeMirror.defineMode("cobol", function () {
238
248
  });
239
249
 
240
250
  CodeMirror.defineMIME("text/x-cobol", "cobol");
251
+
252
+ });
@@ -2,6 +2,16 @@
2
2
  * Link to the project's GitHub page:
3
3
  * https://github.com/pickhardt/coffeescript-codemirror-mode
4
4
  */
5
+ (function(mod) {
6
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
7
+ mod(require("../../lib/codemirror"));
8
+ else if (typeof define == "function" && define.amd) // AMD
9
+ define(["../../lib/codemirror"], mod);
10
+ else // Plain browser env
11
+ mod(CodeMirror);
12
+ })(function(CodeMirror) {
13
+ "use strict";
14
+
5
15
  CodeMirror.defineMode("coffeescript", function(conf) {
6
16
  var ERRORCLASS = "error";
7
17
 
@@ -351,3 +361,5 @@ CodeMirror.defineMode("coffeescript", function(conf) {
351
361
  });
352
362
 
353
363
  CodeMirror.defineMIME("text/x-coffeescript", "coffeescript");
364
+
365
+ });
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("commonlisp", function (config) {
2
12
  var assumeBody = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;
3
13
  var numLiteral = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/;
@@ -103,3 +113,5 @@ CodeMirror.defineMode("commonlisp", function (config) {
103
113
  });
104
114
 
105
115
  CodeMirror.defineMIME("text/x-common-lisp", "commonlisp");
116
+
117
+ });
@@ -1,6 +1,14 @@
1
- CodeMirror.defineMode("css", function(config, parserConfig) {
2
- "use strict";
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
3
10
 
11
+ CodeMirror.defineMode("css", function(config, parserConfig) {
4
12
  if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
5
13
 
6
14
  var indentUnit = config.indentUnit,
@@ -8,7 +16,6 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
8
16
  mediaTypes = parserConfig.mediaTypes || {},
9
17
  mediaFeatures = parserConfig.mediaFeatures || {},
10
18
  propertyKeywords = parserConfig.propertyKeywords || {},
11
- nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
12
19
  colorKeywords = parserConfig.colorKeywords || {},
13
20
  valueKeywords = parserConfig.valueKeywords || {},
14
21
  fontProperties = parserConfig.fontProperties || {},
@@ -84,7 +91,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
84
91
 
85
92
  function tokenParenthesized(stream, state) {
86
93
  stream.next(); // Must be '('
87
- if (!stream.match(/\s*[\"\')]/, false))
94
+ if (!stream.match(/\s*[\"\']/, false))
88
95
  state.tokenize = tokenString(")");
89
96
  else
90
97
  state.tokenize = null;
@@ -163,13 +170,9 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
163
170
 
164
171
  states.block = function(type, stream, state) {
165
172
  if (type == "word") {
166
- var word = stream.current().toLowerCase();
167
- if (propertyKeywords.hasOwnProperty(word)) {
173
+ if (propertyKeywords.hasOwnProperty(stream.current().toLowerCase())) {
168
174
  override = "property";
169
175
  return "maybeprop";
170
- } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
171
- override = "string-2";
172
- return "maybeprop";
173
176
  } else if (allowNested) {
174
177
  override = stream.match(/^\s*:/, false) ? "property" : "tag";
175
178
  return "block";
@@ -339,7 +342,6 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
339
342
  };
340
343
  });
341
344
 
342
- (function() {
343
345
  function keySet(array) {
344
346
  var keys = {};
345
347
  for (var i = 0; i < array.length; ++i) {
@@ -442,27 +444,19 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
442
444
  "vertical-align", "visibility", "voice-balance", "voice-duration",
443
445
  "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
444
446
  "voice-volume", "volume", "white-space", "widows", "width", "word-break",
445
- "word-spacing", "word-wrap", "z-index",
447
+ "word-spacing", "word-wrap", "z-index", "zoom",
446
448
  // SVG-specific
447
449
  "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
448
450
  "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
449
- "color-interpolation", "color-interpolation-filters",
451
+ "color-interpolation", "color-interpolation-filters", "color-profile",
450
452
  "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
451
453
  "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke",
452
454
  "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
453
455
  "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
454
456
  "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
455
- "glyph-orientation-vertical", "text-anchor", "writing-mode"
457
+ "glyph-orientation-vertical", "kerning", "text-anchor", "writing-mode"
456
458
  ], propertyKeywords = keySet(propertyKeywords_);
457
459
 
458
- var nonStandardPropertyKeywords = [
459
- "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
460
- "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
461
- "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside",
462
- "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button",
463
- "searchfield-results-decoration", "zoom"
464
- ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords);
465
-
466
460
  var colorKeywords_ = [
467
461
  "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
468
462
  "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
@@ -582,8 +576,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
582
576
  "font-stretch", "font-weight", "font-style"
583
577
  ], fontProperties = keySet(fontProperties_);
584
578
 
585
- var allWords = mediaTypes_.concat(mediaFeatures_).concat(propertyKeywords_)
586
- .concat(nonStandardPropertyKeywords).concat(colorKeywords_).concat(valueKeywords_);
579
+ var allWords = mediaTypes_.concat(mediaFeatures_).concat(propertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);
587
580
  CodeMirror.registerHelper("hintWords", "css", allWords);
588
581
 
589
582
  function tokenCComment(stream, state) {
@@ -612,7 +605,6 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
612
605
  mediaTypes: mediaTypes,
613
606
  mediaFeatures: mediaFeatures,
614
607
  propertyKeywords: propertyKeywords,
615
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
616
608
  colorKeywords: colorKeywords,
617
609
  valueKeywords: valueKeywords,
618
610
  fontProperties: fontProperties,
@@ -635,7 +627,6 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
635
627
  mediaTypes: mediaTypes,
636
628
  mediaFeatures: mediaFeatures,
637
629
  propertyKeywords: propertyKeywords,
638
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
639
630
  colorKeywords: colorKeywords,
640
631
  valueKeywords: valueKeywords,
641
632
  fontProperties: fontProperties,
@@ -676,7 +667,6 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
676
667
  mediaTypes: mediaTypes,
677
668
  mediaFeatures: mediaFeatures,
678
669
  propertyKeywords: propertyKeywords,
679
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
680
670
  colorKeywords: colorKeywords,
681
671
  valueKeywords: valueKeywords,
682
672
  fontProperties: fontProperties,
@@ -707,4 +697,5 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
707
697
  name: "css",
708
698
  helperType: "less"
709
699
  });
710
- })();
700
+
701
+ });
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("d", function(config, parserConfig) {
2
12
  var indentUnit = config.indentUnit,
3
13
  statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
@@ -173,7 +183,6 @@ CodeMirror.defineMode("d", function(config, parserConfig) {
173
183
  };
174
184
  });
175
185
 
176
- (function() {
177
186
  function words(str) {
178
187
  var obj = {}, words = str.split(" ");
179
188
  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
@@ -202,4 +211,5 @@ CodeMirror.defineMode("d", function(config, parserConfig) {
202
211
  }
203
212
  }
204
213
  });
205
- }());
214
+
215
+ });
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("diff", function() {
2
12
 
3
13
  var TOKEN_NAMES = {
@@ -30,3 +40,5 @@ CodeMirror.defineMode("diff", function() {
30
40
  });
31
41
 
32
42
  CodeMirror.defineMIME("text/x-diff", "diff");
43
+
44
+ });
@@ -5,6 +5,16 @@
5
5
  GitHub: @peterkroon
6
6
  */
7
7
 
8
+ (function(mod) {
9
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
10
+ mod(require("../../lib/codemirror"));
11
+ else if (typeof define == "function" && define.amd) // AMD
12
+ define(["../../lib/codemirror"], mod);
13
+ else // Plain browser env
14
+ mod(CodeMirror);
15
+ })(function(CodeMirror) {
16
+ "use strict";
17
+
8
18
  CodeMirror.defineMode("dtd", function(config) {
9
19
  var indentUnit = config.indentUnit, type;
10
20
  function ret(style, tp) {type = tp; return style;}
@@ -125,3 +135,5 @@ CodeMirror.defineMode("dtd", function(config) {
125
135
  });
126
136
 
127
137
  CodeMirror.defineMIME("application/xml-dtd", "dtd");
138
+
139
+ });
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("ecl", function(config) {
2
12
 
3
13
  function words(str) {
@@ -190,3 +200,5 @@ CodeMirror.defineMode("ecl", function(config) {
190
200
  });
191
201
 
192
202
  CodeMirror.defineMIME("text/x-ecl", "ecl");
203
+
204
+ });
@@ -1,3 +1,13 @@
1
+ (function(mod) {
2
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
3
+ mod(require("../../lib/codemirror"));
4
+ else if (typeof define == "function" && define.amd) // AMD
5
+ define(["../../lib/codemirror"], mod);
6
+ else // Plain browser env
7
+ mod(CodeMirror);
8
+ })(function(CodeMirror) {
9
+ "use strict";
10
+
1
11
  CodeMirror.defineMode("eiffel", function() {
2
12
  function wordObj(words) {
3
13
  var o = {};
@@ -145,3 +155,5 @@ CodeMirror.defineMode("eiffel", function() {
145
155
  });
146
156
 
147
157
  CodeMirror.defineMIME("text/x-eiffel", "eiffel");
158
+
159
+ });
@@ -12,6 +12,16 @@
12
12
  // old guard/bif/conversion clashes (e.g. "float/1")
13
13
  // type/spec/opaque
14
14
 
15
+ (function(mod) {
16
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
17
+ mod(require("../../lib/codemirror"));
18
+ else if (typeof define == "function" && define.amd) // AMD
19
+ define(["../../lib/codemirror"], mod);
20
+ else // Plain browser env
21
+ mod(CodeMirror);
22
+ })(function(CodeMirror) {
23
+ "use strict";
24
+
15
25
  CodeMirror.defineMIME("text/x-erlang", "erlang");
16
26
 
17
27
  CodeMirror.defineMode("erlang", function(cmCfg) {
@@ -348,7 +358,7 @@ CodeMirror.defineMode("erlang", function(cmCfg) {
348
358
  switch (type) {
349
359
  case "atom": return "atom";
350
360
  case "attribute": return "attribute";
351
- case "boolean": return "atom";
361
+ case "boolean": return "special";
352
362
  case "builtin": return "builtin";
353
363
  case "close_paren": return null;
354
364
  case "colon": return null;
@@ -605,3 +615,5 @@ CodeMirror.defineMode("erlang", function(cmCfg) {
605
615
  lineComment: "%"
606
616
  };
607
617
  });
618
+
619
+ });