patternfly-sass 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +1 -1
  3. data/.gitignore +2 -4
  4. data/.travis.yml +6 -3
  5. data/README.md +187 -26
  6. data/Rakefile +21 -17
  7. data/assets/stylesheets/patternfly/_variables.scss +206 -206
  8. data/bower.json +11 -12
  9. data/lib/patternfly-sass/version.rb +2 -2
  10. data/patternfly-sass.gemspec +1 -1
  11. data/{tests → spec}/capture.js +0 -0
  12. data/spec/compare_spec.rb +15 -5
  13. data/{tests/patternfly → spec/html}/accordions.html +0 -0
  14. data/{tests/patternfly → spec/html}/alerts.html +0 -0
  15. data/{tests/patternfly → spec/html}/badges.html +0 -0
  16. data/{tests/patternfly → spec/html}/basic.html +0 -0
  17. data/{tests/patternfly → spec/html}/blank-slate.html +0 -0
  18. data/{tests/patternfly → spec/html}/bootstrap-combobox.html +0 -0
  19. data/{tests/patternfly → spec/html}/bootstrap-select.html +0 -0
  20. data/{tests/patternfly → spec/html}/bootstrap-treeview-2.html +0 -0
  21. data/{tests/patternfly → spec/html}/bootstrap-treeview.html +0 -0
  22. data/{tests/patternfly → spec/html}/breadcrumbs.html +0 -0
  23. data/{tests/patternfly → spec/html}/buttons.html +0 -0
  24. data/{tests/patternfly → spec/html}/code.html +0 -0
  25. data/{tests/patternfly → spec/html}/dashboard.html +0 -0
  26. data/{tests/patternfly → spec/html}/datatables-columns.html +0 -0
  27. data/{tests/patternfly → spec/html}/datatables.html +0 -0
  28. data/{tests/patternfly → spec/html}/dist/css/patternfly.css +0 -0
  29. data/{tests/patternfly → spec/html}/dist/css/patternfly.min.css +0 -0
  30. data/{tests/patternfly → spec/html}/dist/css/styles.css +0 -0
  31. data/{tests/patternfly → spec/html}/dist/css/styles.min.css +0 -0
  32. data/{tests/patternfly → spec/html}/dropdowns.html +0 -0
  33. data/{tests/patternfly → spec/html}/form.html +0 -0
  34. data/{tests/patternfly → spec/html}/forms.html +0 -0
  35. data/{tests/patternfly → spec/html}/icons.html +0 -0
  36. data/{tests/patternfly → spec/html}/img/dashboard-1.png +0 -0
  37. data/{tests/patternfly → spec/html}/img/dashboard-2.png +0 -0
  38. data/{tests/patternfly → spec/html}/img/dashboard-3.png +0 -0
  39. data/{tests/patternfly → spec/html}/img/dashboard-4.png +0 -0
  40. data/{tests/patternfly → spec/html}/index.html +0 -0
  41. data/{tests/patternfly → spec/html}/infotip.html +0 -0
  42. data/{tests/patternfly → spec/html}/labels.html +0 -0
  43. data/{tests/patternfly → spec/html}/list-group.html +0 -0
  44. data/{tests/patternfly → spec/html}/login.html +0 -0
  45. data/{tests/index.html → spec/html/main.html} +0 -0
  46. data/{tests/patternfly → spec/html}/modals.html +0 -0
  47. data/{tests/patternfly → spec/html}/navbar.html +0 -0
  48. data/{tests/patternfly → spec/html}/pagination.html +0 -0
  49. data/{tests/patternfly → spec/html}/panels.html +0 -0
  50. data/{tests/patternfly → spec/html}/popovers.html +0 -0
  51. data/{tests/patternfly → spec/html}/progress-bars.html +0 -0
  52. data/{tests/patternfly → spec/html}/search.html +0 -0
  53. data/{tests/patternfly → spec/html}/spinner.html +0 -0
  54. data/{tests/patternfly → spec/html}/tab.html +0 -0
  55. data/{tests/patternfly → spec/html}/tables.html +0 -0
  56. data/{tests/patternfly → spec/html}/tabs.html +0 -0
  57. data/{tests/patternfly → spec/html}/tests.css +0 -0
  58. data/{tests/patternfly → spec/html}/tooltip.html +0 -0
  59. data/{tests/patternfly → spec/html}/typography-2.css +0 -0
  60. data/{tests/patternfly → spec/html}/typography-2.html +0 -0
  61. data/{tests/patternfly → spec/html}/typography.html +0 -0
  62. data/tasks/converter.rb +6 -9
  63. metadata +103 -626
  64. data/package.json +0 -28
  65. data/tests/components/bootstrap-combobox/.bower.json +0 -14
  66. data/tests/components/bootstrap-combobox/.gitignore +0 -1
  67. data/tests/components/bootstrap-combobox/README.md +0 -59
  68. data/tests/components/bootstrap-combobox/css/bootstrap-combobox.css +0 -42
  69. data/tests/components/bootstrap-combobox/js/bootstrap-combobox.js +0 -438
  70. data/tests/components/bootstrap-combobox/js/tests/index.html +0 -29
  71. data/tests/components/bootstrap-combobox/js/tests/unit/bootstrap-combobox.js +0 -323
  72. data/tests/components/bootstrap-combobox/js/tests/vendor/jquery.js +0 -9597
  73. data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.css +0 -244
  74. data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.js +0 -2152
  75. data/tests/components/bootstrap-combobox/less/combobox.less +0 -55
  76. data/tests/components/bootstrap-select/.bower.json +0 -38
  77. data/tests/components/bootstrap-select/CONTRIBUTING.md +0 -87
  78. data/tests/components/bootstrap-select/README.md +0 -61
  79. data/tests/components/bootstrap-select/bootstrap-select.css +0 -309
  80. data/tests/components/bootstrap-select/bootstrap-select.jquery.json +0 -29
  81. data/tests/components/bootstrap-select/bootstrap-select.js +0 -972
  82. data/tests/components/bootstrap-select/bootstrap-select.min.css +0 -7
  83. data/tests/components/bootstrap-select/bootstrap-select.min.js +0 -8
  84. data/tests/components/bootstrap-select/bower.json +0 -29
  85. data/tests/components/bootstrap-select/composer.json +0 -17
  86. data/tests/components/bootstrap-select/i18n/defaults-cs-CZ.js +0 -29
  87. data/tests/components/bootstrap-select/i18n/defaults-cz-CZ.min.js +0 -6
  88. data/tests/components/bootstrap-select/i18n/defaults-de_DE.js +0 -29
  89. data/tests/components/bootstrap-select/i18n/defaults-de_DE.min.js +0 -6
  90. data/tests/components/bootstrap-select/i18n/defaults-es-CL.js +0 -29
  91. data/tests/components/bootstrap-select/i18n/defaults-es-CL.min.js +0 -6
  92. data/tests/components/bootstrap-select/i18n/defaults-eu.js +0 -30
  93. data/tests/components/bootstrap-select/i18n/defaults-eu.min.js +0 -6
  94. data/tests/components/bootstrap-select/i18n/defaults-it_IT.js +0 -32
  95. data/tests/components/bootstrap-select/i18n/defaults-it_IT.min.js +0 -1
  96. data/tests/components/bootstrap-select/i18n/defaults-nl_NL.js +0 -32
  97. data/tests/components/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -7
  98. data/tests/components/bootstrap-select/i18n/defaults-pl_PL.js +0 -29
  99. data/tests/components/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -6
  100. data/tests/components/bootstrap-select/i18n/defaults-pt_BR.js +0 -33
  101. data/tests/components/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -7
  102. data/tests/components/bootstrap-select/i18n/defaults-ru-RU.js +0 -31
  103. data/tests/components/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -6
  104. data/tests/components/bootstrap-select/i18n/defaults-zh_CN.js +0 -30
  105. data/tests/components/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -6
  106. data/tests/components/bootstrap-select/package.json +0 -31
  107. data/tests/components/bootstrap-select/test.html +0 -62
  108. data/tests/components/bootstrap-treeview/.bower.json +0 -38
  109. data/tests/components/bootstrap-treeview/Gruntfile.js +0 -62
  110. data/tests/components/bootstrap-treeview/LICENSE +0 -202
  111. data/tests/components/bootstrap-treeview/README.md +0 -289
  112. data/tests/components/bootstrap-treeview/app.js +0 -29
  113. data/tests/components/bootstrap-treeview/bower.json +0 -29
  114. data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.css +0 -1
  115. data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.js +0 -1
  116. data/tests/components/bootstrap-treeview/package.json +0 -18
  117. data/tests/components/bootstrap-treeview/public/css/bootstrap-treeview.css +0 -37
  118. data/tests/components/bootstrap-treeview/public/example-dom.html +0 -59
  119. data/tests/components/bootstrap-treeview/public/index.html +0 -333
  120. data/tests/components/bootstrap-treeview/public/js/bootstrap-treeview.js +0 -455
  121. data/tests/components/bootstrap-treeview/screenshot/default.PNG +0 -0
  122. data/tests/components/bootstrap-treeview/src/css/bootstrap-treeview.css +0 -37
  123. data/tests/components/bootstrap-treeview/src/js/bootstrap-treeview.js +0 -455
  124. data/tests/components/datatables-colreorder/.bower.json +0 -22
  125. data/tests/components/datatables-colreorder/License.txt +0 -20
  126. data/tests/components/datatables-colreorder/Readme.md +0 -39
  127. data/tests/components/datatables-colreorder/bower.json +0 -12
  128. data/tests/components/datatables-colreorder/css/dataTables.colReorder.css +0 -14
  129. data/tests/components/datatables-colreorder/examples/alt_insert.xml +0 -30
  130. data/tests/components/datatables-colreorder/examples/col_filter.xml +0 -38
  131. data/tests/components/datatables-colreorder/examples/colvis.xml +0 -26
  132. data/tests/components/datatables-colreorder/examples/fixedcolumns.xml +0 -43
  133. data/tests/components/datatables-colreorder/examples/fixedheader.xml +0 -27
  134. data/tests/components/datatables-colreorder/examples/index.xml +0 -19
  135. data/tests/components/datatables-colreorder/examples/jqueryui.xml +0 -27
  136. data/tests/components/datatables-colreorder/examples/new_init.xml +0 -23
  137. data/tests/components/datatables-colreorder/examples/predefined.xml +0 -30
  138. data/tests/components/datatables-colreorder/examples/realtime.xml +0 -30
  139. data/tests/components/datatables-colreorder/examples/reset.xml +0 -41
  140. data/tests/components/datatables-colreorder/examples/scrolling.xml +0 -27
  141. data/tests/components/datatables-colreorder/examples/server_side.xml +0 -38
  142. data/tests/components/datatables-colreorder/examples/simple.xml +0 -25
  143. data/tests/components/datatables-colreorder/examples/state_save.xml +0 -26
  144. data/tests/components/datatables-colreorder/images/.DS_Store +0 -0
  145. data/tests/components/datatables-colreorder/images/insert.png +0 -0
  146. data/tests/components/datatables-colreorder/js/dataTables.colReorder.js +0 -1372
  147. data/tests/components/datatables-colreorder/make.sh +0 -31
  148. data/tests/components/datatables-colvis/.bower.json +0 -22
  149. data/tests/components/datatables-colvis/License.txt +0 -20
  150. data/tests/components/datatables-colvis/README.md +0 -38
  151. data/tests/components/datatables-colvis/bower.json +0 -12
  152. data/tests/components/datatables-colvis/css/dataTables.colVis.css +0 -185
  153. data/tests/components/datatables-colvis/css/dataTables.colvis.jqueryui.css +0 -41
  154. data/tests/components/datatables-colvis/examples/.DS_Store +0 -0
  155. data/tests/components/datatables-colvis/examples/button_order.xml +0 -26
  156. data/tests/components/datatables-colvis/examples/exclude_columns.xml +0 -28
  157. data/tests/components/datatables-colvis/examples/group_columns.xml +0 -40
  158. data/tests/components/datatables-colvis/examples/index.xml +0 -18
  159. data/tests/components/datatables-colvis/examples/jqueryui.xml +0 -28
  160. data/tests/components/datatables-colvis/examples/mouseover.xml +0 -28
  161. data/tests/components/datatables-colvis/examples/new_init.xml +0 -26
  162. data/tests/components/datatables-colvis/examples/restore.xml +0 -33
  163. data/tests/components/datatables-colvis/examples/simple.xml +0 -25
  164. data/tests/components/datatables-colvis/examples/text.xml +0 -29
  165. data/tests/components/datatables-colvis/examples/title_callback.xml +0 -30
  166. data/tests/components/datatables-colvis/examples/two_tables.xml +0 -24
  167. data/tests/components/datatables-colvis/examples/two_tables_identical.xml +0 -35
  168. data/tests/components/datatables-colvis/js/dataTables.colVis.js +0 -1123
  169. data/tests/components/datatables-colvis/make.sh +0 -28
  170. data/tests/components/datatables/.bower.json +0 -42
  171. data/tests/components/datatables/Contributing.md +0 -18
  172. data/tests/components/datatables/Readme.md +0 -53
  173. data/tests/components/datatables/bower.json +0 -32
  174. data/tests/components/datatables/license.txt +0 -20
  175. data/tests/components/datatables/media/css/jquery.dataTables.css +0 -455
  176. data/tests/components/datatables/media/css/jquery.dataTables.min.css +0 -1
  177. data/tests/components/datatables/media/css/jquery.dataTables_themeroller.css +0 -416
  178. data/tests/components/datatables/media/images/Sorting icons.psd +0 -0
  179. data/tests/components/datatables/media/images/favicon.ico +0 -0
  180. data/tests/components/datatables/media/images/sort_asc.png +0 -0
  181. data/tests/components/datatables/media/images/sort_asc_disabled.png +0 -0
  182. data/tests/components/datatables/media/images/sort_both.png +0 -0
  183. data/tests/components/datatables/media/images/sort_desc.png +0 -0
  184. data/tests/components/datatables/media/images/sort_desc_disabled.png +0 -0
  185. data/tests/components/datatables/media/js/jquery.dataTables.js +0 -14951
  186. data/tests/components/datatables/media/js/jquery.dataTables.min.js +0 -160
  187. data/tests/components/datatables/media/js/jquery.js +0 -5
  188. data/tests/components/google-code-prettify/.bower.json +0 -26
  189. data/tests/components/google-code-prettify/CHANGES.html +0 -172
  190. data/tests/components/google-code-prettify/COPYING +0 -191
  191. data/tests/components/google-code-prettify/README-zh-Hans.html +0 -143
  192. data/tests/components/google-code-prettify/README.html +0 -233
  193. data/tests/components/google-code-prettify/README.md +0 -54
  194. data/tests/components/google-code-prettify/bin/prettify.min.css +0 -1
  195. data/tests/components/google-code-prettify/bin/prettify.min.js +0 -30
  196. data/tests/components/google-code-prettify/bin/run_prettify.min.js +0 -34
  197. data/tests/components/google-code-prettify/bower.json +0 -16
  198. data/tests/components/google-code-prettify/examples/quine.html +0 -55
  199. data/tests/components/google-code-prettify/src/lang-apollo.js +0 -51
  200. data/tests/components/google-code-prettify/src/lang-basic.js +0 -32
  201. data/tests/components/google-code-prettify/src/lang-clj.js +0 -64
  202. data/tests/components/google-code-prettify/src/lang-css.js +0 -159
  203. data/tests/components/google-code-prettify/src/lang-dart.js +0 -88
  204. data/tests/components/google-code-prettify/src/lang-erlang.js +0 -92
  205. data/tests/components/google-code-prettify/src/lang-go.js +0 -58
  206. data/tests/components/google-code-prettify/src/lang-hs.js +0 -101
  207. data/tests/components/google-code-prettify/src/lang-lisp.js +0 -94
  208. data/tests/components/google-code-prettify/src/lang-llvm.js +0 -61
  209. data/tests/components/google-code-prettify/src/lang-lua.js +0 -59
  210. data/tests/components/google-code-prettify/src/lang-matlab.js +0 -180
  211. data/tests/components/google-code-prettify/src/lang-ml.js +0 -56
  212. data/tests/components/google-code-prettify/src/lang-mumps.js +0 -139
  213. data/tests/components/google-code-prettify/src/lang-n.js +0 -65
  214. data/tests/components/google-code-prettify/src/lang-pascal.js +0 -32
  215. data/tests/components/google-code-prettify/src/lang-proto.js +0 -35
  216. data/tests/components/google-code-prettify/src/lang-r.js +0 -57
  217. data/tests/components/google-code-prettify/src/lang-rd.js +0 -47
  218. data/tests/components/google-code-prettify/src/lang-scala.js +0 -54
  219. data/tests/components/google-code-prettify/src/lang-sql.js +0 -58
  220. data/tests/components/google-code-prettify/src/lang-tcl.js +0 -62
  221. data/tests/components/google-code-prettify/src/lang-tex.js +0 -46
  222. data/tests/components/google-code-prettify/src/lang-vb.js +0 -66
  223. data/tests/components/google-code-prettify/src/lang-vhdl.js +0 -34
  224. data/tests/components/google-code-prettify/src/lang-wiki.js +0 -53
  225. data/tests/components/google-code-prettify/src/lang-xq.js +0 -67
  226. data/tests/components/google-code-prettify/src/lang-yaml.js +0 -27
  227. data/tests/components/google-code-prettify/src/prettify.css +0 -52
  228. data/tests/components/google-code-prettify/src/prettify.js +0 -1655
  229. data/tests/components/google-code-prettify/src/run_prettify.js +0 -1905
  230. data/tests/components/google-code-prettify/styles/demo.html +0 -61
  231. data/tests/components/google-code-prettify/styles/desert.css +0 -34
  232. data/tests/components/google-code-prettify/styles/doxy.css +0 -64
  233. data/tests/components/google-code-prettify/styles/index.html +0 -89
  234. data/tests/components/google-code-prettify/styles/sons-of-obsidian.css +0 -118
  235. data/tests/components/google-code-prettify/styles/sunburst.css +0 -51
  236. data/tests/components/jquery/.bower.json +0 -38
  237. data/tests/components/jquery/MIT-LICENSE.txt +0 -21
  238. data/tests/components/jquery/bower.json +0 -28
  239. data/tests/components/jquery/dist/jquery.js +0 -9210
  240. data/tests/components/jquery/dist/jquery.min.js +0 -5
  241. data/tests/components/jquery/dist/jquery.min.map +0 -1
  242. data/tests/components/jquery/src/ajax.js +0 -786
  243. data/tests/components/jquery/src/ajax/jsonp.js +0 -89
  244. data/tests/components/jquery/src/ajax/load.js +0 -75
  245. data/tests/components/jquery/src/ajax/parseJSON.js +0 -13
  246. data/tests/components/jquery/src/ajax/parseXML.js +0 -28
  247. data/tests/components/jquery/src/ajax/script.js +0 -64
  248. data/tests/components/jquery/src/ajax/var/nonce.js +0 -5
  249. data/tests/components/jquery/src/ajax/var/rquery.js +0 -3
  250. data/tests/components/jquery/src/ajax/xhr.js +0 -136
  251. data/tests/components/jquery/src/attributes.js +0 -11
  252. data/tests/components/jquery/src/attributes/attr.js +0 -141
  253. data/tests/components/jquery/src/attributes/classes.js +0 -158
  254. data/tests/components/jquery/src/attributes/prop.js +0 -94
  255. data/tests/components/jquery/src/attributes/support.js +0 -35
  256. data/tests/components/jquery/src/attributes/val.js +0 -161
  257. data/tests/components/jquery/src/callbacks.js +0 -205
  258. data/tests/components/jquery/src/core.js +0 -502
  259. data/tests/components/jquery/src/core/access.js +0 -60
  260. data/tests/components/jquery/src/core/init.js +0 -123
  261. data/tests/components/jquery/src/core/parseHTML.js +0 -39
  262. data/tests/components/jquery/src/core/ready.js +0 -97
  263. data/tests/components/jquery/src/core/var/rsingleTag.js +0 -4
  264. data/tests/components/jquery/src/css.js +0 -450
  265. data/tests/components/jquery/src/css/addGetHookIf.js +0 -22
  266. data/tests/components/jquery/src/css/curCSS.js +0 -57
  267. data/tests/components/jquery/src/css/defaultDisplay.js +0 -70
  268. data/tests/components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  269. data/tests/components/jquery/src/css/support.js +0 -96
  270. data/tests/components/jquery/src/css/swap.js +0 -28
  271. data/tests/components/jquery/src/css/var/cssExpand.js +0 -3
  272. data/tests/components/jquery/src/css/var/getStyles.js +0 -12
  273. data/tests/components/jquery/src/css/var/isHidden.js +0 -13
  274. data/tests/components/jquery/src/css/var/rmargin.js +0 -3
  275. data/tests/components/jquery/src/css/var/rnumnonpx.js +0 -5
  276. data/tests/components/jquery/src/data.js +0 -178
  277. data/tests/components/jquery/src/data/Data.js +0 -181
  278. data/tests/components/jquery/src/data/accepts.js +0 -20
  279. data/tests/components/jquery/src/data/var/data_priv.js +0 -5
  280. data/tests/components/jquery/src/data/var/data_user.js +0 -5
  281. data/tests/components/jquery/src/deferred.js +0 -149
  282. data/tests/components/jquery/src/deprecated.js +0 -13
  283. data/tests/components/jquery/src/dimensions.js +0 -50
  284. data/tests/components/jquery/src/effects.js +0 -648
  285. data/tests/components/jquery/src/effects/Tween.js +0 -114
  286. data/tests/components/jquery/src/effects/animatedSelector.js +0 -13
  287. data/tests/components/jquery/src/event.js +0 -868
  288. data/tests/components/jquery/src/event/ajax.js +0 -13
  289. data/tests/components/jquery/src/event/alias.js +0 -39
  290. data/tests/components/jquery/src/event/support.js +0 -9
  291. data/tests/components/jquery/src/exports/amd.js +0 -24
  292. data/tests/components/jquery/src/exports/global.js +0 -32
  293. data/tests/components/jquery/src/intro.js +0 -44
  294. data/tests/components/jquery/src/jquery.js +0 -37
  295. data/tests/components/jquery/src/manipulation.js +0 -580
  296. data/tests/components/jquery/src/manipulation/_evalUrl.js +0 -18
  297. data/tests/components/jquery/src/manipulation/support.js +0 -32
  298. data/tests/components/jquery/src/manipulation/var/rcheckableType.js +0 -3
  299. data/tests/components/jquery/src/offset.js +0 -207
  300. data/tests/components/jquery/src/outro.js +0 -1
  301. data/tests/components/jquery/src/queue.js +0 -142
  302. data/tests/components/jquery/src/queue/delay.js +0 -22
  303. data/tests/components/jquery/src/selector-native.js +0 -172
  304. data/tests/components/jquery/src/selector-sizzle.js +0 -14
  305. data/tests/components/jquery/src/selector.js +0 -1
  306. data/tests/components/jquery/src/serialize.js +0 -111
  307. data/tests/components/jquery/src/sizzle/dist/sizzle.js +0 -2067
  308. data/tests/components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  309. data/tests/components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  310. data/tests/components/jquery/src/traversing.js +0 -199
  311. data/tests/components/jquery/src/traversing/findFilter.js +0 -100
  312. data/tests/components/jquery/src/traversing/var/rneedsContext.js +0 -6
  313. data/tests/components/jquery/src/var/arr.js +0 -3
  314. data/tests/components/jquery/src/var/class2type.js +0 -4
  315. data/tests/components/jquery/src/var/concat.js +0 -5
  316. data/tests/components/jquery/src/var/hasOwn.js +0 -5
  317. data/tests/components/jquery/src/var/indexOf.js +0 -5
  318. data/tests/components/jquery/src/var/pnum.js +0 -3
  319. data/tests/components/jquery/src/var/push.js +0 -5
  320. data/tests/components/jquery/src/var/rnotwhite.js +0 -3
  321. data/tests/components/jquery/src/var/slice.js +0 -5
  322. data/tests/components/jquery/src/var/strundefined.js +0 -3
  323. data/tests/components/jquery/src/var/support.js +0 -4
  324. data/tests/components/jquery/src/var/toString.js +0 -5
  325. data/tests/components/jquery/src/wrap.js +0 -79
