swagr 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/Rakefile +20 -0
  2. data/bin/swagr +37 -9
  3. data/examples/examples01/app.rb +5 -1
  4. data/examples/examples01/views/edit.slim +31 -0
  5. data/examples/examples01/views/footer.slim +1 -1
  6. data/examples/examples01/views/layout.slim +23 -5
  7. data/examples/examples01/views/navbar.slim +17 -16
  8. data/lib/swagr/version.rb +3 -1
  9. data/templates/app.rb +5 -1
  10. data/templates/static/js/codemirror/keymap/vim.js +279 -66
  11. data/templates/static/js/codemirror/lib/codemirror.css +10 -9
  12. data/templates/static/js/codemirror/lib/codemirror.js +385 -152
  13. data/templates/static/js/codemirror/mode/apl/apl.js +160 -0
  14. data/templates/static/js/codemirror/mode/apl/index.html +61 -0
  15. data/templates/static/js/codemirror/mode/asterisk/asterisk.js +183 -0
  16. data/templates/static/js/codemirror/mode/asterisk/index.html +142 -0
  17. data/templates/static/js/codemirror/mode/clike/clike.js +2 -0
  18. data/templates/static/js/codemirror/mode/clike/index.html +1 -1
  19. data/templates/static/js/codemirror/mode/clike/scala.html +1 -1
  20. data/templates/static/js/codemirror/mode/clojure/clojure.js +3 -3
  21. data/templates/static/js/codemirror/mode/css/css.js +2 -2
  22. data/templates/static/js/codemirror/mode/css/test.js +76 -471
  23. data/templates/static/js/codemirror/mode/d/d.js +205 -0
  24. data/templates/static/js/codemirror/mode/d/index.html +262 -0
  25. data/templates/static/js/codemirror/mode/erlang/index.html +1 -1
  26. data/templates/static/js/codemirror/mode/gfm/gfm.js +2 -1
  27. data/templates/static/js/codemirror/mode/gfm/index.html +1 -2
  28. data/templates/static/js/codemirror/mode/gfm/test.js +84 -225
  29. data/templates/static/js/codemirror/mode/go/index.html +1 -1
  30. data/templates/static/js/codemirror/mode/groovy/index.html +1 -1
  31. data/templates/static/js/codemirror/mode/haskell/index.html +1 -1
  32. data/templates/static/js/codemirror/mode/javascript/index.html +2 -2
  33. data/templates/static/js/codemirror/mode/javascript/javascript.js +13 -2
  34. data/templates/static/js/codemirror/mode/less/index.html +1 -1
  35. data/templates/static/js/codemirror/mode/lua/index.html +1 -1
  36. data/templates/static/js/codemirror/mode/markdown/index.html +1 -1
  37. data/templates/static/js/codemirror/mode/markdown/markdown.js +8 -7
  38. data/templates/static/js/codemirror/mode/markdown/test.js +579 -1266
  39. data/templates/static/js/codemirror/mode/meta.js +71 -0
  40. data/templates/static/js/codemirror/mode/mysql/index.html +2 -0
  41. data/templates/static/js/codemirror/mode/ocaml/index.html +1 -1
  42. data/templates/static/js/codemirror/mode/php/index.html +1 -1
  43. data/templates/static/js/codemirror/mode/plsql/index.html +2 -0
  44. data/templates/static/js/codemirror/mode/python/index.html +1 -1
  45. data/templates/static/js/codemirror/mode/ruby/index.html +1 -1
  46. data/templates/static/js/codemirror/mode/sass/index.html +54 -0
  47. data/templates/static/js/codemirror/mode/sass/sass.js +349 -0
  48. data/templates/static/js/codemirror/mode/shell/index.html +1 -1
  49. data/templates/static/js/codemirror/mode/sieve/LICENSE +0 -4
  50. data/templates/static/js/codemirror/mode/sieve/sieve.js +37 -10
  51. data/templates/static/js/codemirror/mode/smalltalk/index.html +1 -1
  52. data/templates/static/js/codemirror/mode/sparql/index.html +1 -1
  53. data/templates/static/js/codemirror/mode/sql/index.html +68 -0
  54. data/templates/static/js/codemirror/mode/sql/sql.js +268 -0
  55. data/templates/static/js/codemirror/mode/stex/test.js +104 -343
  56. data/templates/static/js/codemirror/mode/tiddlywiki/index.html +1 -1
  57. data/templates/static/js/codemirror/mode/vb/index.html +1 -1
  58. data/templates/static/js/codemirror/mode/xquery/test.js +54 -67
  59. data/templates/static/js/codemirror/mode/xquery/xquery.js +8 -8
  60. data/templates/static/js/crossfilter.min.js +1 -0
  61. data/templates/views/edit.slim +31 -0
  62. data/templates/views/footer.slim +1 -1
  63. data/templates/views/layout.slim +23 -5
  64. data/templates/views/navbar.slim +17 -16
  65. metadata +16 -30
  66. data/examples/examples01/static/css/codemirror.css +0 -1247
  67. data/examples/examples01/static/js/codemirror-compressed-3-0.js +0 -5
  68. data/examples/examples01/views/about.slim +0 -15
  69. data/examples/examples01/views/application.slim +0 -0
  70. data/examples/examples01/views/layout_cm.slim +0 -17
  71. data/templates/static/js/codemirror/lib/util/closetag.js +0 -85
  72. data/templates/static/js/codemirror/lib/util/colorize.js +0 -29
  73. data/templates/static/js/codemirror/lib/util/continuecomment.js +0 -36
  74. data/templates/static/js/codemirror/lib/util/continuelist.js +0 -28
  75. data/templates/static/js/codemirror/lib/util/dialog.css +0 -32
  76. data/templates/static/js/codemirror/lib/util/dialog.js +0 -75
  77. data/templates/static/js/codemirror/lib/util/foldcode.js +0 -182
  78. data/templates/static/js/codemirror/lib/util/formatting.js +0 -108
  79. data/templates/static/js/codemirror/lib/util/javascript-hint.js +0 -137
  80. data/templates/static/js/codemirror/lib/util/loadmode.js +0 -51
  81. data/templates/static/js/codemirror/lib/util/match-highlighter.js +0 -46
  82. data/templates/static/js/codemirror/lib/util/matchbrackets.js +0 -63
  83. data/templates/static/js/codemirror/lib/util/multiplex.js +0 -95
  84. data/templates/static/js/codemirror/lib/util/overlay.js +0 -59
  85. data/templates/static/js/codemirror/lib/util/pig-hint.js +0 -117
  86. data/templates/static/js/codemirror/lib/util/runmode-standalone.js +0 -90
  87. data/templates/static/js/codemirror/lib/util/runmode.js +0 -52
  88. data/templates/static/js/codemirror/lib/util/search.js +0 -119
  89. data/templates/static/js/codemirror/lib/util/searchcursor.js +0 -119
  90. data/templates/static/js/codemirror/lib/util/simple-hint.css +0 -16
  91. data/templates/static/js/codemirror/lib/util/simple-hint.js +0 -102
  92. data/templates/static/js/codemirror/lib/util/xml-hint.js +0 -131
  93. data/templates/views/about.slim +0 -15
