ace-rails-ap 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ace/rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/ace/ace.js +403 -326
  4. data/vendor/assets/javascripts/ace/ext-language_tools.js +56 -40
  5. data/vendor/assets/javascripts/ace/ext-modelist.js +7 -3
  6. data/vendor/assets/javascripts/ace/ext-settings_menu.js +8 -4
  7. data/vendor/assets/javascripts/ace/ext-static_highlight.js +12 -5
  8. data/vendor/assets/javascripts/ace/keybinding-vim.js +5234 -1558
  9. data/vendor/assets/javascripts/ace/mode-abap.js +1 -1
  10. data/vendor/assets/javascripts/ace/mode-abc.js +261 -0
  11. data/vendor/assets/javascripts/ace/mode-actionscript.js +47 -1
  12. data/vendor/assets/javascripts/ace/mode-apache_conf.js +47 -1
  13. data/vendor/assets/javascripts/ace/mode-applescript.js +47 -1
  14. data/vendor/assets/javascripts/ace/mode-autohotkey.js +47 -1
  15. data/vendor/assets/javascripts/ace/mode-batchfile.js +47 -1
  16. data/vendor/assets/javascripts/ace/mode-c_cpp.js +101 -56
  17. data/vendor/assets/javascripts/ace/mode-coffee.js +3 -3
  18. data/vendor/assets/javascripts/ace/mode-coldfusion.js +114 -63
  19. data/vendor/assets/javascripts/ace/mode-csharp.js +99 -55
  20. data/vendor/assets/javascripts/ace/mode-css.js +98 -53
  21. data/vendor/assets/javascripts/ace/mode-curly.js +114 -63
  22. data/vendor/assets/javascripts/ace/mode-d.js +47 -1
  23. data/vendor/assets/javascripts/ace/mode-dart.js +103 -58
  24. data/vendor/assets/javascripts/ace/mode-diff.js +85 -85
  25. data/vendor/assets/javascripts/ace/mode-django.js +114 -63
  26. data/vendor/assets/javascripts/ace/mode-dockerfile.js +97 -52
  27. data/vendor/assets/javascripts/ace/mode-dot.js +47 -1
  28. data/vendor/assets/javascripts/ace/mode-eiffel.js +30 -37
  29. data/vendor/assets/javascripts/ace/mode-ejs.js +117 -63
  30. data/vendor/assets/javascripts/ace/mode-elm.js +47 -1
  31. data/vendor/assets/javascripts/ace/mode-erlang.js +47 -1
  32. data/vendor/assets/javascripts/ace/mode-forth.js +47 -1
  33. data/vendor/assets/javascripts/ace/mode-ftl.js +10 -7
  34. data/vendor/assets/javascripts/ace/mode-glsl.js +101 -56
  35. data/vendor/assets/javascripts/ace/mode-golang.js +96 -51
  36. data/vendor/assets/javascripts/ace/mode-groovy.js +98 -53
  37. data/vendor/assets/javascripts/ace/mode-haml.js +3 -0
  38. data/vendor/assets/javascripts/ace/mode-handlebars.js +114 -63
  39. data/vendor/assets/javascripts/ace/mode-haskell.js +49 -3
  40. data/vendor/assets/javascripts/ace/mode-haxe.js +96 -51
  41. data/vendor/assets/javascripts/ace/mode-html.js +114 -63
  42. data/vendor/assets/javascripts/ace/mode-html_ruby.js +117 -63
  43. data/vendor/assets/javascripts/ace/mode-io.js +47 -1
  44. data/vendor/assets/javascripts/ace/mode-jack.js +96 -51
  45. data/vendor/assets/javascripts/ace/mode-jade.js +10 -7
  46. data/vendor/assets/javascripts/ace/mode-java.js +98 -53
  47. data/vendor/assets/javascripts/ace/mode-javascript.js +98 -53
  48. data/vendor/assets/javascripts/ace/mode-json.js +99 -54
  49. data/vendor/assets/javascripts/ace/mode-jsoniq.js +98 -51
  50. data/vendor/assets/javascripts/ace/mode-jsp.js +106 -58
  51. data/vendor/assets/javascripts/ace/mode-jsx.js +96 -51
  52. data/vendor/assets/javascripts/ace/mode-julia.js +47 -1
  53. data/vendor/assets/javascripts/ace/mode-latex.js +1 -1
  54. data/vendor/assets/javascripts/ace/mode-lean.js +281 -0
  55. data/vendor/assets/javascripts/ace/mode-less.js +96 -51
  56. data/vendor/assets/javascripts/ace/mode-liquid.js +10 -7
  57. data/vendor/assets/javascripts/ace/mode-live_script.js +481 -0
  58. data/vendor/assets/javascripts/ace/mode-livescript.js +5 -8
  59. data/vendor/assets/javascripts/ace/mode-logiql.js +49 -50
  60. data/vendor/assets/javascripts/ace/mode-lsl.js +96 -51
  61. data/vendor/assets/javascripts/ace/mode-lua.js +3 -3
  62. data/vendor/assets/javascripts/ace/mode-luapage.js +117 -66
  63. data/vendor/assets/javascripts/ace/mode-makefile.js +1 -1
  64. data/vendor/assets/javascripts/ace/mode-markdown.js +134 -67
  65. data/vendor/assets/javascripts/ace/mode-mask.js +1985 -0
  66. data/vendor/assets/javascripts/ace/mode-mel.js +96 -51
  67. data/vendor/assets/javascripts/ace/mode-mips_assembler.js +235 -0
  68. data/vendor/assets/javascripts/ace/mode-mipsassembler.js +196 -0
  69. data/vendor/assets/javascripts/ace/mode-nix.js +101 -56
  70. data/vendor/assets/javascripts/ace/mode-objectivec.js +52 -6
  71. data/vendor/assets/javascripts/ace/mode-perl.js +47 -1
  72. data/vendor/assets/javascripts/ace/mode-pgsql.js +1 -1
  73. data/vendor/assets/javascripts/ace/mode-php.js +139 -85
  74. data/vendor/assets/javascripts/ace/mode-powershell.js +96 -51
  75. data/vendor/assets/javascripts/ace/mode-praat.js +47 -1
  76. data/vendor/assets/javascripts/ace/mode-prolog.js +47 -1
  77. data/vendor/assets/javascripts/ace/mode-protobuf.js +101 -56
  78. data/vendor/assets/javascripts/ace/mode-rdoc.js +1 -1
  79. data/vendor/assets/javascripts/ace/mode-rhtml.js +114 -63
  80. data/vendor/assets/javascripts/ace/mode-ruby.js +52 -50
  81. data/vendor/assets/javascripts/ace/mode-rust.js +57 -18
  82. data/vendor/assets/javascripts/ace/mode-scad.js +96 -51
  83. data/vendor/assets/javascripts/ace/mode-scala.js +98 -53
  84. data/vendor/assets/javascripts/ace/mode-scss.js +96 -51
  85. data/vendor/assets/javascripts/ace/mode-sh.js +97 -52
  86. data/vendor/assets/javascripts/ace/mode-sjs.js +98 -53
  87. data/vendor/assets/javascripts/ace/mode-smarty.js +114 -63
  88. data/vendor/assets/javascripts/ace/mode-soy_template.js +114 -63
  89. data/vendor/assets/javascripts/ace/mode-stylus.js +1 -1
  90. data/vendor/assets/javascripts/ace/mode-svg.js +132 -65
  91. data/vendor/assets/javascripts/ace/mode-tcl.js +47 -1
  92. data/vendor/assets/javascripts/ace/mode-twig.js +114 -63
  93. data/vendor/assets/javascripts/ace/mode-typescript.js +98 -53
  94. data/vendor/assets/javascripts/ace/mode-vala.js +96 -51
  95. data/vendor/assets/javascripts/ace/mode-velocity.js +114 -63
  96. data/vendor/assets/javascripts/ace/mode-vhdl.js +21 -21
  97. data/vendor/assets/javascripts/ace/mode-xml.js +34 -12
  98. data/vendor/assets/javascripts/ace/mode-xquery.js +98 -51
  99. data/vendor/assets/javascripts/ace/snippets/abc.js +38 -0
  100. data/vendor/assets/javascripts/ace/snippets/elixir.js +7 -0
  101. data/vendor/assets/javascripts/ace/snippets/elm.js +7 -0
  102. data/vendor/assets/javascripts/ace/snippets/lean.js +7 -0
  103. data/vendor/assets/javascripts/ace/snippets/live_script.js +7 -0
  104. data/vendor/assets/javascripts/ace/snippets/mask.js +7 -0
  105. data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +7 -0
  106. data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +7 -0
  107. data/vendor/assets/javascripts/ace/snippets/r.js +1 -1
  108. data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +1 -1
  109. data/vendor/assets/javascripts/ace/theme-github.js +7 -1
  110. data/vendor/assets/javascripts/ace/theme-katzenmilch.js +3 -0
  111. data/vendor/assets/javascripts/ace/theme-kuroir.js +3 -0
  112. data/vendor/assets/javascripts/ace/worker-coffee.js +6 -7
  113. data/vendor/assets/javascripts/ace/worker-css.js +5 -5
  114. data/vendor/assets/javascripts/ace/worker-html.js +4354 -4354
  115. data/vendor/assets/javascripts/ace/worker-javascript.js +2435 -1397
  116. data/vendor/assets/javascripts/ace/worker-json.js +6 -7
  117. data/vendor/assets/javascripts/ace/worker-lua.js +11 -11
  118. data/vendor/assets/javascripts/ace/worker-php.js +4 -8
  119. data/vendor/assets/javascripts/ace/worker-xml.js +3809 -0
  120. data/vendor/assets/javascripts/ace/worker-xquery.js +38 -47
  121. metadata +18 -9
  122. data/vendor/assets/javascripts/ace/ext-options.js +0 -252
  123. data/vendor/assets/javascripts/ace/mode-html_completions.js +0 -309
  124. data/vendor/assets/javascripts/ace/mode-luahtml.js +0 -2415
  125. data/vendor/assets/javascripts/ace/mode-mushcode_high_rules.js +0 -569
  126. data/vendor/assets/javascripts/ace/mode-tmsnippet.js +0 -200
  127. data/vendor/assets/javascripts/ace/theme-kr.js +0 -105
