highlight_js-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/.gitignore +19 -0
  2. data/AUTHORS.en.txt +46 -0
  3. data/AUTHORS.ru.txt +46 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +24 -0
  6. data/README.md +34 -0
  7. data/Rakefile +2 -0
  8. data/classref.txt +437 -0
  9. data/highlight_js-rails.gemspec +19 -0
  10. data/lib/highlight_js/rails/engine.rb +6 -0
  11. data/lib/highlight_js/version.rb +5 -0
  12. data/lib/highlight_js-rails.rb +2 -0
  13. data/vendor/assets/images/highlight_js/brown_papersq.png +0 -0
  14. data/vendor/assets/images/highlight_js/school_book.png +0 -0
  15. data/vendor/assets/javascripts/highlight_js/highlight.js +630 -0
  16. data/vendor/assets/javascripts/highlight_js/languages/1c.js +68 -0
  17. data/vendor/assets/javascripts/highlight_js/languages/apache.js +432 -0
  18. data/vendor/assets/javascripts/highlight_js/languages/avrasm.js +75 -0
  19. data/vendor/assets/javascripts/highlight_js/languages/axapta.js +43 -0
  20. data/vendor/assets/javascripts/highlight_js/languages/bash.js +56 -0
  21. data/vendor/assets/javascripts/highlight_js/languages/cmake.js +24 -0
  22. data/vendor/assets/javascripts/highlight_js/languages/cpp.js +62 -0
  23. data/vendor/assets/javascripts/highlight_js/languages/cs.js +41 -0
  24. data/vendor/assets/javascripts/highlight_js/languages/css.js +101 -0
  25. data/vendor/assets/javascripts/highlight_js/languages/delphi.js +70 -0
  26. data/vendor/assets/javascripts/highlight_js/languages/diff.js +64 -0
  27. data/vendor/assets/javascripts/highlight_js/languages/django.js +72 -0
  28. data/vendor/assets/javascripts/highlight_js/languages/dos.js +29 -0
  29. data/vendor/assets/javascripts/highlight_js/languages/erlang-repl.js +81 -0
  30. data/vendor/assets/javascripts/highlight_js/languages/erlang.js +201 -0
  31. data/vendor/assets/javascripts/highlight_js/languages/go.js +58 -0
  32. data/vendor/assets/javascripts/highlight_js/languages/haskell.js +77 -0
  33. data/vendor/assets/javascripts/highlight_js/languages/ini.js +32 -0
  34. data/vendor/assets/javascripts/highlight_js/languages/java.js +45 -0
  35. data/vendor/assets/javascripts/highlight_js/languages/javascript.js +53 -0
  36. data/vendor/assets/javascripts/highlight_js/languages/lisp.js +87 -0
  37. data/vendor/assets/javascripts/highlight_js/languages/lua.js +75 -0
  38. data/vendor/assets/javascripts/highlight_js/languages/mel.js +40 -0
  39. data/vendor/assets/javascripts/highlight_js/languages/nginx.js +224 -0
  40. data/vendor/assets/javascripts/highlight_js/languages/objectivec.js +94 -0
  41. data/vendor/assets/javascripts/highlight_js/languages/parser3.js +52 -0
  42. data/vendor/assets/javascripts/highlight_js/languages/perl.js +143 -0
  43. data/vendor/assets/javascripts/highlight_js/languages/php.js +55 -0
  44. data/vendor/assets/javascripts/highlight_js/languages/profile.js +49 -0
  45. data/vendor/assets/javascripts/highlight_js/languages/python.js +71 -0
  46. data/vendor/assets/javascripts/highlight_js/languages/renderman.js +230 -0
  47. data/vendor/assets/javascripts/highlight_js/languages/ruby.js +203 -0
  48. data/vendor/assets/javascripts/highlight_js/languages/scala.js +60 -0
  49. data/vendor/assets/javascripts/highlight_js/languages/smalltalk.js +55 -0
  50. data/vendor/assets/javascripts/highlight_js/languages/sql.js +90 -0
  51. data/vendor/assets/javascripts/highlight_js/languages/tex.js +62 -0
  52. data/vendor/assets/javascripts/highlight_js/languages/vala.js +75 -0
  53. data/vendor/assets/javascripts/highlight_js/languages/vbscript.js +30 -0
  54. data/vendor/assets/javascripts/highlight_js/languages/vhdl.js +30 -0
  55. data/vendor/assets/javascripts/highlight_js/languages/xml.js +103 -0
  56. data/vendor/assets/stylesheets/highlight_js/arta.css +151 -0
  57. data/vendor/assets/stylesheets/highlight_js/ascetic.css +45 -0
  58. data/vendor/assets/stylesheets/highlight_js/brown_paper.css.erb +105 -0
  59. data/vendor/assets/stylesheets/highlight_js/dark.css +103 -0
  60. data/vendor/assets/stylesheets/highlight_js/default.css +121 -0
  61. data/vendor/assets/stylesheets/highlight_js/far.css +118 -0
  62. data/vendor/assets/stylesheets/highlight_js/github.css +129 -0
  63. data/vendor/assets/stylesheets/highlight_js/idea.css +118 -0
  64. data/vendor/assets/stylesheets/highlight_js/ir_black.css +103 -0
  65. data/vendor/assets/stylesheets/highlight_js/magula.css +118 -0
  66. data/vendor/assets/stylesheets/highlight_js/school_book.css.erb +111 -0
  67. data/vendor/assets/stylesheets/highlight_js/solarized_dark.css +96 -0
  68. data/vendor/assets/stylesheets/highlight_js/solarized_light.css +96 -0
  69. data/vendor/assets/stylesheets/highlight_js/sunburst.css +147 -0
  70. data/vendor/assets/stylesheets/highlight_js/vs.css +84 -0
  71. data/vendor/assets/stylesheets/highlight_js/zenburn.css +115 -0
  72. metadata +129 -0
