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,569 +0,0 @@
1
- /*
2
- * MUSHCodeMode
3
- */
4
-
5
- define('ace/mode/mushcode_high_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
6
-
7
-
8
- var oop = require("../lib/oop");
9
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
10
-
11
- var MushCodeRules = function() {
12
-
13
-
14
- var keywords = (
15
- "@if|"+
16
- "@ifelse|"+
17
- "@switch|"+
18
- "@halt|"+
19
- "@dolist|"+
20
- "@create|"+
21
- "@scent|"+
22
- "@sound|"+
23
- "@touch|"+
24
- "@ataste|"+
25
- "@osound|"+
26
- "@ahear|"+
27
- "@aahear|"+
28
- "@amhear|"+
29
- "@otouch|"+
30
- "@otaste|"+
31
- "@drop|"+
32
- "@odrop|"+
33
- "@adrop|"+
34
- "@dropfail|"+
35
- "@odropfail|"+
36
- "@smell|"+
37
- "@oemit|"+
38
- "@emit|"+
39
- "@pemit|"+
40
- "@parent|"+
41
- "@clone|"+
42
- "@taste|"+
43
- "whisper|"+
44
- "page|"+
45
- "say|"+
46
- "pose|"+
47
- "semipose|"+
48
- "teach|"+
49
- "touch|"+
50
- "taste|"+
51
- "smell|"+
52
- "listen|"+
53
- "look|"+
54
- "move|"+
55
- "go|"+
56
- "home|"+
57
- "follow|"+
58
- "unfollow|"+
59
- "desert|"+
60
- "dismiss|"+
61
- "@tel"
62
- );
63
-
64
- var builtinConstants = (
65
- "=#0"
66
- );
67
-
68
- var builtinFunctions = (
69
- "default|"+
70
- "edefault|"+
71
- "eval|"+
72
- "get_eval|"+
73
- "get|"+
74
- "grep|"+
75
- "grepi|"+
76
- "hasattr|"+
77
- "hasattrp|"+
78
- "hasattrval|"+
79
- "hasattrpval|"+
80
- "lattr|"+
81
- "nattr|"+
82
- "poss|"+
83
- "udefault|"+
84
- "ufun|"+
85
- "u|"+
86
- "v|"+
87
- "uldefault|"+
88
- "xget|"+
89
- "zfun|"+
90
- "band|"+
91
- "bnand|"+
92
- "bnot|"+
93
- "bor|"+
94
- "bxor|"+
95
- "shl|"+
96
- "shr|"+
97
- "and|"+
98
- "cand|"+
99
- "cor|"+
100
- "eq|"+
101
- "gt|"+
102
- "gte|"+
103
- "lt|"+
104
- "lte|"+
105
- "nand|"+
106
- "neq|"+
107
- "nor|"+
108
- "not|"+
109
- "or|"+
110
- "t|"+
111
- "xor|"+
112
- "con|"+
113
- "entrances|"+
114
- "exit|"+
115
- "followers|"+
116
- "home|"+
117
- "lcon|"+
118
- "lexits|"+
119
- "loc|"+
120
- "locate|"+
121
- "lparent|"+
122
- "lsearch|"+
123
- "next|"+
124
- "num|"+
125
- "owner|"+
126
- "parent|"+
127
- "pmatch|"+
128
- "rloc|"+
129
- "rnum|"+
130
- "room|"+
131
- "where|"+
132
- "zone|"+
133
- "worn|"+
134
- "held|"+
135
- "carried|"+
136
- "acos|"+
137
- "asin|"+
138
- "atan|"+
139
- "ceil|"+
140
- "cos|"+
141
- "e|"+
142
- "exp|"+
143
- "fdiv|"+
144
- "fmod|"+
145
- "floor|"+
146
- "log|"+
147
- "ln|"+
148
- "pi|"+
149
- "power|"+
150
- "round|"+
151
- "sin|"+
152
- "sqrt|"+
153
- "tan|"+
154
- "aposs|"+
155
- "andflags|"+
156
- "conn|"+
157
- "commandssent|"+
158
- "controls|"+
159
- "doing|"+
160
- "elock|"+
161
- "findable|"+
162
- "flags|"+
163
- "fullname|"+
164
- "hasflag|"+
165
- "haspower|"+
166
- "hastype|"+
167
- "hidden|"+
168
- "idle|"+
169
- "isbaker|"+
170
- "lock|"+
171
- "lstats|"+
172
- "money|"+
173
- "who|"+
174
- "name|"+
175
- "nearby|"+
176
- "obj|"+
177
- "objflags|"+
178
- "photo|"+
179
- "poll|"+
180
- "powers|"+
181
- "pendingtext|"+
182
- "receivedtext|"+
183
- "restarts|"+
184
- "restarttime|"+
185
- "subj|"+
186
- "shortestpath|"+
187
- "tmoney|"+
188
- "type|"+
189
- "visible|"+
190
- "cat|"+
191
- "element|"+
192
- "elements|"+
193
- "extract|"+
194
- "filter|"+
195
- "filterbool|"+
196
- "first|"+
197
- "foreach|"+
198
- "fold|"+
199
- "grab|"+
200
- "graball|"+
201
- "index|"+
202
- "insert|"+
203
- "itemize|"+
204
- "items|"+
205
- "iter|"+
206
- "last|"+
207
- "ldelete|"+
208
- "map|"+
209
- "match|"+
210
- "matchall|"+
211
- "member|"+
212
- "mix|"+
213
- "munge|"+
214
- "pick|"+
215
- "remove|"+
216
- "replace|"+
217
- "rest|"+
218
- "revwords|"+
219
- "setdiff|"+
220
- "setinter|"+
221
- "setunion|"+
222
- "shuffle|"+
223
- "sort|"+
224
- "sortby|"+
225
- "splice|"+
226
- "step|"+
227
- "wordpos|"+
228
- "words|"+
229
- "add|"+
230
- "lmath|"+
231
- "max|"+
232
- "mean|"+
233
- "median|"+
234
- "min|"+
235
- "mul|"+
236
- "percent|"+
237
- "sign|"+
238
- "stddev|"+
239
- "sub|"+
240
- "val|"+
241
- "bound|"+
242
- "abs|"+
243
- "inc|"+
244
- "dec|"+
245
- "dist2d|"+
246
- "dist3d|"+
247
- "div|"+
248
- "floordiv|"+
249
- "mod|"+
250
- "modulo|"+
251
- "remainder|"+
252
- "vadd|"+
253
- "vdim|"+
254
- "vdot|"+
255
- "vmag|"+
256
- "vmax|"+
257
- "vmin|"+
258
- "vmul|"+
259
- "vsub|"+
260
- "vunit|"+
261
- "regedit|"+
262
- "regeditall|"+
263
- "regeditalli|"+
264
- "regediti|"+
265
- "regmatch|"+
266
- "regmatchi|"+
267
- "regrab|"+
268
- "regraball|"+
269
- "regraballi|"+
270
- "regrabi|"+
271
- "regrep|"+
272
- "regrepi|"+
273
- "after|"+
274
- "alphamin|"+
275
- "alphamax|"+
276
- "art|"+
277
- "before|"+
278
- "brackets|"+
279
- "capstr|"+
280
- "case|"+
281
- "caseall|"+
282
- "center|"+
283
- "containsfansi|"+
284
- "comp|"+
285
- "decompose|"+
286
- "decrypt|"+
287
- "delete|"+
288
- "edit|"+
289
- "encrypt|"+
290
- "escape|"+
291
- "if|"+
292
- "ifelse|"+
293
- "lcstr|"+
294
- "left|"+
295
- "lit|"+
296
- "ljust|"+
297
- "merge|"+
298
- "mid|"+
299
- "ostrlen|"+
300
- "pos|"+
301
- "repeat|"+
302
- "reverse|"+
303
- "right|"+
304
- "rjust|"+
305
- "scramble|"+
306
- "secure|"+
307
- "space|"+
308
- "spellnum|"+
309
- "squish|"+
310
- "strcat|"+
311
- "strmatch|"+
312
- "strinsert|"+
313
- "stripansi|"+
314
- "stripfansi|"+
315
- "strlen|"+
316
- "switch|"+
317
- "switchall|"+
318
- "table|"+
319
- "tr|"+
320
- "trim|"+
321
- "ucstr|"+
322
- "unsafe|"+
323
- "wrap|"+
324
- "ctitle|"+
325
- "cwho|"+
326
- "channels|"+
327
- "clock|"+
328
- "cflags|"+
329
- "ilev|"+
330
- "itext|"+
331
- "inum|"+
332
- "convsecs|"+
333
- "convutcsecs|"+
334
- "convtime|"+
335
- "ctime|"+
336
- "etimefmt|"+
337
- "isdaylight|"+
338
- "mtime|"+
339
- "secs|"+
340
- "msecs|"+
341
- "starttime|"+
342
- "time|"+
343
- "timefmt|"+
344
- "timestring|"+
345
- "utctime|"+
346
- "atrlock|"+
347
- "clone|"+
348
- "create|"+
349
- "cook|"+
350
- "dig|"+
351
- "emit|"+
352
- "lemit|"+
353
- "link|"+
354
- "oemit|"+
355
- "open|"+
356
- "pemit|"+
357
- "remit|"+
358
- "set|"+
359
- "tel|"+
360
- "wipe|"+
361
- "zemit|"+
362
- "fbcreate|"+
363
- "fbdestroy|"+
364
- "fbwrite|"+
365
- "fbclear|"+
366
- "fbcopy|"+
367
- "fbcopyto|"+
368
- "fbclip|"+
369
- "fbdump|"+
370
- "fbflush|"+
371
- "fbhset|"+
372
- "fblist|"+
373
- "fbstats|"+
374
- "qentries|"+
375
- "qentry|"+
376
- "play|"+
377
- "ansi|"+
378
- "break|"+
379
- "c|"+
380
- "asc|"+
381
- "die|"+
382
- "isdbref|"+
383
- "isint|"+
384
- "isnum|"+
385
- "isletters|"+
386
- "linecoords|"+
387
- "localize|"+
388
- "lnum|"+
389
- "nameshort|"+
390
- "null|"+
391
- "objeval|"+
392
- "r|"+
393
- "rand|"+
394
- "s|"+
395
- "setq|"+
396
- "setr|"+
397
- "soundex|"+
398
- "soundslike|"+
399
- "valid|"+
400
- "vchart|"+
401
- "vchart2|"+
402
- "vlabel|"+
403
- "@@|"+
404
- "bakerdays|"+
405
- "bodybuild|"+
406
- "box|"+
407
- "capall|"+
408
- "catalog|"+
409
- "children|"+
410
- "ctrailer|"+
411
- "darttime|"+
412
- "debt|"+
413
- "detailbar|"+
414
- "exploredroom|"+
415
- "fansitoansi|"+
416
- "fansitoxansi|"+
417
- "fullbar|"+
418
- "halfbar|"+
419
- "isdarted|"+
420
- "isnewbie|"+
421
- "isword|"+
422
- "lambda|"+
423
- "lobjects|"+
424
- "lplayers|"+
425
- "lthings|"+
426
- "lvexits|"+
427
- "lvobjects|"+
428
- "lvplayers|"+
429
- "lvthings|"+
430
- "newswrap|"+
431
- "numsuffix|"+
432
- "playerson|"+
433
- "playersthisweek|"+
434
- "randomad|"+
435
- "randword|"+
436
- "realrandword|"+
437
- "replacechr|"+
438
- "second|"+
439
- "splitamount|"+
440
- "strlenall|"+
441
- "text|"+
442
- "third|"+
443
- "tofansi|"+
444
- "totalac|"+
445
- "unique|"+
446
- "getaddressroom|"+
447
- "listpropertycomm|"+
448
- "listpropertyres|"+
449
- "lotowner|"+
450
- "lotrating|"+
451
- "lotratingcount|"+
452
- "lotvalue|"+
453
- "boughtproduct|"+
454
- "companyabb|"+
455
- "companyicon|"+
456
- "companylist|"+
457
- "companyname|"+
458
- "companyowners|"+
459
- "companyvalue|"+
460
- "employees|"+
461
- "invested|"+
462
- "productlist|"+
463
- "productname|"+
464
- "productowners|"+
465
- "productrating|"+
466
- "productratingcount|"+
467
- "productsoldat|"+
468
- "producttype|"+
469
- "ratedproduct|"+
470
- "soldproduct|"+
471
- "topproducts|"+
472
- "totalspentonproduct|"+
473
- "totalstock|"+
474
- "transfermoney|"+
475
- "uniquebuyercount|"+
476
- "uniqueproductsbought|"+
477
- "validcompany|"+
478
- "deletepicture|"+
479
- "fbsave|"+
480
- "getpicturesecurity|"+
481
- "haspicture|"+
482
- "listpictures|"+
483
- "picturesize|"+
484
- "replacecolor|"+
485
- "rgbtocolor|"+
486
- "savepicture|"+
487
- "setpicturesecurity|"+
488
- "showpicture|"+
489
- "piechart|"+
490
- "piechartlabel|"+
491
- "createmaze|"+
492
- "drawmaze|"+
493
- "drawwireframe"
494
- );
495
- var keywordMapper = this.createKeywordMapper({
496
- "invalid.deprecated": "debugger",
497
- "support.function": builtinFunctions,
498
- "constant.language": builtinConstants,
499
- "keyword": keywords
500
- }, "identifier");
501
-
502
- var strPre = "(?:r|u|ur|R|U|UR|Ur|uR)?";
503
-
504
- var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
505
- var octInteger = "(?:0[oO]?[0-7]+)";
506
- var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
507
- var binInteger = "(?:0[bB][01]+)";
508
- var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
509
-
510
- var exponent = "(?:[eE][+-]?\\d+)";
511
- var fraction = "(?:\\.\\d+)";
512
- var intPart = "(?:\\d+)";
513
- var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
514
- var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
515
- var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
516
-
517
- this.$rules = {
518
- "start" : [
519
- {
520
- token : "variable", // mush substitution register
521
- regex : "%[0-9]{1}"
522
- },
523
- {
524
- token : "variable", // mush substitution register
525
- regex : "%q[0-9A-Za-z]{1}"
526
- },
527
- {
528
- token : "variable", // mush special character register
529
- regex : "%[a-zA-Z]{1}"
530
- },
531
- {
532
- token: "variable.language",
533
- regex: "%[a-z0-9-_]+"
534
- },
535
- {
536
- token : "constant.numeric", // imaginary
537
- regex : "(?:" + floatNumber + "|\\d+)[jJ]\\b"
538
- }, {
539
- token : "constant.numeric", // float
540
- regex : floatNumber
541
- }, {
542
- token : "constant.numeric", // long integer
543
- regex : integer + "[lL]\\b"
544
- }, {
545
- token : "constant.numeric", // integer
546
- regex : integer + "\\b"
547
- }, {
548
- token : keywordMapper,
549
- regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
550
- }, {
551
- token : "keyword.operator",
552
- regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|#|%|<<|>>|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
553
- }, {
554
- token : "paren.lparen",
555
- regex : "[\\[\\(\\{]"
556
- }, {
557
- token : "paren.rparen",
558
- regex : "[\\]\\)\\}]"
559
- }, {
560
- token : "text",
561
- regex : "\\s+"
562
- } ]
563
- };
564
- };
565
-
566
- oop.inherits(MushCodeRules, TextHighlightRules);
567
-
568
- exports.MushCodeRules = MushCodeRules;
569
- });