@@ -1,200 +0,0 @@
1
- define('ace/mode/tmsnippet', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/text_highlight_rules', 'ace/mode/folding/coffee'], function(require, exports, module) {
2
-
3
-
4
- var oop = require("../lib/oop");
5
- var TextMode = require("./text").Mode;
6
- var Tokenizer = require("../tokenizer").Tokenizer;
7
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
8
-
9
- var SnippetHighlightRules = function() {
10
-
11
- var builtins = "SELECTION|CURRENT_WORD|SELECTED_TEXT|CURRENT_LINE|LINE_INDEX|" +
12
- "LINE_NUMBER|SOFT_TABS|TAB_SIZE|FILENAME|FILEPATH|FULLNAME";
13
-
14
- this.$rules = {
15
- "start" : [
16
- {token:"constant.language.escape", regex: /\\[\$}`\\]/},
17
- {token:"keyword", regex: "\\$(?:TM_)?(?:" + builtins + ")\\b"},
18
- {token:"variable", regex: "\\$\\w+"},
19
- {onMatch: function(value, state, stack) {
20
- if (stack[1])
21
- stack[1]++;
22
- else
23
- stack.unshift(state, 1);
24
- return this.tokenName;
25
- }, tokenName: "markup.list", regex: "\\${", next: "varDecl"},
26
- {onMatch: function(value, state, stack) {
27
- if (!stack[1])
28
- return "text";
29
- stack[1]--;
30
- if (!stack[1])
31
- stack.splice(0,2);
32
- return this.tokenName;
33
- }, tokenName: "markup.list", regex: "}"},
34
- {token: "doc.comment", regex:/^\${2}-{5,}$/}
35
- ],
36
- "varDecl" : [
37
- {regex: /\d+\b/, token: "constant.numeric"},
38
- {token:"keyword", regex: "(?:TM_)?(?:" + builtins + ")\\b"},
39
- {token:"variable", regex: "\\w+"},
40
- {regex: /:/, token: "punctuation.operator", next: "start"},
41
- {regex: /\//, token: "string.regex", next: "regexp"},
42
- {regex: "", next: "start"}
43
- ],
44
- "regexp" : [
45
- {regex: /\\./, token: "escape"},
46
- {regex: /\[/, token: "regex.start", next: "charClass"},
47
- {regex: "/", token: "string.regex", next: "format"},
48
- {"token": "string.regex", regex:"."}
49
- ],
50
- charClass : [
51
- {regex: "\\.", token: "escape"},
52
- {regex: "\\]", token: "regex.end", next: "regexp"},
53
- {"token": "string.regex", regex:"."}
54
- ],
55
- "format" : [
56
- {regex: /\\[ulULE]/, token: "keyword"},
57
- {regex: /\$\d+/, token: "variable"},
58
- {regex: "/[gim]*:?", token: "string.regex", next: "start"},
59
- {"token": "string", regex:"."}
60
- ]
61
- };
62
- };
63
- oop.inherits(SnippetHighlightRules, TextHighlightRules);
64
-
65
- exports.SnippetHighlightRules = SnippetHighlightRules;
66
-
67
- var SnippetGroupHighlightRules = function() {
68
- this.$rules = {
69
- "start" : [
70
- {token: "text", regex: "^\\t", next: "sn-start"},
71
- {token:"invalid", regex: /^ \s*/},
72
- {token:"comment", regex: /^#.*/},
73
- {token:"constant.language.escape", regex: "^regex ", next: "regex"},
74
- {token:"constant.language.escape", regex: "^(trigger|endTrigger|name|snippet|guard|endGuard|tabTrigger|key)\\b"}
75
- ],
76
- "regex" : [
77
- {token:"text", regex: "\\."},
78
- {token:"keyword", regex: "/"},
79
- {token:"empty", regex: "$", next: "start"}
80
- ]
81
- };
82
- this.embedRules(SnippetHighlightRules, "sn-", [
83
- {token: "text", regex: "^\\t", next: "sn-start"},
84
- {onMatch: function(value, state, stack) {
85
- stack.splice(stack.length);
86
- return this.tokenName;
87
- }, tokenName: "text", regex: "^(?!\t)", next: "start"},
88
- ])
89
-
90
- };
91
-
92
- oop.inherits(SnippetGroupHighlightRules, TextHighlightRules);
93
-
94
- exports.SnippetGroupHighlightRules = SnippetGroupHighlightRules;
95
-
96
- var FoldMode = require("./folding/coffee").FoldMode;
97
-
98
- var Mode = function() {
99
- var highlighter = new SnippetGroupHighlightRules();
100
- this.foldingRules = new FoldMode();
101
- this.$tokenizer = new Tokenizer(highlighter.getRules());
102
- };
103
- oop.inherits(Mode, TextMode);
104
-
105
- (function() {
106
- this.getNextLineIndent = function(state, line, tab) {
107
- return this.$getIndent(line);
108
- };
109
- }).call(Mode.prototype);
110
- exports.Mode = Mode;
111
-
112
-
113
- });
114
-
115
- define('ace/mode/folding/coffee', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode', 'ace/range'], function(require, exports, module) {
116
-
117
-
118
- var oop = require("../../lib/oop");
119
- var BaseFoldMode = require("./fold_mode").FoldMode;
120
- var Range = require("../../range").Range;
121
-
122
- var FoldMode = exports.FoldMode = function() {};
123
- oop.inherits(FoldMode, BaseFoldMode);
124
-
125
- (function() {
126
-
127
- this.getFoldWidgetRange = function(session, foldStyle, row) {
128
- var range = this.indentationBlock(session, row);
129
- if (range)
130
- return range;
131
-
132
- var re = /\S/;
133
- var line = session.getLine(row);
134
- var startLevel = line.search(re);
135
- if (startLevel == -1 || line[startLevel] != "#")
136
- return;
137
-
138
- var startColumn = line.length;
139
- var maxRow = session.getLength();
140
- var startRow = row;
141
- var endRow = row;
142
-
143
- while (++row < maxRow) {
144
- line = session.getLine(row);
145
- var level = line.search(re);
146
-
147
- if (level == -1)
148
- continue;
149
-
150
- if (line[level] != "#")
151
- break;
152
-
153
- endRow = row;
154
- }
155
-
156
- if (endRow > startRow) {
157
- var endColumn = session.getLine(endRow).length;
158
- return new Range(startRow, startColumn, endRow, endColumn);
159
- }
160
- };
161
- this.getFoldWidget = function(session, foldStyle, row) {
162
- var line = session.getLine(row);
163
- var indent = line.search(/\S/);
164
- var next = session.getLine(row + 1);
165
- var prev = session.getLine(row - 1);
166
- var prevIndent = prev.search(/\S/);
167
- var nextIndent = next.search(/\S/);
168
-
169
- if (indent == -1) {
170
- session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
171
- return "";
172
- }
173
- if (prevIndent == -1) {
174
- if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
175
- session.foldWidgets[row - 1] = "";
176
- session.foldWidgets[row + 1] = "";
177
- return "start";
178
- }
179
- } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
180
- if (session.getLine(row - 2).search(/\S/) == -1) {
181
- session.foldWidgets[row - 1] = "start";
182
- session.foldWidgets[row + 1] = "";
183
- return "";
184
- }
185
- }
186
-
187
- if (prevIndent!= -1 && prevIndent < indent)
188
- session.foldWidgets[row - 1] = "start";
189
- else
190
- session.foldWidgets[row - 1] = "";
191
-
192
- if (indent < nextIndent)
193
- return "start";
194
- else
195
- return "";
196
- };
197
-
198
- }).call(FoldMode.prototype);
199
-
200
- });
@@ -1,105 +0,0 @@
1
- define("ace/theme/kr_theme",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2
-
3
- exports.isDark = true;
4
- exports.cssClass = "ace-kr-theme";
5
- exports.cssText = ".ace-kr-theme .ace_gutter {\
6
- background: #1c1917;\
7
- color: #FCFFE0\
8
- }\
9
- .ace-kr-theme .ace_print-margin {\
10
- width: 1px;\
11
- background: #1c1917\
12
- }\
13
- .ace-kr-theme {\
14
- background-color: #0B0A09;\
15
- color: #FCFFE0\
16
- }\
17
- .ace-kr-theme .ace_cursor {\
18
- color: #FF9900\
19
- }\
20
- .ace-kr-theme .ace_marker-layer .ace_selection {\
21
- background: rgba(170, 0, 255, 0.45)\
22
- }\
23
- .ace-kr-theme.ace_multiselect .ace_selection.ace_start {\
24
- box-shadow: 0 0 3px 0px #0B0A09;\
25
- border-radius: 2px\
26
- }\
27
- .ace-kr-theme .ace_marker-layer .ace_step {\
28
- background: rgb(102, 82, 0)\
29
- }\
30
- .ace-kr-theme .ace_marker-layer .ace_bracket {\
31
- margin: -1px 0 0 -1px;\
32
- border: 1px solid rgba(255, 177, 111, 0.32)\
33
- }\
34
- .ace-kr-theme .ace_marker-layer .ace_active-line {\
35
- background: #38403D\
36
- }\
37
- .ace-kr-theme .ace_gutter-active-line {\
38
- background-color : #38403D\
39
- }\
40
- .ace-kr-theme .ace_marker-layer .ace_selected-word {\
41
- border: 1px solid rgba(170, 0, 255, 0.45)\
42
- }\
43
- .ace-kr-theme .ace_invisible {\
44
- color: rgba(255, 177, 111, 0.32)\
45
- }\
46
- .ace-kr-theme .ace_keyword,\
47
- .ace-kr-theme .ace_meta {\
48
- color: #949C8B\
49
- }\
50
- .ace-kr-theme .ace_constant,\
51
- .ace-kr-theme .ace_constant.ace_character,\
52
- .ace-kr-theme .ace_constant.ace_character.ace_escape,\
53
- .ace-kr-theme .ace_constant.ace_other {\
54
- color: rgba(210, 117, 24, 0.76)\
55
- }\
56
- .ace-kr-theme .ace_invalid {\
57
- color: #F8F8F8;\
58
- background-color: #A41300\
59
- }\
60
- .ace-kr-theme .ace_support {\
61
- color: #9FC28A\
62
- }\
63
- .ace-kr-theme .ace_support.ace_constant {\
64
- color: #C27E66\
65
- }\
66
- .ace-kr-theme .ace_fold {\
67
- background-color: #949C8B;\
68
- border-color: #FCFFE0\
69
- }\
70
- .ace-kr-theme .ace_support.ace_function {\
71
- color: #85873A\
72
- }\
73
- .ace-kr-theme .ace_storage {\
74
- color: #FFEE80\
75
- }\
76
- .ace-kr-theme .ace_string {\
77
- color: rgba(164, 161, 181, 0.8)\
78
- }\
79
- .ace-kr-theme .ace_string.ace_regexp {\
80
- color: rgba(125, 255, 192, 0.65)\
81
- }\
82
- .ace-kr-theme .ace_comment {\
83
- font-style: italic;\
84
- color: #706D5B\
85
- }\
86
- .ace-kr-theme .ace_variable {\
87
- color: #D1A796\
88
- }\
89
- .ace-kr-theme .ace_list,\
90
- .ace-kr-theme .ace_markup.ace_list {\
91
- background-color: #0F0040\
92
- }\
93
- .ace-kr-theme .ace_variable.ace_language {\
94
- color: #FF80E1\
95
- }\
96
- .ace-kr-theme .ace_meta.ace_tag {\
97
- color: #BABD9C\
98
- }\
99
- .ace-kr-theme .ace_indent-guide {\
100
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y\
101
- }";
102
-
103
- var dom = require("../lib/dom");
104
- dom.importCssString(exports.cssText, exports.cssClass);
105
- });