@@ -1,180 +0,0 @@
1
- // Copyright (c) 2013 by Amro <amroamroamro@gmail.com>
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a copy
4
- // of this software and associated documentation files (the "Software"), to deal
5
- // in the Software without restriction, including without limitation the rights
6
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- // copies of the Software, and to permit persons to whom the Software is
8
- // furnished to do so, subject to the following conditions:
9
- //
10
- // The above copyright notice and this permission notice shall be included in
11
- // all copies or substantial portions of the Software.
12
- //
13
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- // THE SOFTWARE.
20
-
21
- /**
22
- * @fileoverview
23
- * Registers a language handler for MATLAB.
24
- *
25
- * To use, include prettify.js and this file in your HTML page.
26
- * Then put your code inside an HTML tag like
27
- * <pre class="prettyprint lang-matlab">
28
- * </pre>
29
- *
30
- * @see https://github.com/amroamroamro/prettify-matlab
31
- */
32
- (function (PR) {
33
- /*
34
- PR_PLAIN: plain text
35
- PR_STRING: string literals
36
- PR_KEYWORD: keywords
37
- PR_COMMENT: comments
38
- PR_TYPE: types
39
- PR_LITERAL: literal values (1, null, true, ..)
40
- PR_PUNCTUATION: punctuation string
41
- PR_SOURCE: embedded source
42
- PR_DECLARATION: markup declaration such as a DOCTYPE
43
- PR_TAG: sgml tag
44
- PR_ATTRIB_NAME: sgml attribute name
45
- PR_ATTRIB_VALUE: sgml attribute value
46
- */
47
- var PR_IDENTIFIER = "ident",
48
- PR_CONSTANT = "const",
49
- PR_FUNCTION = "fun",
50
- PR_FUNCTION_TOOLBOX = "fun_tbx",
51
- PR_SYSCMD = "syscmd",
52
- PR_CODE_OUTPUT = "codeoutput",
53
- PR_ERROR = "err",
54
- PR_WARNING = "wrn",
55
- PR_TRANSPOSE = "transpose",
56
- PR_LINE_CONTINUATION = "linecont";
57
-
58
- // Refer to: http://www.mathworks.com/help/matlab/functionlist-alpha.html
59
- var coreFunctions = [
60
- 'abs|accumarray|acos(?:d|h)?|acot(?:d|h)?|acsc(?:d|h)?|actxcontrol(?:list|select)?|actxGetRunningServer|actxserver|addlistener|addpath|addpref|addtodate|airy|align|alim|all|allchild|alpha|alphamap|amd|ancestor|and|angle|annotation|any|area|arrayfun|asec(?:d|h)?|asin(?:d|h)?|assert|assignin|atan(?:2|d|h)?|audiodevinfo|audioplayer|audiorecorder|aufinfo|auread|autumn|auwrite|avifile|aviinfo|aviread|axes|axis|balance|bar(?:3|3h|h)?|base2dec|beep|BeginInvoke|bench|bessel(?:h|i|j|k|y)|beta|betainc|betaincinv|betaln|bicg|bicgstab|bicgstabl|bin2dec|bitand|bitcmp|bitget|bitmax|bitnot|bitor|bitset|bitshift|bitxor|blanks|blkdiag|bone|box|brighten|brush|bsxfun|builddocsearchdb|builtin|bvp4c|bvp5c|bvpget|bvpinit|bvpset|bvpxtend|calendar|calllib|callSoapService|camdolly|cameratoolbar|camlight|camlookat|camorbit|campan|campos|camproj|camroll|camtarget|camup|camva|camzoom|cart2pol|cart2sph|cast|cat|caxis|cd|cdf2rdf|cdfepoch|cdfinfo|cdflib(?:\.(?:close|closeVar|computeEpoch|computeEpoch16|create|createAttr|createVar|delete|deleteAttr|deleteAttrEntry|deleteAttrgEntry|deleteVar|deleteVarRecords|epoch16Breakdown|epochBreakdown|getAttrEntry|getAttrgEntry|getAttrMaxEntry|getAttrMaxgEntry|getAttrName|getAttrNum|getAttrScope|getCacheSize|getChecksum|getCompression|getCompressionCacheSize|getConstantNames|getConstantValue|getCopyright|getFileBackward|getFormat|getLibraryCopyright|getLibraryVersion|getMajority|getName|getNumAttrEntries|getNumAttrgEntries|getNumAttributes|getNumgAttributes|getReadOnlyMode|getStageCacheSize|getValidate|getVarAllocRecords|getVarBlockingFactor|getVarCacheSize|getVarCompression|getVarData|getVarMaxAllocRecNum|getVarMaxWrittenRecNum|getVarName|getVarNum|getVarNumRecsWritten|getVarPadValue|getVarRecordData|getVarReservePercent|getVarsMaxWrittenRecNum|getVarSparseRecords|getVersion|hyperGetVarData|hyperPutVarData|inquire|inquireAttr|inquireAttrEntry|inquireAttrgEntry|inquireVar|open|putAttrEntry|putAttrgEntry|putVarData|putVarRecordData|renameAttr|renameVar|setCacheSize|setChecksum|setCompression|setCompressionCacheSize|setFileBackward|setFormat|setMajority|setReadOnlyMode|setStageCacheSize|setValidate|setVarAllocBlockRecords|setVarBlockingFactor|setVarCacheSize|setVarCompression|setVarInitialRecs|setVarPadValue|SetVarReservePercent|setVarsCacheSize|setVarSparseRecords))?|cdfread|cdfwrite|ceil|cell2mat|cell2struct|celldisp|cellfun|cellplot|cellstr|cgs|checkcode|checkin|checkout|chol|cholinc|cholupdate|circshift|cla|clabel|class|clc|clear|clearvars|clf|clipboard|clock|close|closereq|cmopts|cmpermute|cmunique|colamd|colon|colorbar|colordef|colormap|colormapeditor|colperm|Combine|comet|comet3|commandhistory|commandwindow|compan|compass|complex|computer|cond|condeig|condest|coneplot|conj|containers\.Map|contour(?:3|c|f|slice)?|contrast|conv|conv2|convhull|convhulln|convn|cool|copper|copyfile|copyobj|corrcoef|cos(?:d|h)?|cot(?:d|h)?|cov|cplxpair|cputime|createClassFromWsdl|createSoapMessage|cross|csc(?:d|h)?|csvread|csvwrite|ctranspose|cumprod|cumsum|cumtrapz|curl|customverctrl|cylinder|daqread|daspect|datacursormode|datatipinfo|date|datenum|datestr|datetick|datevec|dbclear|dbcont|dbdown|dblquad|dbmex|dbquit|dbstack|dbstatus|dbstep|dbstop|dbtype|dbup|dde23|ddeget|ddesd|ddeset|deal|deblank|dec2base|dec2bin|dec2hex|decic|deconv|del2|delaunay|delaunay3|delaunayn|DelaunayTri|delete|demo|depdir|depfun|det|detrend|deval|diag|dialog|diary|diff|diffuse|dir|disp|display|dither|divergence|dlmread|dlmwrite|dmperm|doc|docsearch|dos|dot|dragrect|drawnow|dsearch|dsearchn|dynamicprops|echo|echodemo|edit|eig|eigs|ellipj|ellipke|ellipsoid|empty|enableNETfromNetworkDrive|enableservice|EndInvoke|enumeration|eomday|eq|erf|erfc|erfcinv|erfcx|erfinv|error|errorbar|errordlg|etime|etree|etreeplot|eval|evalc|evalin|event\.(?:EventData|listener|PropertyEvent|proplistener)|exifread|exist|exit|exp|expint|expm|expm1|export2wsdlg|eye|ezcontour|ezcontourf|ezmesh|ezmeshc|ezplot|ezplot3|ezpolar|ezsurf|ezsurfc|factor|factorial|fclose|feather|feature|feof|ferror|feval|fft|fft2|fftn|fftshift|fftw|fgetl|fgets|fieldnames|figure|figurepalette|fileattrib|filebrowser|filemarker|fileparts|fileread|filesep|fill|fill3|filter|filter2|find|findall|findfigs|findobj|findstr|finish|fitsdisp|fitsinfo|fitsread|fitswrite|fix|flag|flipdim|fliplr|flipud|floor|flow|fminbnd|fminsearch|fopen|format|fplot|fprintf|frame2im|fread|freqspace|frewind|fscanf|fseek|ftell|FTP|full|fullfile|func2str|functions|funm|fwrite|fzero|gallery|gamma|gammainc|gammaincinv|gammaln|gca|gcbf|gcbo|gcd|gcf|gco|ge|genpath|genvarname|get|getappdata|getenv|getfield|getframe|getpixelposition|getpref|ginput|gmres|gplot|grabcode|gradient|gray|graymon|grid|griddata(?:3|n)?|griddedInterpolant|gsvd|gt|gtext|guidata|guide|guihandles|gunzip|gzip|h5create|h5disp|h5info|h5read|h5readatt|h5write|h5writeatt|hadamard|handle|hankel|hdf|hdf5|hdf5info|hdf5read|hdf5write|hdfinfo|hdfread|hdftool|help|helpbrowser|helpdesk|helpdlg|helpwin|hess|hex2dec|hex2num|hgexport|hggroup|hgload|hgsave|hgsetget|hgtransform|hidden|hilb|hist|histc|hold|home|horzcat|hostid|hot|hsv|hsv2rgb|hypot|ichol|idivide|ifft|ifft2|ifftn|ifftshift|ilu|im2frame|im2java|imag|image|imagesc|imapprox|imfinfo|imformats|import|importdata|imread|imwrite|ind2rgb|ind2sub|inferiorto|info|inline|inmem|inpolygon|input|inputdlg|inputname|inputParser|inspect|instrcallback|instrfind|instrfindall|int2str|integral(?:2|3)?|interp(?:1|1q|2|3|ft|n)|interpstreamspeed|intersect|intmax|intmin|inv|invhilb|ipermute|isa|isappdata|iscell|iscellstr|ischar|iscolumn|isdir|isempty|isequal|isequaln|isequalwithequalnans|isfield|isfinite|isfloat|isglobal|ishandle|ishghandle|ishold|isinf|isinteger|isjava|iskeyword|isletter|islogical|ismac|ismatrix|ismember|ismethod|isnan|isnumeric|isobject|isocaps|isocolors|isonormals|isosurface|ispc|ispref|isprime|isprop|isreal|isrow|isscalar|issorted|isspace|issparse|isstr|isstrprop|isstruct|isstudent|isunix|isvarname|isvector|javaaddpath|javaArray|javachk|javaclasspath|javacomponent|javaMethod|javaMethodEDT|javaObject|javaObjectEDT|javarmpath|jet|keyboard|kron|lasterr|lasterror|lastwarn|lcm|ldivide|ldl|le|legend|legendre|length|libfunctions|libfunctionsview|libisloaded|libpointer|libstruct|license|light|lightangle|lighting|lin2mu|line|lines|linkaxes|linkdata|linkprop|linsolve|linspace|listdlg|listfonts|load|loadlibrary|loadobj|log|log10|log1p|log2|loglog|logm|logspace|lookfor|lower|ls|lscov|lsqnonneg|lsqr|lt|lu|luinc|magic|makehgtform|mat2cell|mat2str|material|matfile|matlab\.io\.MatFile|matlab\.mixin\.(?:Copyable|Heterogeneous(?:\.getDefaultScalarElement)?)|matlabrc|matlabroot|max|maxNumCompThreads|mean|median|membrane|memmapfile|memory|menu|mesh|meshc|meshgrid|meshz|meta\.(?:class(?:\.fromName)?|DynamicProperty|EnumeratedValue|event|MetaData|method|package(?:\.(?:fromName|getAllPackages))?|property)|metaclass|methods|methodsview|mex(?:\.getCompilerConfigurations)?|MException|mexext|mfilename|min|minres|minus|mislocked|mkdir|mkpp|mldivide|mlint|mlintrpt|mlock|mmfileinfo|mmreader|mod|mode|more|move|movefile|movegui|movie|movie2avi|mpower|mrdivide|msgbox|mtimes|mu2lin|multibandread|multibandwrite|munlock|namelengthmax|nargchk|narginchk|nargoutchk|native2unicode|nccreate|ncdisp|nchoosek|ncinfo|ncread|ncreadatt|ncwrite|ncwriteatt|ncwriteschema|ndgrid|ndims|ne|NET(?:\.(?:addAssembly|Assembly|convertArray|createArray|createGeneric|disableAutoRelease|enableAutoRelease|GenericClass|invokeGenericMethod|NetException|setStaticProperty))?|netcdf\.(?:abort|close|copyAtt|create|defDim|defGrp|defVar|defVarChunking|defVarDeflate|defVarFill|defVarFletcher32|delAtt|endDef|getAtt|getChunkCache|getConstant|getConstantNames|getVar|inq|inqAtt|inqAttID|inqAttName|inqDim|inqDimID|inqDimIDs|inqFormat|inqGrpName|inqGrpNameFull|inqGrpParent|inqGrps|inqLibVers|inqNcid|inqUnlimDims|inqVar|inqVarChunking|inqVarDeflate|inqVarFill|inqVarFletcher32|inqVarID|inqVarIDs|open|putAtt|putVar|reDef|renameAtt|renameDim|renameVar|setChunkCache|setDefaultFormat|setFill|sync)|newplot|nextpow2|nnz|noanimate|nonzeros|norm|normest|not|notebook|now|nthroot|null|num2cell|num2hex|num2str|numel|nzmax|ode(?:113|15i|15s|23|23s|23t|23tb|45)|odeget|odeset|odextend|onCleanup|ones|open|openfig|opengl|openvar|optimget|optimset|or|ordeig|orderfields|ordqz|ordschur|orient|orth|pack|padecoef|pagesetupdlg|pan|pareto|parseSoapResponse|pascal|patch|path|path2rc|pathsep|pathtool|pause|pbaspect|pcg|pchip|pcode|pcolor|pdepe|pdeval|peaks|perl|perms|permute|pie|pink|pinv|planerot|playshow|plot|plot3|plotbrowser|plotedit|plotmatrix|plottools|plotyy|plus|pol2cart|polar|poly|polyarea|polyder|polyeig|polyfit|polyint|polyval|polyvalm|pow2|power|ppval|prefdir|preferences|primes|print|printdlg|printopt|printpreview|prod|profile|profsave|propedit|propertyeditor|psi|publish|PutCharArray|PutFullMatrix|PutWorkspaceData|pwd|qhull|qmr|qr|qrdelete|qrinsert|qrupdate|quad|quad2d|quadgk|quadl|quadv|questdlg|quit|quiver|quiver3|qz|rand|randi|randn|randperm|RandStream(?:\.(?:create|getDefaultStream|getGlobalStream|list|setDefaultStream|setGlobalStream))?|rank|rat|rats|rbbox|rcond|rdivide|readasync|real|reallog|realmax|realmin|realpow|realsqrt|record|rectangle|rectint|recycle|reducepatch|reducevolume|refresh|refreshdata|regexp|regexpi|regexprep|regexptranslate|rehash|rem|Remove|RemoveAll|repmat|reset|reshape|residue|restoredefaultpath|rethrow|rgb2hsv|rgb2ind|rgbplot|ribbon|rmappdata|rmdir|rmfield|rmpath|rmpref|rng|roots|rose|rosser|rot90|rotate|rotate3d|round|rref|rsf2csf|run|save|saveas|saveobj|savepath|scatter|scatter3|schur|sec|secd|sech|selectmoveresize|semilogx|semilogy|sendmail|serial|set|setappdata|setdiff|setenv|setfield|setpixelposition|setpref|setstr|setxor|shading|shg|shiftdim|showplottool|shrinkfaces|sign|sin(?:d|h)?|size|slice|smooth3|snapnow|sort|sortrows|sound|soundsc|spalloc|spaugment|spconvert|spdiags|specular|speye|spfun|sph2cart|sphere|spinmap|spline|spones|spparms|sprand|sprandn|sprandsym|sprank|spring|sprintf|spy|sqrt|sqrtm|squeeze|ss2tf|sscanf|stairs|startup|std|stem|stem3|stopasync|str2double|str2func|str2mat|str2num|strcat|strcmp|strcmpi|stream2|stream3|streamline|streamparticles|streamribbon|streamslice|streamtube|strfind|strjust|strmatch|strncmp|strncmpi|strread|strrep|strtok|strtrim|struct2cell|structfun|strvcat|sub2ind|subplot|subsasgn|subsindex|subspace|subsref|substruct|subvolume|sum|summer|superclasses|superiorto|support|surf|surf2patch|surface|surfc|surfl|surfnorm|svd|svds|swapbytes|symamd|symbfact|symmlq|symrcm|symvar|system|tan(?:d|h)?|tar|tempdir|tempname|tetramesh|texlabel|text|textread|textscan|textwrap|tfqmr|throw|tic|Tiff(?:\.(?:getTagNames|getVersion))?|timer|timerfind|timerfindall|times|timeseries|title|toc|todatenum|toeplitz|toolboxdir|trace|transpose|trapz|treelayout|treeplot|tril|trimesh|triplequad|triplot|TriRep|TriScatteredInterp|trisurf|triu|tscollection|tsearch|tsearchn|tstool|type|typecast|uibuttongroup|uicontextmenu|uicontrol|uigetdir|uigetfile|uigetpref|uiimport|uimenu|uiopen|uipanel|uipushtool|uiputfile|uiresume|uisave|uisetcolor|uisetfont|uisetpref|uistack|uitable|uitoggletool|uitoolbar|uiwait|uminus|undocheckout|unicode2native|union|unique|unix|unloadlibrary|unmesh|unmkpp|untar|unwrap|unzip|uplus|upper|urlread|urlwrite|usejava|userpath|validateattributes|validatestring|vander|var|vectorize|ver|verctrl|verLessThan|version|vertcat|VideoReader(?:\.isPlatformSupported)?|VideoWriter(?:\.getProfiles)?|view|viewmtx|visdiff|volumebounds|voronoi|voronoin|wait|waitbar|waitfor|waitforbuttonpress|warndlg|warning|waterfall|wavfinfo|wavplay|wavread|wavrecord|wavwrite|web|weekday|what|whatsnew|which|whitebg|who|whos|wilkinson|winopen|winqueryreg|winter|wk1finfo|wk1read|wk1write|workspace|xlabel|xlim|xlsfinfo|xlsread|xlswrite|xmlread|xmlwrite|xor|xslt|ylabel|ylim|zeros|zip|zlabel|zlim|zoom'
61
- ].join("|");
62
- var statsFunctions = [
63
- 'addedvarplot|andrewsplot|anova(?:1|2|n)|ansaribradley|aoctool|barttest|bbdesign|beta(?:cdf|fit|inv|like|pdf|rnd|stat)|bino(?:cdf|fit|inv|pdf|rnd|stat)|biplot|bootci|bootstrp|boxplot|candexch|candgen|canoncorr|capability|capaplot|caseread|casewrite|categorical|ccdesign|cdfplot|chi2(?:cdf|gof|inv|pdf|rnd|stat)|cholcov|Classification(?:BaggedEnsemble|Discriminant(?:\.(?:fit|make|template))?|Ensemble|KNN(?:\.(?:fit|template))?|PartitionedEnsemble|PartitionedModel|Tree(?:\.(?:fit|template))?)|classify|classregtree|cluster|clusterdata|cmdscale|combnk|Compact(?:Classification(?:Discriminant|Ensemble|Tree)|Regression(?:Ensemble|Tree)|TreeBagger)|confusionmat|controlchart|controlrules|cophenet|copula(?:cdf|fit|param|pdf|rnd|stat)|cordexch|corr|corrcov|coxphfit|createns|crosstab|crossval|cvpartition|datasample|dataset|daugment|dcovary|dendrogram|dfittool|disttool|dummyvar|dwtest|ecdf|ecdfhist|ev(?:cdf|fit|inv|like|pdf|rnd|stat)|ExhaustiveSearcher|exp(?:cdf|fit|inv|like|pdf|rnd|stat)|factoran|fcdf|ff2n|finv|fitdist|fitensemble|fpdf|fracfact|fracfactgen|friedman|frnd|fstat|fsurfht|fullfact|gagerr|gam(?:cdf|fit|inv|like|pdf|rnd|stat)|GeneralizedLinearModel(?:\.fit)?|geo(?:cdf|inv|mean|pdf|rnd|stat)|gev(?:cdf|fit|inv|like|pdf|rnd|stat)|gline|glmfit|glmval|glyphplot|gmdistribution(?:\.fit)?|gname|gp(?:cdf|fit|inv|like|pdf|rnd|stat)|gplotmatrix|grp2idx|grpstats|gscatter|haltonset|harmmean|hist3|histfit|hmm(?:decode|estimate|generate|train|viterbi)|hougen|hyge(?:cdf|inv|pdf|rnd|stat)|icdf|inconsistent|interactionplot|invpred|iqr|iwishrnd|jackknife|jbtest|johnsrnd|KDTreeSearcher|kmeans|knnsearch|kruskalwallis|ksdensity|kstest|kstest2|kurtosis|lasso|lassoglm|lassoPlot|leverage|lhsdesign|lhsnorm|lillietest|LinearModel(?:\.fit)?|linhyptest|linkage|logn(?:cdf|fit|inv|like|pdf|rnd|stat)|lsline|mad|mahal|maineffectsplot|manova1|manovacluster|mdscale|mhsample|mle|mlecov|mnpdf|mnrfit|mnrnd|mnrval|moment|multcompare|multivarichart|mvn(?:cdf|pdf|rnd)|mvregress|mvregresslike|mvt(?:cdf|pdf|rnd)|NaiveBayes(?:\.fit)?|nan(?:cov|max|mean|median|min|std|sum|var)|nbin(?:cdf|fit|inv|pdf|rnd|stat)|ncf(?:cdf|inv|pdf|rnd|stat)|nct(?:cdf|inv|pdf|rnd|stat)|ncx2(?:cdf|inv|pdf|rnd|stat)|NeighborSearcher|nlinfit|nlintool|nlmefit|nlmefitsa|nlparci|nlpredci|nnmf|nominal|NonLinearModel(?:\.fit)?|norm(?:cdf|fit|inv|like|pdf|rnd|stat)|normplot|normspec|ordinal|outlierMeasure|parallelcoords|paretotails|partialcorr|pcacov|pcares|pdf|pdist|pdist2|pearsrnd|perfcurve|perms|piecewisedistribution|plsregress|poiss(?:cdf|fit|inv|pdf|rnd|tat)|polyconf|polytool|prctile|princomp|ProbDist(?:Kernel|Parametric|UnivKernel|UnivParam)?|probplot|procrustes|qqplot|qrandset|qrandstream|quantile|randg|random|randsample|randtool|range|rangesearch|ranksum|rayl(?:cdf|fit|inv|pdf|rnd|stat)|rcoplot|refcurve|refline|regress|Regression(?:BaggedEnsemble|Ensemble|PartitionedEnsemble|PartitionedModel|Tree(?:\.(?:fit|template))?)|regstats|relieff|ridge|robustdemo|robustfit|rotatefactors|rowexch|rsmdemo|rstool|runstest|sampsizepwr|scatterhist|sequentialfs|signrank|signtest|silhouette|skewness|slicesample|sobolset|squareform|statget|statset|stepwise|stepwisefit|surfht|tabulate|tblread|tblwrite|tcdf|tdfread|tiedrank|tinv|tpdf|TreeBagger|treedisp|treefit|treeprune|treetest|treeval|trimmean|trnd|tstat|ttest|ttest2|unid(?:cdf|inv|pdf|rnd|stat)|unif(?:cdf|inv|it|pdf|rnd|stat)|vartest(?:2|n)?|wbl(?:cdf|fit|inv|like|pdf|rnd|stat)|wblplot|wishrnd|x2fx|xptread|zscore|ztest'
64
- ].join("|");
65
- var imageFunctions = [
66
- 'adapthisteq|analyze75info|analyze75read|applycform|applylut|axes2pix|bestblk|blockproc|bwarea|bwareaopen|bwboundaries|bwconncomp|bwconvhull|bwdist|bwdistgeodesic|bweuler|bwhitmiss|bwlabel|bwlabeln|bwmorph|bwpack|bwperim|bwselect|bwtraceboundary|bwulterode|bwunpack|checkerboard|col2im|colfilt|conndef|convmtx2|corner|cornermetric|corr2|cp2tform|cpcorr|cpselect|cpstruct2pairs|dct2|dctmtx|deconvblind|deconvlucy|deconvreg|deconvwnr|decorrstretch|demosaic|dicom(?:anon|dict|info|lookup|read|uid|write)|edge|edgetaper|entropy|entropyfilt|fan2para|fanbeam|findbounds|fliptform|freqz2|fsamp2|fspecial|ftrans2|fwind1|fwind2|getheight|getimage|getimagemodel|getline|getneighbors|getnhood|getpts|getrangefromclass|getrect|getsequence|gray2ind|graycomatrix|graycoprops|graydist|grayslice|graythresh|hdrread|hdrwrite|histeq|hough|houghlines|houghpeaks|iccfind|iccread|iccroot|iccwrite|idct2|ifanbeam|im2bw|im2col|im2double|im2int16|im2java2d|im2single|im2uint16|im2uint8|imabsdiff|imadd|imadjust|ImageAdapter|imageinfo|imagemodel|imapplymatrix|imattributes|imbothat|imclearborder|imclose|imcolormaptool|imcomplement|imcontour|imcontrast|imcrop|imdilate|imdisplayrange|imdistline|imdivide|imellipse|imerode|imextendedmax|imextendedmin|imfill|imfilter|imfindcircles|imfreehand|imfuse|imgca|imgcf|imgetfile|imhandles|imhist|imhmax|imhmin|imimposemin|imlincomb|imline|immagbox|immovie|immultiply|imnoise|imopen|imoverview|imoverviewpanel|impixel|impixelinfo|impixelinfoval|impixelregion|impixelregionpanel|implay|impoint|impoly|impositionrect|improfile|imputfile|impyramid|imreconstruct|imrect|imregconfig|imregionalmax|imregionalmin|imregister|imresize|imroi|imrotate|imsave|imscrollpanel|imshow|imshowpair|imsubtract|imtool|imtophat|imtransform|imview|ind2gray|ind2rgb|interfileinfo|interfileread|intlut|ippl|iptaddcallback|iptcheckconn|iptcheckhandle|iptcheckinput|iptcheckmap|iptchecknargin|iptcheckstrs|iptdemos|iptgetapi|iptGetPointerBehavior|iptgetpref|ipticondir|iptnum2ordinal|iptPointerManager|iptprefs|iptremovecallback|iptSetPointerBehavior|iptsetpref|iptwindowalign|iradon|isbw|isflat|isgray|isicc|isind|isnitf|isrgb|isrset|lab2double|lab2uint16|lab2uint8|label2rgb|labelmatrix|makecform|makeConstrainToRectFcn|makehdr|makelut|makeresampler|maketform|mat2gray|mean2|medfilt2|montage|nitfinfo|nitfread|nlfilter|normxcorr2|ntsc2rgb|openrset|ordfilt2|otf2psf|padarray|para2fan|phantom|poly2mask|psf2otf|qtdecomp|qtgetblk|qtsetblk|radon|rangefilt|reflect|regionprops|registration\.metric\.(?:MattesMutualInformation|MeanSquares)|registration\.optimizer\.(?:OnePlusOneEvolutionary|RegularStepGradientDescent)|rgb2gray|rgb2ntsc|rgb2ycbcr|roicolor|roifill|roifilt2|roipoly|rsetwrite|std2|stdfilt|strel|stretchlim|subimage|tformarray|tformfwd|tforminv|tonemap|translate|truesize|uintlut|viscircles|warp|watershed|whitepoint|wiener2|xyz2double|xyz2uint16|ycbcr2rgb'
67
- ].join("|");
68
- var optimFunctions = [
69
- 'bintprog|color|fgoalattain|fminbnd|fmincon|fminimax|fminsearch|fminunc|fseminf|fsolve|fzero|fzmult|gangstr|ktrlink|linprog|lsqcurvefit|lsqlin|lsqnonlin|lsqnonneg|optimget|optimset|optimtool|quadprog'
70
- ].join("|");
71
-
72
- // identifiers: variable/function name, or a chain of variable names joined by dots (obj.method, struct.field1.field2, etc..)
73
- // valid variable names (start with letter, and contains letters, digits, and underscores).
74
- // we match "xx.yy" as a whole so that if "xx" is plain and "yy" is not, we dont get a false positive for "yy"
75
- //var reIdent = '(?:[a-zA-Z][a-zA-Z0-9_]*)';
76
- //var reIdentChain = '(?:' + reIdent + '(?:\.' + reIdent + ')*' + ')';
77
-
78
- // patterns that always start with a known character. Must have a shortcut string.
79
- var shortcutStylePatterns = [
80
- // whitespaces: space, tab, carriage return, line feed, line tab, form-feed, non-break space
81
- [PR.PR_PLAIN, /^[ \t\r\n\v\f\xA0]+/, null, " \t\r\n\u000b\u000c\u00a0"],
82
-
83
- // block comments
84
- //TODO: chokes on nested block comments
85
- //TODO: false positives when the lines with %{ and %} contain non-spaces
86
- //[PR.PR_COMMENT, /^%(?:[^\{].*|\{(?:%|%*[^\}%])*(?:\}+%?)?)/, null],
87
- [PR.PR_COMMENT, /^%\{[^%]*%+(?:[^\}%][^%]*%+)*\}/, null],
88
-
89
- // single-line comments
90
- [PR.PR_COMMENT, /^%[^\r\n]*/, null, "%"],
91
-
92
- // system commands
93
- [PR_SYSCMD, /^![^\r\n]*/, null, "!"]
94
- ];
95
-
96
- // patterns that will be tried in order if the shortcut ones fail. May have shortcuts.
97
- var fallthroughStylePatterns = [
98
- // line continuation
99
- [PR_LINE_CONTINUATION, /^\.\.\.\s*[\r\n]/, null],
100
-
101
- // error message
102
- [PR_ERROR, /^\?\?\? [^\r\n]*/, null],
103
-
104
- // warning message
105
- [PR_WARNING, /^Warning: [^\r\n]*/, null],
106
-
107
- // command prompt/output
108
- //[PR_CODE_OUTPUT, /^>>\s+[^\r\n]*[\r\n]{1,2}[^=]*=[^\r\n]*[\r\n]{1,2}[^\r\n]*/, null], // full command output (both loose/compact format): `>> EXP\nVAR =\n VAL`
109
- [PR_CODE_OUTPUT, /^>>\s+/, null], // only the command prompt `>> `
110
- [PR_CODE_OUTPUT, /^octave:\d+>\s+/, null], // Octave command prompt `octave:1> `
111
-
112
- // identifier (chain) or closing-parenthesis/brace/bracket, and IS followed by transpose operator
113
- // this way we dont misdetect the transpose operator ' as the start of a string
114
- ["lang-matlab-operators", /^((?:[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*|\)|\]|\}|\.)')/, null],
115
-
116
- // identifier (chain), and NOT followed by transpose operator
117
- // this must come AFTER the "is followed by transpose" step (otherwise it chops the last char of identifier)
118
- ["lang-matlab-identifiers", /^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)(?!')/, null],
119
-
120
- // single-quoted strings: allow for escaping with '', no multilines
121
- //[PR.PR_STRING, /(?:(?<=(?:\(|\[|\{|\s|=|;|,|:))|^)'(?:[^']|'')*'(?=(?:\)|\]|\}|\s|=|;|,|:|~|<|>|&|-|\+|\*|\.|\^|\|))/, null], // string vs. transpose (check before/after context using negative/positive lookbehind/lookahead)
122
- [PR.PR_STRING, /^'(?:[^']|'')*'/, null], // "'"
123
-
124
- // floating point numbers: 1, 1.0, 1i, -1.1E-1
125
- [PR.PR_LITERAL, /^[+\-]?\.?\d+(?:\.\d*)?(?:[Ee][+\-]?\d+)?[ij]?/, null],
126
-
127
- // parentheses, braces, brackets
128
- [PR.PR_TAG, /^(?:\{|\}|\(|\)|\[|\])/, null], // "{}()[]"
129
-
130
- // other operators
131
- [PR.PR_PUNCTUATION, /^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/, null]
132
- ];
133
-
134
- var identifiersPatterns = [
135
- // list of keywords (`iskeyword`)
136
- [PR.PR_KEYWORD, /^\b(?:break|case|catch|classdef|continue|else|elseif|end|for|function|global|if|otherwise|parfor|persistent|return|spmd|switch|try|while)\b/, null],
137
-
138
- // some specials variables/constants
139
- [PR_CONSTANT, /^\b(?:true|false|inf|Inf|nan|NaN|eps|pi|ans|nargin|nargout|varargin|varargout)\b/, null],
140
-
141
- // some data types
142
- [PR.PR_TYPE, /^\b(?:cell|struct|char|double|single|logical|u?int(?:8|16|32|64)|sparse)\b/, null],
143
-
144
- // commonly used builtin functions from core MATLAB and a few popular toolboxes
145
- [PR_FUNCTION, new RegExp('^\\b(?:' + coreFunctions + ')\\b'), null],
146
- [PR_FUNCTION_TOOLBOX, new RegExp('^\\b(?:' + statsFunctions + ')\\b'), null],
147
- [PR_FUNCTION_TOOLBOX, new RegExp('^\\b(?:' + imageFunctions + ')\\b'), null],
148
- [PR_FUNCTION_TOOLBOX, new RegExp('^\\b(?:' + optimFunctions + ')\\b'), null],
149
-
150
- // plain identifier (user-defined variable/function name)
151
- [PR_IDENTIFIER, /^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*/, null]
152
- ];
153
-
154
- var operatorsPatterns = [
155
- // forward to identifiers to match
156
- ["lang-matlab-identifiers", /^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)/, null],
157
-
158
- // parentheses, braces, brackets
159
- [PR.PR_TAG, /^(?:\{|\}|\(|\)|\[|\])/, null], // "{}()[]"
160
-
161
- // other operators
162
- [PR.PR_PUNCTUATION, /^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/, null],
163
-
164
- // transpose operators
165
- [PR_TRANSPOSE, /^'/, null]
166
- ];
167
-
168
- PR.registerLangHandler(
169
- PR.createSimpleLexer([], identifiersPatterns),
170
- ["matlab-identifiers"]
171
- );
172
- PR.registerLangHandler(
173
- PR.createSimpleLexer([], operatorsPatterns),
174
- ["matlab-operators"]
175
- );
176
- PR.registerLangHandler(
177
- PR.createSimpleLexer(shortcutStylePatterns, fallthroughStylePatterns),
178
- ["matlab"]
179
- );
180
- })(window['PR']);
@@ -1,56 +0,0 @@
1
- // Copyright (C) 2008 Google Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
-
16
-
17
- /**
18
- * @fileoverview
19
- * Registers a language handler for OCaml, SML, F# and similar languages.
20
- *
21
- * Based on the lexical grammar at
22
- * http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/spec.html#_Toc270597388
23
- *
24
- * @author mikesamuel@gmail.com
25
- */
26
-
27
- PR['registerLangHandler'](
28
- PR['createSimpleLexer'](
29
- [
30
- // Whitespace is made up of spaces, tabs and newline characters.
31
- [PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
32
- // #if ident/#else/#endif directives delimit conditional compilation
33
- // sections
34
- [PR['PR_COMMENT'],
35
- /^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,
36
- null, '#'],
37
- // A double or single quoted, possibly multi-line, string.
38
- // F# allows escaped newlines in strings.
39
- [PR['PR_STRING'], /^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/, null, '"\'']
40
- ],
41
- [
42
- // Block comments are delimited by (* and *) and may be
43
- // nested. Single-line comments begin with // and extend to
44
- // the end of a line.
45
- // TODO: (*...*) comments can be nested. This does not handle that.
46
- [PR['PR_COMMENT'], /^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],
47
- [PR['PR_KEYWORD'], /^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
48
- // A number is a hex integer literal, a decimal real literal, or in
49
- // scientific notation.
50
- [PR['PR_LITERAL'],
51
- /^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],
52
- [PR['PR_PLAIN'], /^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],
53
- // A printable non-space non-special character
54
- [PR['PR_PUNCTUATION'], /^[^\t\n\r \xA0\"\'\w]+/]
55
- ]),
56
- ['fs', 'ml']);
@@ -1,139 +0,0 @@
1
- // Copyright (C) 2011 Kitware Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
-
16
-
17
- /**
18
- * @fileoverview
19
- * Registers a language handler for MUMPS.
20
- *
21
- *
22
- * To use, include prettify.js and this file in your HTML page.
23
- * Then put your code in an HTML tag like
24
- * <pre class="prettyprint lang-mumps">(my SQL code)</pre>
25
- *
26
- * Commands, intrinsic functions and variables taken from ISO/IEC 11756:1999(E)
27
- *
28
- * @author chris.harris@kitware.com
29
- *
30
- * Known issues:
31
- *
32
- * - Currently can't distinguish between keywords and local or global variables having the same name
33
- * for exampe SET IF="IF?"
34
- * - m file are already used for MatLab hence using mumps.
35
- */
36
-
37
- (function () {
38
-
39
-
40
- var commands = 'B|BREAK|' +
41
- 'C|CLOSE|' +
42
- 'D|DO|' +
43
- 'E|ELSE|' +
44
- 'F|FOR|' +
45
- 'G|GOTO|' +
46
- 'H|HALT|' +
47
- 'H|HANG|' +
48
- 'I|IF|' +
49
- 'J|JOB|' +
50
- 'K|KILL|' +
51
- 'L|LOCK|' +
52
- 'M|MERGE|' +
53
- 'N|NEW|' +
54
- 'O|OPEN|' +
55
- 'Q|QUIT|' +
56
- 'R|READ|' +
57
- 'S|SET|' +
58
- 'TC|TCOMMIT|' +
59
- 'TRE|TRESTART|' +
60
- 'TRO|TROLLBACK|' +
61
- 'TS|TSTART|' +
62
- 'U|USE|' +
63
- 'V|VIEW|' +
64
- 'W|WRITE|' +
65
- 'X|XECUTE';
66
-
67
- var intrinsicVariables = 'D|DEVICE|' +
68
- 'EC|ECODE|' +
69
- 'ES|ESTACK|' +
70
- 'ET|ETRAP|' +
71
- 'H|HOROLOG|' +
72
- 'I|IO|' +
73
- 'J|JOB|' +
74
- 'K|KEY|' +
75
- 'P|PRINCIPAL|' +
76
- 'Q|QUIT|' +
77
- 'ST|STACK|' +
78
- 'S|STORAGE|' +
79
- 'SY|SYSTEM|' +
80
- 'T|TEST|' +
81
- 'TL|TLEVEL|' +
82
- 'TR|TRESTART|' +
83
- 'X|' +
84
- 'Y|' +
85
- 'Z[A-Z]*|';
86
-
87
- var intrinsicFunctions = 'A|ASCII|' +
88
- 'C|CHAR|' +
89
- 'D|DATA|' +
90
- 'E|EXTRACT|' +
91
- 'F|FIND|' +
92
- 'FN|FNUMBER|' +
93
- 'G|GET|' +
94
- 'J|JUSTIFY|' +
95
- 'L|LENGTH|' +
96
- 'NA|NAME|' +
97
- 'O|ORDER|' +
98
- 'P|PIECE|' +
99
- 'QL|QLENGTH|' +
100
- 'QS|QSUBSCRIPT|' +
101
- 'Q|QUERY|' +
102
- 'R|RANDOM|' +
103
- 'RE|REVERSE|' +
104
- 'S|SELECT|' +
105
- 'ST|STACK|' +
106
- 'T|TEXT|' +
107
- 'TR|TRANSLATE|' +
108
- 'V|VIEW|' *
109
- 'Z[A-Z]*|';
110
-
111
- var intrinsic = intrinsicVariables + intrinsicFunctions;
112
-
113
-
114
- var shortcutStylePatterns = [
115
- // Whitespace
116
- [PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
117
- // A double or single quoted, possibly multi-line, string.
118
- [PR['PR_STRING'], /^(?:"(?:[^"]|\\.)*")/, null, '"']
119
- ];
120
-
121
- var fallthroughStylePatterns = [
122
- // A line comment that starts with ;
123
- [PR['PR_COMMENT'], /^;[^\r\n]*/, null, ';'],
124
- // Add intrinsic variables and functions as declarations, there not really but it mean
125
- // they will hilighted differently from commands.
126
- [PR['PR_DECLARATION'], new RegExp('^(?:\\$(?:' + intrinsic + '))\\b', 'i'), null],
127
- // Add commands as keywords
128
- [PR['PR_KEYWORD'], new RegExp('^(?:[^\\$]' + commands + ')\\b', 'i'), null],
129
- // A number is a decimal real literal or in scientific notation.
130
- [PR['PR_LITERAL'],
131
- /^[+-]?(?:(?:\.\d+|\d+(?:\.\d*)?)(?:E[+\-]?\d+)?)/i],
132
- // An identifier
133
- [PR['PR_PLAIN'], /^[a-z][a-zA-Z0-9]*/i],
134
- // Exclude $ % and ^
135
- [PR['PR_PUNCTUATION'], /^[^\w\t\n\r\xA0\"\$;%\^]|_/]
136
- ];
137
- // Can't use m as its already used for MatLab
138
- PR.registerLangHandler(PR.createSimpleLexer(shortcutStylePatterns, fallthroughStylePatterns), ['mumps']);
139
- })();
@@ -1,65 +0,0 @@
1
- // Copyright (C) 2011 Zimin A.V.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
-
16
- /**
17
- * @fileoverview
18
- * Registers a language handler for the Nemerle language.
19
- * http://nemerle.org
20
- * @author Zimin A.V.
21
- */
22
- (function () {
23
- // http://nemerle.org/wiki/index.php?title=Base_keywords
24
- var keywords = 'abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|'
25
- + 'fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|'
26
- + 'null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|'
27
- + 'syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|'
28
- + 'assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|'
29
- + 'otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield';
30
-
31
- PR['registerLangHandler'](PR['createSimpleLexer'](
32
- // shortcutStylePatterns
33
- [
34
- [PR['PR_STRING'], /^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, '"'],
35
- [PR['PR_COMMENT'], /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, null, '#'],
36
- [PR['PR_PLAIN'], /^\s+/, null, ' \r\n\t\xA0']
37
- ],
38
- // fallthroughStylePatterns
39
- [
40
- [PR['PR_STRING'], /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null],
41
- [PR['PR_STRING'], /^<#(?:[^#>])*(?:#>|$)/, null],
42
- [PR['PR_STRING'], /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null],
43
- [PR['PR_COMMENT'], /^\/\/[^\r\n]*/, null],
44
- [PR['PR_COMMENT'], /^\/\*[\s\S]*?(?:\*\/|$)/, null],
45
- [PR['PR_KEYWORD'], new RegExp('^(?:' + keywords + ')\\b'), null],
46
- [PR['PR_TYPE'], /^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/, null],
47
- [PR['PR_LITERAL'], /^@[a-z_$][a-z_$@0-9]*/i, null],
48
- [PR['PR_TYPE'], /^@[A-Z]+[a-z][A-Za-z_$@0-9]*/, null],
49
- [PR['PR_PLAIN'], /^'?[A-Za-z_$][a-z_$@0-9]*/i, null],
50
- [PR['PR_LITERAL'], new RegExp(
51
- '^(?:'
52
- // A hex number
53
- + '0x[a-f0-9]+'
54
- // or an octal or decimal number,
55
- + '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
56
- // possibly in scientific notation
57
- + '(?:e[+\\-]?\\d+)?'
58
- + ')'
59
- // with an optional modifier like UL for unsigned long
60
- + '[a-z]*', 'i'), null, '0123456789'],
61
-
62
- [PR['PR_PUNCTUATION'], /^.[^\s\w\.$@\'\"\`\/\#]*/, null]
63
- ]),
64
- ['n', 'nemerle']);
65
- })();
@@ -1,32 +0,0 @@
1
- // Contributed by peter dot kofler at code minus cop dot org
2
-
3
- /**
4
- * @fileoverview
5
- * Registers a language handler for (Turbo) Pascal.
6
- *
7
- * To use, include prettify.js and this file in your HTML page.
8
- * Then put your code in an HTML tag like
9
- * <pre class="prettyprint lang-pascal">(my Pascal code)</pre>
10
- *
11
- * @author peter dot kofler at code minus cop dot org
12
- */
13
-
14
- PR.registerLangHandler(
15
- PR.createSimpleLexer(
16
- [ // shortcutStylePatterns
17
- // 'single-line-string'
18
- [PR.PR_STRING, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$))/, null, '\''],
19
- // Whitespace
20
- [PR.PR_PLAIN, /^\s+/, null, ' \r\n\t\xA0']
21
- ],
22
- [ // fallthroughStylePatterns
23
- // A cStyleComments comment (* *) or {}
24
- [PR.PR_COMMENT, /^\(\*[\s\S]*?(?:\*\)|$)|^\{[\s\S]*?(?:\}|$)/, null],
25
- [PR.PR_KEYWORD, /^(?:ABSOLUTE|AND|ARRAY|ASM|ASSEMBLER|BEGIN|CASE|CONST|CONSTRUCTOR|DESTRUCTOR|DIV|DO|DOWNTO|ELSE|END|EXTERNAL|FOR|FORWARD|FUNCTION|GOTO|IF|IMPLEMENTATION|IN|INLINE|INTERFACE|INTERRUPT|LABEL|MOD|NOT|OBJECT|OF|OR|PACKED|PROCEDURE|PROGRAM|RECORD|REPEAT|SET|SHL|SHR|THEN|TO|TYPE|UNIT|UNTIL|USES|VAR|VIRTUAL|WHILE|WITH|XOR)\b/i, null],
26
- [PR.PR_LITERAL, /^(?:true|false|self|nil)/i, null],
27
- [PR.PR_PLAIN, /^[a-z][a-z0-9]*/i, null],
28
- // Literals .0, 0, 0.0 0E13
29
- [PR.PR_LITERAL, /^(?:\$[a-f0-9]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?)/i, null, '0123456789'],
30
- [PR.PR_PUNCTUATION, /^.[^\s\w\.$@\'\/]*/, null]
31
- ]),
32
- ['pascal']);