@@ -0,0 +1,432 @@
1
+ /*
2
+ Language: Apache
3
+ Author: Ruslan Keba <rukeba@gmail.com>
4
+ Website: http://rukeba.com/
5
+ Description: language definition for Apache configuration files (httpd.conf & .htaccess)
6
+ Version: 1.1
7
+ Date: 2008-12-27
8
+ */
9
+
10
+ hljs.LANGUAGES.apache = function(){
11
+ var NUMBER = {className: 'number', begin: '[\\$%]\\d+'};
12
+ var CBRACKET = {
13
+ className: 'cbracket',
14
+ begin: '[\\$%]\\{', end: '\\}'
15
+ };
16
+ CBRACKET.contains = [CBRACKET, NUMBER];
17
+ return {
18
+ case_insensitive: true,
19
+ defaultMode: {
20
+ keywords: {
21
+ 'keyword': {
22
+ 'acceptfilter': 1,
23
+ 'acceptmutex': 1,
24
+ 'acceptpathinfo': 1,
25
+ 'accessfilename': 1,
26
+ 'action': 1,
27
+ 'addalt': 1,
28
+ 'addaltbyencoding': 1,
29
+ 'addaltbytype': 1,
30
+ 'addcharset': 1,
31
+ 'adddefaultcharset': 1,
32
+ 'adddescription': 1,
33
+ 'addencoding': 1,
34
+ 'addhandler': 1,
35
+ 'addicon': 1,
36
+ 'addiconbyencoding': 1,
37
+ 'addiconbytype': 1,
38
+ 'addinputfilter': 1,
39
+ 'addlanguage': 1,
40
+ 'addmoduleinfo': 1,
41
+ 'addoutputfilter': 1,
42
+ 'addoutputfilterbytype': 1,
43
+ 'addtype': 1,
44
+ 'alias': 1,
45
+ 'aliasmatch': 1,
46
+ 'allow': 1,
47
+ 'allowconnect': 1,
48
+ 'allowencodedslashes': 1,
49
+ 'allowoverride': 1,
50
+ 'anonymous': 1,
51
+ 'anonymous_logemail': 1,
52
+ 'anonymous_mustgiveemail': 1,
53
+ 'anonymous_nouserid': 1,
54
+ 'anonymous_verifyemail': 1,
55
+ 'authbasicauthoritative': 1,
56
+ 'authbasicprovider': 1,
57
+ 'authdbduserpwquery': 1,
58
+ 'authdbduserrealmquery': 1,
59
+ 'authdbmgroupfile': 1,
60
+ 'authdbmtype': 1,
61
+ 'authdbmuserfile': 1,
62
+ 'authdefaultauthoritative': 1,
63
+ 'authdigestalgorithm': 1,
64
+ 'authdigestdomain': 1,
65
+ 'authdigestnccheck': 1,
66
+ 'authdigestnonceformat': 1,
67
+ 'authdigestnoncelifetime': 1,
68
+ 'authdigestprovider': 1,
69
+ 'authdigestqop': 1,
70
+ 'authdigestshmemsize': 1,
71
+ 'authgroupfile': 1,
72
+ 'authldapbinddn': 1,
73
+ 'authldapbindpassword': 1,
74
+ 'authldapcharsetconfig': 1,
75
+ 'authldapcomparednonserver': 1,
76
+ 'authldapdereferencealiases': 1,
77
+ 'authldapgroupattribute': 1,
78
+ 'authldapgroupattributeisdn': 1,
79
+ 'authldapremoteuserattribute': 1,
80
+ 'authldapremoteuserisdn': 1,
81
+ 'authldapurl': 1,
82
+ 'authname': 1,
83
+ 'authnprovideralias': 1,
84
+ 'authtype': 1,
85
+ 'authuserfile': 1,
86
+ 'authzdbmauthoritative': 1,
87
+ 'authzdbmtype': 1,
88
+ 'authzdefaultauthoritative': 1,
89
+ 'authzgroupfileauthoritative': 1,
90
+ 'authzldapauthoritative': 1,
91
+ 'authzownerauthoritative': 1,
92
+ 'authzuserauthoritative': 1,
93
+ 'balancermember': 1,
94
+ 'browsermatch': 1,
95
+ 'browsermatchnocase': 1,
96
+ 'bufferedlogs': 1,
97
+ 'cachedefaultexpire': 1,
98
+ 'cachedirlength': 1,
99
+ 'cachedirlevels': 1,
100
+ 'cachedisable': 1,
101
+ 'cacheenable': 1,
102
+ 'cachefile': 1,
103
+ 'cacheignorecachecontrol': 1,
104
+ 'cacheignoreheaders': 1,
105
+ 'cacheignorenolastmod': 1,
106
+ 'cacheignorequerystring': 1,
107
+ 'cachelastmodifiedfactor': 1,
108
+ 'cachemaxexpire': 1,
109
+ 'cachemaxfilesize': 1,
110
+ 'cacheminfilesize': 1,
111
+ 'cachenegotiateddocs': 1,
112
+ 'cacheroot': 1,
113
+ 'cachestorenostore': 1,
114
+ 'cachestoreprivate': 1,
115
+ 'cgimapextension': 1,
116
+ 'charsetdefault': 1,
117
+ 'charsetoptions': 1,
118
+ 'charsetsourceenc': 1,
119
+ 'checkcaseonly': 1,
120
+ 'checkspelling': 1,
121
+ 'chrootdir': 1,
122
+ 'contentdigest': 1,
123
+ 'cookiedomain': 1,
124
+ 'cookieexpires': 1,
125
+ 'cookielog': 1,
126
+ 'cookiename': 1,
127
+ 'cookiestyle': 1,
128
+ 'cookietracking': 1,
129
+ 'coredumpdirectory': 1,
130
+ 'customlog': 1,
131
+ 'dav': 1,
132
+ 'davdepthinfinity': 1,
133
+ 'davgenericlockdb': 1,
134
+ 'davlockdb': 1,
135
+ 'davmintimeout': 1,
136
+ 'dbdexptime': 1,
137
+ 'dbdkeep': 1,
138
+ 'dbdmax': 1,
139
+ 'dbdmin': 1,
140
+ 'dbdparams': 1,
141
+ 'dbdpersist': 1,
142
+ 'dbdpreparesql': 1,
143
+ 'dbdriver': 1,
144
+ 'defaulticon': 1,
145
+ 'defaultlanguage': 1,
146
+ 'defaulttype': 1,
147
+ 'deflatebuffersize': 1,
148
+ 'deflatecompressionlevel': 1,
149
+ 'deflatefilternote': 1,
150
+ 'deflatememlevel': 1,
151
+ 'deflatewindowsize': 1,
152
+ 'deny': 1,
153
+ 'directoryindex': 1,
154
+ 'directorymatch': 1,
155
+ 'directoryslash': 1,
156
+ 'documentroot': 1,
157
+ 'dumpioinput': 1,
158
+ 'dumpiologlevel': 1,
159
+ 'dumpiooutput': 1,
160
+ 'enableexceptionhook': 1,
161
+ 'enablemmap': 1,
162
+ 'enablesendfile': 1,
163
+ 'errordocument': 1,
164
+ 'errorlog': 1,
165
+ 'example': 1,
166
+ 'expiresactive': 1,
167
+ 'expiresbytype': 1,
168
+ 'expiresdefault': 1,
169
+ 'extendedstatus': 1,
170
+ 'extfilterdefine': 1,
171
+ 'extfilteroptions': 1,
172
+ 'fileetag': 1,
173
+ 'filterchain': 1,
174
+ 'filterdeclare': 1,
175
+ 'filterprotocol': 1,
176
+ 'filterprovider': 1,
177
+ 'filtertrace': 1,
178
+ 'forcelanguagepriority': 1,
179
+ 'forcetype': 1,
180
+ 'forensiclog': 1,
181
+ 'gracefulshutdowntimeout': 1,
182
+ 'group': 1,
183
+ 'header': 1,
184
+ 'headername': 1,
185
+ 'hostnamelookups': 1,
186
+ 'identitycheck': 1,
187
+ 'identitychecktimeout': 1,
188
+ 'imapbase': 1,
189
+ 'imapdefault': 1,
190
+ 'imapmenu': 1,
191
+ 'include': 1,
192
+ 'indexheadinsert': 1,
193
+ 'indexignore': 1,
194
+ 'indexoptions': 1,
195
+ 'indexorderdefault': 1,
196
+ 'indexstylesheet': 1,
197
+ 'isapiappendlogtoerrors': 1,
198
+ 'isapiappendlogtoquery': 1,
199
+ 'isapicachefile': 1,
200
+ 'isapifakeasync': 1,
201
+ 'isapilognotsupported': 1,
202
+ 'isapireadaheadbuffer': 1,
203
+ 'keepalive': 1,
204
+ 'keepalivetimeout': 1,
205
+ 'languagepriority': 1,
206
+ 'ldapcacheentries': 1,
207
+ 'ldapcachettl': 1,
208
+ 'ldapconnectiontimeout': 1,
209
+ 'ldapopcacheentries': 1,
210
+ 'ldapopcachettl': 1,
211
+ 'ldapsharedcachefile': 1,
212
+ 'ldapsharedcachesize': 1,
213
+ 'ldaptrustedclientcert': 1,
214
+ 'ldaptrustedglobalcert': 1,
215
+ 'ldaptrustedmode': 1,
216
+ 'ldapverifyservercert': 1,
217
+ 'limitinternalrecursion': 1,
218
+ 'limitrequestbody': 1,
219
+ 'limitrequestfields': 1,
220
+ 'limitrequestfieldsize': 1,
221
+ 'limitrequestline': 1,
222
+ 'limitxmlrequestbody': 1,
223
+ 'listen': 1,
224
+ 'listenbacklog': 1,
225
+ 'loadfile': 1,
226
+ 'loadmodule': 1,
227
+ 'lockfile': 1,
228
+ 'logformat': 1,
229
+ 'loglevel': 1,
230
+ 'maxclients': 1,
231
+ 'maxkeepaliverequests': 1,
232
+ 'maxmemfree': 1,
233
+ 'maxrequestsperchild': 1,
234
+ 'maxrequestsperthread': 1,
235
+ 'maxspareservers': 1,
236
+ 'maxsparethreads': 1,
237
+ 'maxthreads': 1,
238
+ 'mcachemaxobjectcount': 1,
239
+ 'mcachemaxobjectsize': 1,
240
+ 'mcachemaxstreamingbuffer': 1,
241
+ 'mcacheminobjectsize': 1,
242
+ 'mcacheremovalalgorithm': 1,
243
+ 'mcachesize': 1,
244
+ 'metadir': 1,
245
+ 'metafiles': 1,
246
+ 'metasuffix': 1,
247
+ 'mimemagicfile': 1,
248
+ 'minspareservers': 1,
249
+ 'minsparethreads': 1,
250
+ 'mmapfile': 1,
251
+ 'mod_gzip_on': 1,
252
+ 'mod_gzip_add_header_count': 1,
253
+ 'mod_gzip_keep_workfiles': 1,
254
+ 'mod_gzip_dechunk': 1,
255
+ 'mod_gzip_min_http': 1,
256
+ 'mod_gzip_minimum_file_size': 1,
257
+ 'mod_gzip_maximum_file_size': 1,
258
+ 'mod_gzip_maximum_inmem_size': 1,
259
+ 'mod_gzip_temp_dir': 1,
260
+ 'mod_gzip_item_include': 1,
261
+ 'mod_gzip_item_exclude': 1,
262
+ 'mod_gzip_command_version': 1,
263
+ 'mod_gzip_can_negotiate': 1,
264
+ 'mod_gzip_handle_methods': 1,
265
+ 'mod_gzip_static_suffix': 1,
266
+ 'mod_gzip_send_vary': 1,
267
+ 'mod_gzip_update_static': 1,
268
+ 'modmimeusepathinfo': 1,
269
+ 'multiviewsmatch': 1,
270
+ 'namevirtualhost': 1,
271
+ 'noproxy': 1,
272
+ 'nwssltrustedcerts': 1,
273
+ 'nwsslupgradeable': 1,
274
+ 'options': 1,
275
+ 'order': 1,
276
+ 'passenv': 1,
277
+ 'pidfile': 1,
278
+ 'protocolecho': 1,
279
+ 'proxybadheader': 1,
280
+ 'proxyblock': 1,
281
+ 'proxydomain': 1,
282
+ 'proxyerroroverride': 1,
283
+ 'proxyftpdircharset': 1,
284
+ 'proxyiobuffersize': 1,
285
+ 'proxymaxforwards': 1,
286
+ 'proxypass': 1,
287
+ 'proxypassinterpolateenv': 1,
288
+ 'proxypassmatch': 1,
289
+ 'proxypassreverse': 1,
290
+ 'proxypassreversecookiedomain': 1,
291
+ 'proxypassreversecookiepath': 1,
292
+ 'proxypreservehost': 1,
293
+ 'proxyreceivebuffersize': 1,
294
+ 'proxyremote': 1,
295
+ 'proxyremotematch': 1,
296
+ 'proxyrequests': 1,
297
+ 'proxyset': 1,
298
+ 'proxystatus': 1,
299
+ 'proxytimeout': 1,
300
+ 'proxyvia': 1,
301
+ 'readmename': 1,
302
+ 'receivebuffersize': 1,
303
+ 'redirect': 1,
304
+ 'redirectmatch': 1,
305
+ 'redirectpermanent': 1,
306
+ 'redirecttemp': 1,
307
+ 'removecharset': 1,
308
+ 'removeencoding': 1,
309
+ 'removehandler': 1,
310
+ 'removeinputfilter': 1,
311
+ 'removelanguage': 1,
312
+ 'removeoutputfilter': 1,
313
+ 'removetype': 1,
314
+ 'requestheader': 1,
315
+ 'require': 2,
316
+ 'rewritebase': 1,
317
+ 'rewritecond': 10,
318
+ 'rewriteengine': 1,
319
+ 'rewritelock': 1,
320
+ 'rewritelog': 1,
321
+ 'rewriteloglevel': 1,
322
+ 'rewritemap': 1,
323
+ 'rewriteoptions': 1,
324
+ 'rewriterule': 10,
325
+ 'rlimitcpu': 1,
326
+ 'rlimitmem': 1,
327
+ 'rlimitnproc': 1,
328
+ 'satisfy': 1,
329
+ 'scoreboardfile': 1,
330
+ 'script': 1,
331
+ 'scriptalias': 1,
332
+ 'scriptaliasmatch': 1,
333
+ 'scriptinterpretersource': 1,
334
+ 'scriptlog': 1,
335
+ 'scriptlogbuffer': 1,
336
+ 'scriptloglength': 1,
337
+ 'scriptsock': 1,
338
+ 'securelisten': 1,
339
+ 'seerequesttail': 1,
340
+ 'sendbuffersize': 1,
341
+ 'serveradmin': 1,
342
+ 'serveralias': 1,
343
+ 'serverlimit': 1,
344
+ 'servername': 1,
345
+ 'serverpath': 1,
346
+ 'serverroot': 1,
347
+ 'serversignature': 1,
348
+ 'servertokens': 1,
349
+ 'setenv': 1,
350
+ 'setenvif': 1,
351
+ 'setenvifnocase': 1,
352
+ 'sethandler': 1,
353
+ 'setinputfilter': 1,
354
+ 'setoutputfilter': 1,
355
+ 'ssienableaccess': 1,
356
+ 'ssiendtag': 1,
357
+ 'ssierrormsg': 1,
358
+ 'ssistarttag': 1,
359
+ 'ssitimeformat': 1,
360
+ 'ssiundefinedecho': 1,
361
+ 'sslcacertificatefile': 1,
362
+ 'sslcacertificatepath': 1,
363
+ 'sslcadnrequestfile': 1,
364
+ 'sslcadnrequestpath': 1,
365
+ 'sslcarevocationfile': 1,
366
+ 'sslcarevocationpath': 1,
367
+ 'sslcertificatechainfile': 1,
368
+ 'sslcertificatefile': 1,
369
+ 'sslcertificatekeyfile': 1,
370
+ 'sslciphersuite': 1,
371
+ 'sslcryptodevice': 1,
372
+ 'sslengine': 1,
373
+ 'sslhonorciperorder': 1,
374
+ 'sslmutex': 1,
375
+ 'ssloptions': 1,
376
+ 'sslpassphrasedialog': 1,
377
+ 'sslprotocol': 1,
378
+ 'sslproxycacertificatefile': 1,
379
+ 'sslproxycacertificatepath': 1,
380
+ 'sslproxycarevocationfile': 1,
381
+ 'sslproxycarevocationpath': 1,
382
+ 'sslproxyciphersuite': 1,
383
+ 'sslproxyengine': 1,
384
+ 'sslproxymachinecertificatefile': 1,
385
+ 'sslproxymachinecertificatepath': 1,
386
+ 'sslproxyprotocol': 1,
387
+ 'sslproxyverify': 1,
388
+ 'sslproxyverifydepth': 1,
389
+ 'sslrandomseed': 1,
390
+ 'sslrequire': 1,
391
+ 'sslrequiressl': 1,
392
+ 'sslsessioncache': 1,
393
+ 'sslsessioncachetimeout': 1,
394
+ 'sslusername': 1,
395
+ 'sslverifyclient': 1,
396
+ 'sslverifydepth': 1,
397
+ 'startservers': 1,
398
+ 'startthreads': 1,
399
+ 'substitute': 1,
400
+ 'suexecusergroup': 1,
401
+ 'threadlimit': 1,
402
+ 'threadsperchild': 1,
403
+ 'threadstacksize': 1,
404
+ 'timeout': 1,
405
+ 'traceenable': 1,
406
+ 'transferlog': 1,
407
+ 'typesconfig': 1,
408
+ 'unsetenv': 1,
409
+ 'usecanonicalname': 1,
410
+ 'usecanonicalphysicalport': 1,
411
+ 'user': 1,
412
+ 'userdir': 1,
413
+ 'virtualdocumentroot': 1,
414
+ 'virtualdocumentrootip': 1,
415
+ 'virtualscriptalias': 1,
416
+ 'virtualscriptaliasip': 1,
417
+ 'win32disableacceptex': 1,
418
+ 'xbithack': 1
419
+ },
420
+ 'literal': {'on': 1, 'off': 1}
421
+ },
422
+ contains: [
423
+ hljs.HASH_COMMENT_MODE,
424
+ {className: 'sqbracket', begin: '\\s\\[', end: '\\]$'},
425
+ CBRACKET,
426
+ NUMBER,
427
+ {className: 'tag', begin: '</?', end: '>'},
428
+ hljs.QUOTE_STRING_MODE
429
+ ]
430
+ }
431
+ };
432
+ }();
@@ -0,0 +1,75 @@
1
+ /*
2
+ Language: AVR Assembler
3
+ Author: Vladimir Ermakov <vooon341@gmail.com>
4
+ */
5
+
6
+ hljs.LANGUAGES.avrasm =
7
+ {
8
+ case_insensitive: true,
9
+ defaultMode: {
10
+ keywords: {
11
+ 'keyword': {
12
+ /* mnemonic */
13
+ 'adc': 1, 'add': 1 , 'adiw': 1 , 'and': 1 , 'andi': 1 , 'asr': 1 , 'bclr': 1 , 'bld': 1 , 'brbc': 1 , 'brbs': 1 , 'brcc': 1 ,
14
+ 'brcs': 1, 'break': 1, 'breq': 1, 'brge': 1, 'brhc': 1, 'brhs': 1, 'brid': 1, 'brie': 1, 'brlo': 1, 'brlt': 1, 'brmi': 1,
15
+ 'brne': 1, 'brpl': 1, 'brsh': 1, 'brtc': 1, 'brts': 1, 'brvc': 1, 'brvs': 1, 'bset': 1, 'bst': 1, 'call': 1, 'cbi': 1,
16
+ 'cbr': 1, 'clc': 1, 'clh': 1, 'cli': 1, 'cln': 1, 'clr': 1, 'cls': 1, 'clt': 1, 'clv': 1, 'clz': 1, 'com': 1, 'cp': 1,
17
+ 'cpc': 1, 'cpi': 1, 'cpse': 1, 'dec': 1, 'eicall': 1, 'eijmp': 1, 'elpm': 1, 'eor': 1, 'fmul': 1, 'fmuls': 1, 'fmulsu': 1,
18
+ 'icall': 1, 'ijmp': 1, 'in': 1, 'inc': 1, 'jmp': 1, 'ld': 1, 'ldd': 1, 'ldi': 1, 'lds': 1, 'lpm': 1, 'lsl': 1, 'lsr': 1,
19
+ 'mov': 1, 'movw': 1, 'mul': 1, 'muls': 1, 'mulsu': 1, 'neg': 1, 'nop': 1, 'or': 1, 'ori': 1, 'out': 1, 'pop': 1, 'push': 1,
20
+ 'rcall': 1, 'ret': 1, 'reti': 1, 'rjmp': 1, 'rol': 1, 'ror': 1, 'sbc': 1, 'sbr': 1, 'sbrc': 1, 'sbrs': 1, 'sec': 1, 'seh': 1,
21
+ 'sbi': 1, 'sbci': 1, 'sbic': 1, 'sbis': 1, 'sbiw': 1, 'sei': 1, 'sen': 1, 'ser': 1, 'ses': 1, 'set': 1, 'sev': 1, 'sez': 1,
22
+ 'sleep': 1, 'spm': 1, 'st': 1, 'std': 1, 'sts': 1, 'sub': 1, 'subi': 1, 'swap': 1, 'tst': 1, 'wdr': 1
23
+ },
24
+ 'built_in': {
25
+ /* general purpose registers */
26
+ 'r0': 1, 'r1': 1, 'r2': 1, 'r3': 1, 'r4': 1, 'r5': 1, 'r6': 1, 'r7': 1, 'r8': 1, 'r9': 1, 'r10': 1, 'r11': 1, 'r12': 1,
27
+ 'r13': 1, 'r14': 1, 'r15': 1, 'r16': 1, 'r17': 1, 'r18': 1, 'r19': 1, 'r20': 1, 'r21': 1, 'r22': 1, 'r23': 1, 'r24': 1,
28
+ 'r25': 1, 'r26': 1, 'r27': 1, 'r28': 1, 'r29': 1, 'r30': 1, 'r31': 1,
29
+ 'x': 1 /* R27:R26 */, 'xh': 1 /* R27 */, 'xl': 1 /* R26 */,
30
+ 'y': 1 /* R29:R28 */, 'yh': 1 /* R29 */, 'yl': 1 /* R28 */,
31
+ 'z': 1 /* R31:R30 */, 'zh': 1 /* R31 */, 'zl': 1 /* R30 */,
32
+ /* IO Registers (ATMega128) */
33
+ 'ucsr1c': 1, 'udr1': 1, 'ucsr1a': 1, 'ucsr1b': 1, 'ubrr1l': 1, 'ubrr1h': 1, 'ucsr0c': 1, 'ubrr0h': 1, 'tccr3c': 1,
34
+ 'tccr3a': 1, 'tccr3b': 1, 'tcnt3h': 1, 'tcnt3l': 1, 'ocr3ah': 1, 'ocr3al': 1, 'ocr3bh': 1, 'ocr3bl': 1, 'ocr3ch': 1,
35
+ 'ocr3cl': 1, 'icr3h': 1, 'icr3l': 1, 'etimsk': 1, 'etifr': 1, 'tccr1c': 1, 'ocr1ch': 1, 'ocr1cl': 1, 'twcr': 1,
36
+ 'twdr': 1, 'twar': 1, 'twsr': 1, 'twbr': 1, 'osccal': 1, 'xmcra': 1, 'xmcrb': 1, 'eicra': 1, 'spmcsr': 1, 'spmcr': 1,
37
+ 'portg': 1, 'ddrg': 1, 'ping': 1, 'portf': 1, 'ddrf': 1, 'sreg': 1, 'sph': 1, 'spl': 1, 'xdiv': 1, 'rampz': 1,
38
+ 'eicrb': 1, 'eimsk': 1, 'gimsk': 1, 'gicr': 1, 'eifr': 1, 'gifr': 1, 'timsk': 1, 'tifr': 1, 'mcucr': 1,
39
+ 'mcucsr': 1, 'tccr0': 1, 'tcnt0': 1, 'ocr0': 1, 'assr': 1, 'tccr1a': 1, 'tccr1b': 1, 'tcnt1h': 1, 'tcnt1l': 1,
40
+ 'ocr1ah': 1, 'ocr1al': 1, 'ocr1bh': 1, 'ocr1bl': 1, 'icr1h': 1, 'icr1l': 1, 'tccr2': 1, 'tcnt2': 1, 'ocr2': 1,
41
+ 'ocdr': 1, 'wdtcr': 1, 'sfior': 1, 'eearh': 1, 'eearl': 1, 'eedr': 1, 'eecr': 1, 'porta': 1, 'ddra': 1, 'pina': 1,
42
+ 'portb': 1, 'ddrb': 1, 'pinb': 1, 'portc': 1, 'ddrc': 1, 'pinc': 1, 'portd': 1, 'ddrd': 1, 'pind': 1, 'spdr': 1,
43
+ 'spsr': 1, 'spcr': 1, 'udr0': 1, 'ucsr0a': 1, 'ucsr0b': 1, 'ubrr0l': 1, 'acsr': 1, 'admux': 1, 'adcsr': 1, 'adch': 1,
44
+ 'adcl': 1, 'porte': 1, 'ddre': 1, 'pine': 1, 'pinf': 1
45
+ }
46
+ },
47
+ contains: [
48
+ hljs.C_BLOCK_COMMENT_MODE,
49
+ {className: 'comment', begin: ';', end: '$'},
50
+ hljs.C_NUMBER_MODE,
51
+ /*{ // Hex: 0x00, $00; Oct: 0o00; Bin: 0b00000000; Dec: 0
52
+ // пока что-то не получается :(, буду использовать сишную моду.
53
+ className: 'number',
54
+ begin: '((0[xX]|\$)[A-Fa-f0-9]+|0[oO][0-7]+|0[bB][0-1]+|\\d+)'
55
+ }*/
56
+ hljs.QUOTE_STRING_MODE,
57
+ {
58
+ className: 'string',
59
+ begin: '\'', end: '[^\\\\]\'',
60
+ illegal: '[^\\\\][^\']'
61
+ },
62
+ {className: 'label', begin: '^[A-Za-z0-9_.$]+:'},
63
+ {className: 'preprocessor', begin: '#', end: '$'},
64
+ { // директивы «.include» «.macro» и т.д.
65
+ className: 'preprocessor',
66
+ begin: '\\.[a-zA-Z]+'
67
+ },
68
+ { // подстановка в «.macro»
69
+ className: 'localvars',
70
+ begin: '@[0-9]+'
71
+ }
72
+ ]
73
+ }
74
+ };
75
+
@@ -0,0 +1,43 @@
1
+ /*
2
+ Language: Axapta
3
+ Author: Dmitri Roudakov <dmitri@roudakov.ru>
4
+ */
5
+
6
+ hljs.LANGUAGES.axapta = {
7
+ defaultMode: {
8
+ keywords: {'false': 1, 'int': 1, 'abstract': 1, 'private': 1, 'char': 1, 'interface': 1, 'boolean': 1, 'static': 1, 'null': 1, 'if': 1, 'for': 1, 'true': 1, 'while': 1, 'long': 1, 'throw': 1, 'finally': 1, 'protected': 1, 'extends': 1, 'final': 1, 'implements': 1, 'return': 1, 'void': 1, 'enum': 1, 'else': 1, 'break': 1, 'new': 1, 'catch': 1, 'byte': 1, 'super': 1, 'class': 1, 'case': 1, 'short': 1, 'default': 1, 'double': 1, 'public': 1, 'try': 1, 'this': 1, 'switch': 1, 'continue': 1,
9
+ 'reverse':1, 'firstfast':1,'firstonly':1,'forupdate':1,'nofetch':1, 'sum':1, 'avg':1, 'minof':1, 'maxof':1, 'count':1, 'order':1, 'group':1, 'by':1, 'asc':1, 'desc':1, 'index':1, 'hint':1, 'like':1,
10
+ 'dispaly':1, 'edit':1, 'client':1, 'server':1, 'ttsbegin':1, 'ttscommit':1,
11
+ 'str':1, 'real':1, 'date':1, 'container':1, 'anytype':1, 'common':1, 'div':1,'mod':1
12
+ },
13
+ contains: [
14
+ hljs.C_LINE_COMMENT_MODE,
15
+ hljs.C_BLOCK_COMMENT_MODE,
16
+ hljs.APOS_STRING_MODE,
17
+ hljs.QUOTE_STRING_MODE,
18
+ hljs.C_NUMBER_MODE,
19
+ {
20
+ className: 'preprocessor',
21
+ begin: '#', end: '$'
22
+ },
23
+ {
24
+ className: 'class',
25
+ begin: '(class |interface )', end: '{',
26
+ illegal: ':',
27
+ keywords: {'class': 1, 'interface': 1},
28
+ contains: [
29
+ {
30
+ className: 'inheritance',
31
+ begin: '(implements|extends)',
32
+ keywords: {'extends': 1, 'implements': 1},
33
+ relevance: 10
34
+ },
35
+ {
36
+ className: 'title',
37
+ begin: hljs.UNDERSCORE_IDENT_RE
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
43
+ };
@@ -0,0 +1,56 @@
1
+ /*
2
+ Language: Bash
3
+ Author: vah <vahtenberg@gmail.com>
4
+ */
5
+
6
+ hljs.LANGUAGES.bash = function(){
7
+ var BASH_LITERAL = {'true' : 1, 'false' : 1};
8
+ var VAR1 = {
9
+ className: 'variable',
10
+ begin: '\\$([a-zA-Z0-9_]+)\\b'
11
+ };
12
+ var VAR2 = {
13
+ className: 'variable',
14
+ begin: '\\$\\{(([^}])|(\\\\}))+\\}',
15
+ contains: [hljs.C_NUMBER_MODE]
16
+ };
17
+ var STRING = {
18
+ className: 'string',
19
+ begin: '"', end: '"',
20
+ illegal: '\\n',
21
+ contains: [hljs.BACKSLASH_ESCAPE, VAR1, VAR2],
22
+ relevance: 0
23
+ };
24
+ var TEST_CONDITION = {
25
+ className: 'test_condition',
26
+ begin: '', end: '',
27
+ contains: [STRING, VAR1, VAR2, hljs.C_NUMBER_MODE],
28
+ keywords: {
29
+ 'literal': BASH_LITERAL
30
+ },
31
+ relevance: 0
32
+ };
33
+
34
+ return {
35
+ defaultMode: {
36
+ keywords: {
37
+ 'keyword': {'if' : 1, 'then' : 1, 'else' : 1, 'fi' : 1, 'for' : 1, 'break' : 1, 'continue' : 1, 'while' : 1, 'in' : 1, 'do' : 1, 'done' : 1, 'echo' : 1, 'exit' : 1, 'return' : 1, 'set' : 1, 'declare' : 1},
38
+ 'literal': BASH_LITERAL
39
+ },
40
+ contains: [
41
+ {
42
+ className: 'shebang',
43
+ begin: '(#!\\/bin\\/bash)|(#!\\/bin\\/sh)',
44
+ relevance: 10
45
+ },
46
+ hljs.HASH_COMMENT_MODE,
47
+ hljs.C_NUMBER_MODE,
48
+ STRING,
49
+ VAR1,
50
+ VAR2,
51
+ hljs.inherit(TEST_CONDITION, {begin: '\\[ ', end: ' \\]', relevance: 0}),
52
+ hljs.inherit(TEST_CONDITION, {begin: '\\[\\[ ', end: ' \\]\\]'})
53
+ ]
54
+ }
55
+ };
56
+ }();
@@ -0,0 +1,24 @@
1
+ /*
2
+ Language: CMake
3
+ Description: CMake is an open-source cross-platform system for build automation.
4
+ Author: Igor Kalnitsky <igor.kalnitsky@gmail.com>
5
+ Website: http://kalnitsky.org.ua/
6
+ */
7
+
8
+ hljs.LANGUAGES.cmake = {
9
+ case_insensitive: true,
10
+ defaultMode: {
11
+ keywords: {
12
+ 'add_custom_command': 2, 'add_custom_target': 2, 'add_definitions': 2, 'add_dependencies': 2, 'add_executable': 2, 'add_library': 2, 'add_subdirectory': 2, 'add_executable': 2, 'add_library': 2, 'add_subdirectory': 2, 'add_test': 2, 'aux_source_directory': 2, 'break': 1, 'build_command': 2, 'cmake_minimum_required': 3, 'cmake_policy': 3, 'configure_file': 1, 'create_test_sourcelist': 1, 'define_property': 1, 'else': 1, 'elseif': 1, 'enable_language': 2, 'enable_testing': 2, 'endforeach': 1, 'endfunction': 1, 'endif': 1, 'endmacro': 1, 'endwhile': 1, 'execute_process': 2, 'export': 1, 'find_file': 1, 'find_library': 2, 'find_package': 2, 'find_path': 1, 'find_program': 1, 'fltk_wrap_ui': 2, 'foreach': 1, 'function': 1, 'get_cmake_property': 3, 'get_directory_property': 1, 'get_filename_component': 1, 'get_property': 1, 'get_source_file_property': 1, 'get_target_property': 1, 'get_test_property': 1, 'if': 1, 'include': 1, 'include_directories': 2, 'include_external_msproject': 1, 'include_regular_expression': 2, 'install': 1, 'link_directories': 1, 'load_cache': 1, 'load_command': 1, 'macro': 1, 'mark_as_advanced': 1, 'message': 1, 'option': 1, 'output_required_files': 1, 'project': 1, 'qt_wrap_cpp': 2, 'qt_wrap_ui': 2, 'remove_definitions': 2, 'return': 1, 'separate_arguments': 1, 'set': 1, 'set_directory_properties': 1, 'set_property': 1, 'set_source_files_properties': 1, 'set_target_properties': 1, 'set_tests_properties': 1, 'site_name': 1, 'source_group': 1, 'string': 1, 'target_link_libraries': 2, 'try_compile': 2, 'try_run': 2, 'unset': 1, 'variable_watch': 2, 'while': 1, 'build_name': 1, 'exec_program': 1, 'export_library_dependencies': 1, 'install_files': 1, 'install_programs': 1, 'install_targets': 1, 'link_libraries': 1, 'make_directory': 1, 'remove': 1, 'subdir_depends': 1, 'subdirs': 1, 'use_mangled_mesa': 1, 'utility_source': 1, 'variable_requires': 1, 'write_file': 1 },
13
+
14
+ contains: [
15
+ {
16
+ className: 'envvar',
17
+ begin: '\\${', end: '}'
18
+ },
19
+ hljs.HASH_COMMENT_MODE,
20
+ hljs.QUOTE_STRING_MODE,
21
+ hljs.NUMBER_MODE
22
+ ]
23
+ }
24
+ };