@@ -5,7 +5,7 @@
5
5
  <title>CodeMirror: Erlang mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <script src="../../lib/codemirror.js"></script>
8
- <script src="../../lib/util/matchbrackets.js"></script>
8
+ <script src="../../addon/edit/matchbrackets.js"></script>
9
9
  <script src="erlang.js"></script>
10
10
  <link rel="stylesheet" href="../../theme/erlang-dark.css">
11
11
  <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
@@ -75,9 +75,10 @@ CodeMirror.defineMode("gfm", function(config) {
75
75
  return "link";
76
76
  }
77
77
  }
78
- if (stream.match(/^((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i)) {
78
+ if (stream.match(/^((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i)) {
79
79
  // URLs
80
80
  // Taken from http://daringfireball.net/2010/07/improved_regex_for_matching_urls
81
+ // And then (issue #1160) simplified to make it not crash the Chrome Regexp engine
81
82
  return "link";
82
83
  }
83
84
  stream.next();
@@ -5,7 +5,7 @@
5
5
  <title>CodeMirror: GFM mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <script src="../../lib/codemirror.js"></script>
8
- <script src="../../lib/util/overlay.js"></script>
8
+ <script src="../../addon/mode/overlay.js"></script>
9
9
  <script src="../xml/xml.js"></script>
10
10
  <script src="../markdown/markdown.js"></script>
11
11
  <script src="gfm.js"></script>
@@ -16,7 +16,6 @@
16
16
  <script src="../htmlmixed/htmlmixed.js"></script>
17
17
  <script src="../clike/clike.js"></script>
18
18
 
19
- <link rel="stylesheet" href="../markdown/markdown.css">
20
19
  <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
21
20
  <link rel="stylesheet" href="../../doc/docs.css">
22
21
  </head>
@@ -1,225 +1,84 @@
1
- // Initiate ModeTest and set defaults
2
- var MT = ModeTest;
3
- MT.modeName = 'gfm';
4
- MT.modeOptions = {};
5
-
6
- // Emphasis characters within a word
7
- MT.testMode(
8
- 'emInWordAsterisk',
9
- 'foo*bar*hello',
10
- [
11
- null, 'foo',
12
- 'em', '*bar*',
13
- null, 'hello'
14
- ]
15
- );
16
- MT.testMode(
17
- 'emInWordUnderscore',
18
- 'foo_bar_hello',
19
- [
20
- null, 'foo_bar_hello'
21
- ]
22
- );
23
- MT.testMode(
24
- 'emStrongUnderscore',
25
- '___foo___ bar',
26
- [
27
- 'strong', '__',
28
- 'emstrong', '_foo__',
29
- 'em', '_',
30
- null, ' bar'
31
- ]
32
- );
33
-
34
- // Fenced code blocks
35
- MT.testMode(
36
- 'fencedCodeBlocks',
37
- '```\nfoo\n\n```\nbar',
38
- [
39
- 'comment', '```',
40
- 'comment', 'foo',
41
- 'comment', '```',
42
- null, 'bar'
43
- ]
44
- );
45
- // Fenced code block mode switching
46
- MT.testMode(
47
- 'fencedCodeBlockModeSwitching',
48
- '```javascript\nfoo\n\n```\nbar',
49
- [
50
- 'comment', '```javascript',
51
- 'variable', 'foo',
52
- 'comment', '```',
53
- null, 'bar'
54
- ]
55
- );
56
-
57
- // SHA
58
- MT.testMode(
59
- 'SHA',
60
- 'foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 bar',
61
- [
62
- null, 'foo ',
63
- 'link', 'be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2',
64
- null, ' bar'
65
- ]
66
- );
67
- // GitHub highlights hashes 7-40 chars in length
68
- MT.testMode(
69
- 'shortSHA',
70
- 'foo be6a8cc bar',
71
- [
72
- null, 'foo ',
73
- 'link', 'be6a8cc',
74
- null, ' bar'
75
- ]
76
- );
77
- // Invalid SHAs
78
- //
79
- // GitHub does not highlight hashes shorter than 7 chars
80
- MT.testMode(
81
- 'tooShortSHA',
82
- 'foo be6a8c bar',
83
- [
84
- null, 'foo be6a8c bar'
85
- ]
86
- );
87
- // GitHub does not highlight hashes longer than 40 chars
88
- MT.testMode(
89
- 'longSHA',
90
- 'foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar',
91
- [
92
- null, 'foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar'
93
- ]
94
- );
95
- MT.testMode(
96
- 'badSHA',
97
- 'foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar',
98
- [
99
- null, 'foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar'
100
- ]
101
- );
102
- // User@SHA
103
- MT.testMode(
104
- 'userSHA',
105
- 'foo bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 hello',
106
- [
107
- null, 'foo ',
108
- 'link', 'bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2',
109
- null, ' hello'
110
- ]
111
- );
112
- // User/Project@SHA
113
- MT.testMode(
114
- 'userProjectSHA',
115
- 'foo bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 world',
116
- [
117
- null, 'foo ',
118
- 'link', 'bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2',
119
- null, ' world'
120
- ]
121
- );
122
-
123
- // #Num
124
- MT.testMode(
125
- 'num',
126
- 'foo #1 bar',
127
- [
128
- null, 'foo ',
129
- 'link', '#1',
130
- null, ' bar'
131
- ]
132
- );
133
- // bad #Num
134
- MT.testMode(
135
- 'badNum',
136
- 'foo #1bar hello',
137
- [
138
- null, 'foo #1bar hello'
139
- ]
140
- );
141
- // User#Num
142
- MT.testMode(
143
- 'userNum',
144
- 'foo bar#1 hello',
145
- [
146
- null, 'foo ',
147
- 'link', 'bar#1',
148
- null, ' hello'
149
- ]
150
- );
151
- // User/Project#Num
152
- MT.testMode(
153
- 'userProjectNum',
154
- 'foo bar/hello#1 world',
155
- [
156
- null, 'foo ',
157
- 'link', 'bar/hello#1',
158
- null, ' world'
159
- ]
160
- );
161
-
162
- // Vanilla links
163
- MT.testMode(
164
- 'vanillaLink',
165
- 'foo http://www.example.com/ bar',
166
- [
167
- null, 'foo ',
168
- 'link', 'http://www.example.com/',
169
- null, ' bar'
170
- ]
171
- );
172
- MT.testMode(
173
- 'vanillaLinkPunctuation',
174
- 'foo http://www.example.com/. bar',
175
- [
176
- null, 'foo ',
177
- 'link', 'http://www.example.com/',
178
- null, '. bar'
179
- ]
180
- );
181
- MT.testMode(
182
- 'vanillaLinkExtension',
183
- 'foo http://www.example.com/index.html bar',
184
- [
185
- null, 'foo ',
186
- 'link', 'http://www.example.com/index.html',
187
- null, ' bar'
188
- ]
189
- );
190
- // Not a link
191
- MT.testMode(
192
- 'notALink',
193
- '```css\nfoo {color:black;}\n```http://www.example.com/',
194
- [
195
- 'comment', '```css',
196
- 'tag', 'foo',
197
- null, ' {',
198
- 'property', 'color',
199
- 'operator', ':',
200
- 'keyword', 'black',
201
- null, ';}',
202
- 'comment', '```',
203
- 'link', 'http://www.example.com/'
204
- ]
205
- );
206
- // Not a link
207
- MT.testMode(
208
- 'notALink',
209
- '``foo `bar` http://www.example.com/`` hello',
210
- [
211
- 'comment', '``foo `bar` http://www.example.com/``',
212
- null, ' hello'
213
- ]
214
- );
215
- // Not a link
216
- MT.testMode(
217
- 'notALink',
218
- '`foo\nhttp://www.example.com/\n`foo\n\nhttp://www.example.com/',
219
- [
220
- 'comment', '`foo',
221
- 'link', 'http://www.example.com/',
222
- 'comment', '`foo',
223
- 'link', 'http://www.example.com/'
224
- ]
225
- );
1
+ (function() {
2
+ var mode = CodeMirror.getMode({tabSize: 4}, "gfm");
3
+ function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
4
+
5
+ MT("emInWordAsterisk",
6
+ "foo[em *bar*]hello");
7
+
8
+ MT("emInWordUnderscore",
9
+ "foo_bar_hello");
10
+
11
+ MT("emStrongUnderscore",
12
+ "[strong __][emstrong _foo__][em _] bar");
13
+
14
+ MT("fencedCodeBlocks",
15
+ "[comment ```]",
16
+ "[comment foo]",
17
+ "",
18
+ "[comment ```]",
19
+ "bar");
20
+
21
+ MT("fencedCodeBlockModeSwitching",
22
+ "[comment ```javascript]",
23
+ "[variable foo]",
24
+ "",
25
+ "[comment ```]",
26
+ "bar");
27
+
28
+ MT("SHA",
29
+ "foo [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] bar");
30
+
31
+ MT("shortSHA",
32
+ "foo [link be6a8cc] bar");
33
+
34
+ MT("tooShortSHA",
35
+ "foo be6a8c bar");
36
+
37
+ MT("longSHA",
38
+ "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar");
39
+
40
+ MT("badSHA",
41
+ "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar");
42
+
43
+ MT("userSHA",
44
+ "foo [link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] hello");
45
+
46
+ MT("userProjectSHA",
47
+ "foo [link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] world");
48
+
49
+ MT("num",
50
+ "foo [link #1] bar");
51
+
52
+ MT("badNum",
53
+ "foo #1bar hello");
54
+
55
+ MT("userNum",
56
+ "foo [link bar#1] hello");
57
+
58
+ MT("userProjectNum",
59
+ "foo [link bar/hello#1] world");
60
+
61
+ MT("vanillaLink",
62
+ "foo [link http://www.example.com/] bar");
63
+
64
+ MT("vanillaLinkPunctuation",
65
+ "foo [link http://www.example.com/]. bar");
66
+
67
+ MT("vanillaLinkExtension",
68
+ "foo [link http://www.example.com/index.html] bar");
69
+
70
+ MT("notALink",
71
+ "[comment ```css]",
72
+ "[tag foo] {[property color][operator :][keyword black];}",
73
+ "[comment ```][link http://www.example.com/]");
74
+
75
+ MT("notALink",
76
+ "[comment ``foo `bar` http://www.example.com/``] hello");
77
+
78
+ MT("notALink",
79
+ "[comment `foo]",
80
+ "[link http://www.example.com/]",
81
+ "[comment `foo]",
82
+ "",
83
+ "[link http://www.example.com/]");
84
+ })();
@@ -6,7 +6,7 @@
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <link rel="stylesheet" href="../../theme/elegant.css">
8
8
  <script src="../../lib/codemirror.js"></script>
9
- <script src="../../lib/util/matchbrackets.js"></script>
9
+ <script src="../../addon/edit/matchbrackets.js"></script>
10
10
  <script src="go.js"></script>
11
11
  <link rel="stylesheet" href="../../doc/docs.css">
12
12
  <style>.CodeMirror {border:1px solid #999; background:#ffc}</style>
@@ -5,7 +5,7 @@
5
5
  <title>CodeMirror: Groovy mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <script src="../../lib/codemirror.js"></script>
8
- <script src="../../lib/util/matchbrackets.js"></script>
8
+ <script src="../../addon/edit/matchbrackets.js"></script>
9
9
  <script src="groovy.js"></script>
10
10
  <link rel="stylesheet" href="../../doc/docs.css">
11
11
  <style>.CodeMirror {border-top: 1px solid #500; border-bottom: 1px solid #500;}</style>
@@ -5,7 +5,7 @@
5
5
  <title>CodeMirror: Haskell mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <script src="../../lib/codemirror.js"></script>
8
- <script src="../../lib/util/matchbrackets.js"></script>
8
+ <script src="../../addon/edit/matchbrackets.js"></script>
9
9
  <script src="haskell.js"></script>
10
10
  <link rel="stylesheet" href="../../theme/elegant.css">
11
11
  <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
@@ -5,8 +5,8 @@
5
5
  <title>CodeMirror: JavaScript mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <script src="../../lib/codemirror.js"></script>
8
- <script src="../../lib/util/matchbrackets.js"></script>
9
- <script src="../../lib/util/continuecomment.js"></script>
8
+ <script src="../../addon/edit/matchbrackets.js"></script>
9
+ <script src="../../addon/edit/continuecomment.js"></script>
10
10
  <script src="javascript.js"></script>
11
11
  <link rel="stylesheet" href="../../doc/docs.css">
12
12
  <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
@@ -196,12 +196,19 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
196
196
  return true;
197
197
  }
198
198
  function register(varname) {
199
+ function inList(list) {
200
+ for (var v = list; v; v = v.next)
201
+ if (v.name == varname) return true;
202
+ return false;
203
+ }
199
204
  var state = cx.state;
200
205
  if (state.context) {
201
206
  cx.marked = "def";
202
- for (var v = state.localVars; v; v = v.next)
203
- if (v.name == varname) return;
207
+ if (inList(state.localVars)) return;
204
208
  state.localVars = {name: varname, next: state.localVars};
209
+ } else {
210
+ if (inList(state.globalVars)) return;
211
+ state.globalVars = {name: varname, next: state.globalVars};
205
212
  }
206
213
  }
207
214
 
@@ -364,6 +371,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
364
371
  cc: [],
365
372
  lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
366
373
  localVars: parserConfig.localVars,
374
+ globalVars: parserConfig.globalVars,
367
375
  context: parserConfig.localVars && {vars: parserConfig.localVars},
368
376
  indented: 0
369
377
  };
@@ -406,6 +414,9 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
406
414
  });
407
415
 
408
416
  CodeMirror.defineMIME("text/javascript", "javascript");
417
+ CodeMirror.defineMIME("text/ecmascript", "javascript");
418
+ CodeMirror.defineMIME("application/javascript", "javascript");
419
+ CodeMirror.defineMIME("application/ecmascript", "javascript");
409
420
  CodeMirror.defineMIME("application/json", {name: "javascript", json: true});
410
421
  CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
411
422
  CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
@@ -5,7 +5,7 @@
5
5
  <title>CodeMirror: LESS mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
7
  <script src="../../lib/codemirror.js"></script>
8
- <script src="../../lib/util/matchbrackets.js"></script>
8
+ <script src="../../addon/edit/matchbrackets.js"></script>
9
9
  <script src="less.js"></script>
10
10
  <style>.CodeMirror {background: #f8f8f8; border: 1px solid #ddd; font-size:12px; height: 400px}</style>
11
11
  <link rel="stylesheet" href="../../doc/docs.css">
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <title>CodeMirror: Lua mode</title>
6
6
  <link rel="stylesheet" href="../../lib/codemirror.css">
7
- <script src="../../lib/util/matchbrackets.js"></script>
7
+ <script src="../../addon/edit/matchbrackets.js"></script>
8
8
  <script src="../../lib/codemirror.js"></script>
9
9
  <script src="lua.js"></script>
10
10
  <link rel="stylesheet" href="../../theme/neat.css">