@macallumharvey/first-test-wet 0.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Macallum.d.ts +5 -0
- package/dist/WetButton.d.ts +9 -0
- package/dist/WetModal.d.ts +6 -0
- package/dist/first-test-wet.cjs.development.js +34 -6
- package/dist/first-test-wet.cjs.development.js.map +1 -1
- package/dist/first-test-wet.cjs.production.min.js +1 -1
- package/dist/first-test-wet.cjs.production.min.js.map +1 -1
- package/dist/first-test-wet.esm.js +31 -6
- package/dist/first-test-wet.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/Macallum.tsx +9 -0
- package/src/WetButton.tsx +19 -0
- package/src/WetModal.tsx +25 -0
- package/src/index.tsx +2 -6
- package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +1 -0
- package/src/wet-boew-cdn-4.0.81.1/License-en.txt +1 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/cloud-popup-relative.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/fd-slider-sprite.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/loading.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/mediacontrols.html +33 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/zoom-minus-mini.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/zoom-plus-mini.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/zoom-world-mini.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/css/noscript.css +112 -0
- package/src/wet-boew-cdn-4.0.81.1/css/noscript.min.css +6 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datalist.css +32 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datalist.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datepicker.css +47 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datepicker.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/details.css +28 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/details.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/mathml.css +16 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/mathml.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/meter.css +24 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/meter.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/progress.css +8 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/progress.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/slider.css +229 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/slider.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/mml-chtml.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.js +1512 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.js +3770 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.js +15733 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +4 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.js +345 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.js +3168 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.js +282 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.js +820 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.js +2061 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +4 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.js +1661 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.js +315 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.js +349 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-apollo.js +53 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-apollo.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-basic.js +49 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-basic.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-clj.js +64 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-clj.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-css.js +160 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-css.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-dart.js +92 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-dart.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-erlang.js +94 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-erlang.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-go.js +59 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-go.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-hs.js +102 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-hs.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lasso.js +67 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lasso.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lisp.js +95 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lisp.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-llvm.js +63 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-llvm.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-logtalk.js +50 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-logtalk.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lua.js +60 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lua.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-matlab.js +183 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-matlab.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-ml.js +57 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-ml.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-mumps.js +140 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-mumps.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-n.js +67 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-n.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-pascal.js +49 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-pascal.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-proto.js +37 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-proto.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-r.js +59 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-r.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rd.js +50 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rd.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rust.js +81 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rust.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-scala.js +56 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-scala.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-sql.js +59 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-sql.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-swift.js +60 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-swift.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tcl.js +63 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tcl.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tex.js +49 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tex.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vb.js +67 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vb.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vhdl.js +51 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vhdl.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-wiki.js +55 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-wiki.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-xq.js +71 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-xq.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-yaml.js +45 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-yaml.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.js +1008 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.js +1742 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.js +3 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.js +1998 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.js +2216 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.js +452 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.js +294 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.js +363 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.js +296 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.js +291 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.js +322 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.js +292 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.js +291 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.js +320 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.js +294 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.js +327 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.js +296 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.js +279 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.js +291 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.js +295 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.js +294 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js +10 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js +10 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/jquery/2.2.4/jquery.js +9814 -0
- package/src/wet-boew-cdn-4.0.81.1/js/jquery/2.2.4/jquery.min.js +4 -0
- package/src/wet-boew-cdn-4.0.81.1/js/jquery/2.2.4/jquery.min.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.js +419 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.js +50 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.js +338 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.js +126 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.js +47 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js +16 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.js +140 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.js +784 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.js +107 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.js +1343 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.js +73 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.js +29 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.js +603 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.js +20264 -0
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/package.json +15 -0
- package/src/wet-boew-cdn-4.0.81.1/payload.json +1722 -0
@@ -0,0 +1,95 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2008 Google Inc.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @fileoverview
|
20
|
+
* Registers a language handler for Common Lisp and related languages.
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* To use, include prettify.js and this file in your HTML page.
|
24
|
+
* Then put your code in an HTML tag like
|
25
|
+
* <pre class="prettyprint lang-lisp">(my lisp code)</pre>
|
26
|
+
* The lang-cl class identifies the language as common lisp.
|
27
|
+
* This file supports the following language extensions:
|
28
|
+
* lang-cl - Common Lisp
|
29
|
+
* lang-el - Emacs Lisp
|
30
|
+
* lang-lisp - Lisp
|
31
|
+
* lang-scm - Scheme
|
32
|
+
* lang-lsp - FAT 8.3 filename version of lang-lisp.
|
33
|
+
*
|
34
|
+
*
|
35
|
+
* I used http://www.devincook.com/goldparser/doc/meta-language/grammar-LISP.htm
|
36
|
+
* as the basis, but added line comments that start with ; and changed the atom
|
37
|
+
* production to disallow unquoted semicolons.
|
38
|
+
*
|
39
|
+
* "Name" = 'LISP'
|
40
|
+
* "Author" = 'John McCarthy'
|
41
|
+
* "Version" = 'Minimal'
|
42
|
+
* "About" = 'LISP is an abstract language that organizes ALL'
|
43
|
+
* | 'data around "lists".'
|
44
|
+
*
|
45
|
+
* "Start Symbol" = [s-Expression]
|
46
|
+
*
|
47
|
+
* {Atom Char} = {Printable} - {Whitespace} - [()"\'']
|
48
|
+
*
|
49
|
+
* Atom = ( {Atom Char} | '\'{Printable} )+
|
50
|
+
*
|
51
|
+
* [s-Expression] ::= [Quote] Atom
|
52
|
+
* | [Quote] '(' [Series] ')'
|
53
|
+
* | [Quote] '(' [s-Expression] '.' [s-Expression] ')'
|
54
|
+
*
|
55
|
+
* [Series] ::= [s-Expression] [Series]
|
56
|
+
* |
|
57
|
+
*
|
58
|
+
* [Quote] ::= '' !Quote = do not evaluate
|
59
|
+
* |
|
60
|
+
*
|
61
|
+
*
|
62
|
+
* I used <a href="http://gigamonkeys.com/book/">Practical Common Lisp</a> as
|
63
|
+
* the basis for the reserved word list.
|
64
|
+
*
|
65
|
+
*
|
66
|
+
* @author mikesamuel@gmail.com
|
67
|
+
*/
|
68
|
+
|
69
|
+
PR['registerLangHandler'](
|
70
|
+
PR['createSimpleLexer'](
|
71
|
+
[
|
72
|
+
['opn', /^\(+/, null, '('],
|
73
|
+
['clo', /^\)+/, null, ')'],
|
74
|
+
// A line comment that starts with ;
|
75
|
+
[PR['PR_COMMENT'], /^;[^\r\n]*/, null, ';'],
|
76
|
+
// Whitespace
|
77
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
78
|
+
// A double quoted, possibly multi-line, string.
|
79
|
+
[PR['PR_STRING'], /^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/, null, '"']
|
80
|
+
],
|
81
|
+
[
|
82
|
+
[PR['PR_KEYWORD'], /^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],
|
83
|
+
[PR['PR_LITERAL'],
|
84
|
+
/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],
|
85
|
+
// A single quote possibly followed by a word that optionally ends with
|
86
|
+
// = ! or ?.
|
87
|
+
[PR['PR_LITERAL'],
|
88
|
+
/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],
|
89
|
+
// A word that optionally ends with = ! or ?.
|
90
|
+
[PR['PR_PLAIN'],
|
91
|
+
/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],
|
92
|
+
// A printable non-space non-special character
|
93
|
+
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r \xA0()\"\\\';]+/]
|
94
|
+
]),
|
95
|
+
['cl', 'el', 'lisp', 'lsp', 'scm', 'ss', 'rkt']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],[PR.PR_COMMENT,/^;[^\r\n]*/,null,";"],[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_STRING,/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[[PR.PR_KEYWORD,/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,null],[PR.PR_LITERAL,/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],[PR.PR_LITERAL,/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],[PR.PR_PLAIN,/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],[PR.PR_PUNCTUATION,/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]);
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2013 Nikhil Dabas
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @fileoverview
|
20
|
+
* Registers a language handler for LLVM.
|
21
|
+
* From https://gist.github.com/ndabas/2850418
|
22
|
+
*
|
23
|
+
*
|
24
|
+
* To use, include prettify.js and this file in your HTML page.
|
25
|
+
* Then put your code in an HTML tag like
|
26
|
+
* <pre class="prettyprint lang-llvm">(my LLVM code)</pre>
|
27
|
+
*
|
28
|
+
*
|
29
|
+
* The regular expressions were adapted from:
|
30
|
+
* https://github.com/hansstimer/llvm.tmbundle/blob/76fedd8f50fd6108b1780c51d79fbe3223de5f34/Syntaxes/LLVM.tmLanguage
|
31
|
+
*
|
32
|
+
* http://llvm.org/docs/LangRef.html#constants describes the language grammar.
|
33
|
+
*
|
34
|
+
* @author Nikhil Dabas
|
35
|
+
*/
|
36
|
+
PR['registerLangHandler'](
|
37
|
+
PR['createSimpleLexer'](
|
38
|
+
[
|
39
|
+
// Whitespace
|
40
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
41
|
+
// A double quoted, possibly multi-line, string.
|
42
|
+
[PR['PR_STRING'], /^!?\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/, null, '"'],
|
43
|
+
// comment.llvm
|
44
|
+
[PR['PR_COMMENT'], /^;[^\r\n]*/, null, ';']
|
45
|
+
],
|
46
|
+
[
|
47
|
+
// variable.llvm
|
48
|
+
[PR['PR_PLAIN'], /^[%@!](?:[-a-zA-Z$._][-a-zA-Z$._0-9]*|\d+)/],
|
49
|
+
|
50
|
+
// According to http://llvm.org/docs/LangRef.html#well-formedness
|
51
|
+
// These reserved words cannot conflict with variable names, because none of them start with a prefix character ('%' or '@').
|
52
|
+
[PR['PR_KEYWORD'], /^[A-Za-z_][0-9A-Za-z_]*/, null],
|
53
|
+
|
54
|
+
// constant.numeric.float.llvm
|
55
|
+
[PR['PR_LITERAL'], /^\d+\.\d+/],
|
56
|
+
|
57
|
+
// constant.numeric.integer.llvm
|
58
|
+
[PR['PR_LITERAL'], /^(?:\d+|0[xX][a-fA-F0-9]+)/],
|
59
|
+
|
60
|
+
// punctuation
|
61
|
+
[PR['PR_PUNCTUATION'], /^[()\[\]{},=*<>:]|\.\.\.$/]
|
62
|
+
]),
|
63
|
+
['llvm', 'll']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_STRING,/^!?\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],[PR.PR_COMMENT,/^;[^\r\n]*/,null,";"]],[[PR.PR_PLAIN,/^[%@!](?:[-a-zA-Z$._][-a-zA-Z$._0-9]*|\d+)/],[PR.PR_KEYWORD,/^[A-Za-z_][0-9A-Za-z_]*/,null],[PR.PR_LITERAL,/^\d+\.\d+/],[PR.PR_LITERAL,/^(?:\d+|0[xX][a-fA-F0-9]+)/],[PR.PR_PUNCTUATION,/^[()\[\]{},=*<>:]|\.\.\.$/]]),["llvm","ll"]);
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2014 Paulo Moura
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @fileoverview
|
20
|
+
* Registers a language handler for Logtalk.
|
21
|
+
* http://logtalk.org/
|
22
|
+
* @author Paulo Moura
|
23
|
+
*/
|
24
|
+
|
25
|
+
PR['registerLangHandler'](
|
26
|
+
PR['createSimpleLexer'](
|
27
|
+
[
|
28
|
+
// double-quoted strings.
|
29
|
+
[PR['PR_STRING'], /^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/, null, '"'],
|
30
|
+
// atoms (don't break on underscores!)
|
31
|
+
[PR['PR_LITERAL'], /^[a-z][a-zA-Z0-9_]*/],
|
32
|
+
// quoted atoms
|
33
|
+
[PR['PR_LITERAL'], /^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/, null, "'"],
|
34
|
+
// numbers
|
35
|
+
[PR['PR_LITERAL'], /^(?:0'.|0b[0-1]+|0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i, null, '0123456789']
|
36
|
+
],
|
37
|
+
[
|
38
|
+
// single-line comments begin with %
|
39
|
+
[PR['PR_COMMENT'], /^%[^\r\n]*/, null, '%'],
|
40
|
+
// block comments are delimited by /* and */
|
41
|
+
[PR['PR_COMMENT'], /^\/\*[\s\S]*?\*\//],
|
42
|
+
// directives
|
43
|
+
[PR['PR_KEYWORD'], /^\s*:-\s(c(a(lls|tegory)|oinductive)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|od(e|ule)|ultifile)|reexport|s(et_(logtalk|prolog)_flag|ynchronized)|o(bject|p)|use(s|_module))/],
|
44
|
+
[PR['PR_KEYWORD'], /^\s*:-\s(e(lse|nd(if|_(category|object|protocol)))|built_in|dynamic|synchronized|threaded)/],
|
45
|
+
// variables
|
46
|
+
[PR['PR_TYPE'], /^[A-Z_][a-zA-Z0-9_]*/],
|
47
|
+
// operators
|
48
|
+
[PR['PR_PUNCTUATION'], /^[.,;{}:^<>=\\/+*?#!-]/]
|
49
|
+
]),
|
50
|
+
['logtalk', 'lgt']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_STRING,/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],[PR.PR_LITERAL,/^[a-z][a-zA-Z0-9_]*/],[PR.PR_LITERAL,/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],[PR.PR_LITERAL,/^(?:0'.|0b[0-1]+|0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[[PR.PR_COMMENT,/^%[^\r\n]*/,null,"%"],[PR.PR_COMMENT,/^\/\*[\s\S]*?\*\//],[PR.PR_KEYWORD,/^\s*:-\s(c(a(lls|tegory)|oinductive)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|od(e|ule)|ultifile)|reexport|s(et_(logtalk|prolog)_flag|ynchronized)|o(bject|p)|use(s|_module))/],[PR.PR_KEYWORD,/^\s*:-\s(e(lse|nd(if|_(category|object|protocol)))|built_in|dynamic|synchronized|threaded)/],[PR.PR_TYPE,/^[A-Z_][a-zA-Z0-9_]*/],[PR.PR_PUNCTUATION,/^[.,;{}:^<>=\\/+*?#!-]/]]),["logtalk","lgt"]);
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2008 Google Inc.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @fileoverview
|
20
|
+
* Registers a language handler for Lua.
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* To use, include prettify.js and this file in your HTML page.
|
24
|
+
* Then put your code in an HTML tag like
|
25
|
+
* <pre class="prettyprint lang-lua">(my Lua code)</pre>
|
26
|
+
*
|
27
|
+
*
|
28
|
+
* I used http://www.lua.org/manual/5.1/manual.html#2.1
|
29
|
+
* Because of the long-bracket concept used in strings and comments, Lua does
|
30
|
+
* not have a regular lexical grammar, but luckily it fits within the space
|
31
|
+
* of irregular grammars supported by javascript regular expressions.
|
32
|
+
*
|
33
|
+
* @author mikesamuel@gmail.com
|
34
|
+
*/
|
35
|
+
|
36
|
+
PR['registerLangHandler'](
|
37
|
+
PR['createSimpleLexer'](
|
38
|
+
[
|
39
|
+
// Whitespace
|
40
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
41
|
+
// A double or single quoted, possibly multi-line, string.
|
42
|
+
[PR['PR_STRING'], /^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])*(?:\'|$))/, null, '"\'']
|
43
|
+
],
|
44
|
+
[
|
45
|
+
// A comment is either a line comment that starts with two dashes, or
|
46
|
+
// two dashes preceding a long bracketed block.
|
47
|
+
[PR['PR_COMMENT'], /^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],
|
48
|
+
// A long bracketed block not preceded by -- is a string.
|
49
|
+
[PR['PR_STRING'], /^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],
|
50
|
+
[PR['PR_KEYWORD'], /^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/, null],
|
51
|
+
// A number is a hex integer literal, a decimal real literal, or in
|
52
|
+
// scientific notation.
|
53
|
+
[PR['PR_LITERAL'],
|
54
|
+
/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],
|
55
|
+
// An identifier
|
56
|
+
[PR['PR_PLAIN'], /^[a-z_]\w*/i],
|
57
|
+
// A run of punctuation
|
58
|
+
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r \xA0][^\w\t\n\r \xA0\"\'\-\+=]*/]
|
59
|
+
]),
|
60
|
+
['lua']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_STRING,/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])*(?:\'|$))/,null,"\"'"]],[[PR.PR_COMMENT,/^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],[PR.PR_STRING,/^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],[PR.PR_KEYWORD,/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],[PR.PR_LITERAL,/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],[PR.PR_PLAIN,/^[a-z_]\w*/i],[PR.PR_PUNCTUATION,/^[^\w\t\n\r \xA0][^\w\t\n\r \xA0\"\'\-\+=]*/]]),["lua"]);
|
@@ -0,0 +1,183 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (c) 2013 by Amro <amroamroamro@gmail.com>
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @fileoverview
|
26
|
+
* Registers a language handler for MATLAB.
|
27
|
+
*
|
28
|
+
* To use, include prettify.js and this file in your HTML page.
|
29
|
+
* Then put your code inside an HTML tag like
|
30
|
+
* <pre class="prettyprint lang-matlab">
|
31
|
+
* </pre>
|
32
|
+
*
|
33
|
+
* @see https://github.com/amroamroamro/prettify-matlab
|
34
|
+
*/
|
35
|
+
(function (PR) {
|
36
|
+
/*
|
37
|
+
PR_PLAIN: plain text
|
38
|
+
PR_STRING: string literals
|
39
|
+
PR_KEYWORD: keywords
|
40
|
+
PR_COMMENT: comments
|
41
|
+
PR_TYPE: types
|
42
|
+
PR_LITERAL: literal values (1, null, true, ..)
|
43
|
+
PR_PUNCTUATION: punctuation string
|
44
|
+
PR_SOURCE: embedded source
|
45
|
+
PR_DECLARATION: markup declaration such as a DOCTYPE
|
46
|
+
PR_TAG: sgml tag
|
47
|
+
PR_ATTRIB_NAME: sgml attribute name
|
48
|
+
PR_ATTRIB_VALUE: sgml attribute value
|
49
|
+
*/
|
50
|
+
var PR_IDENTIFIER = "ident",
|
51
|
+
PR_CONSTANT = "const",
|
52
|
+
PR_FUNCTION = "fun",
|
53
|
+
PR_FUNCTION_TOOLBOX = "fun_tbx",
|
54
|
+
PR_SYSCMD = "syscmd",
|
55
|
+
PR_CODE_OUTPUT = "codeoutput",
|
56
|
+
PR_ERROR = "err",
|
57
|
+
PR_WARNING = "wrn",
|
58
|
+
PR_TRANSPOSE = "transpose",
|
59
|
+
PR_LINE_CONTINUATION = "linecont";
|
60
|
+
|
61
|
+
// Refer to: http://www.mathworks.com/help/matlab/functionlist-alpha.html
|
62
|
+
var coreFunctions = [
|
63
|
+
'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'
|
64
|
+
].join("|");
|
65
|
+
var statsFunctions = [
|
66
|
+
'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'
|
67
|
+
].join("|");
|
68
|
+
var imageFunctions = [
|
69
|
+
'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'
|
70
|
+
].join("|");
|
71
|
+
var optimFunctions = [
|
72
|
+
'bintprog|color|fgoalattain|fminbnd|fmincon|fminimax|fminsearch|fminunc|fseminf|fsolve|fzero|fzmult|gangstr|ktrlink|linprog|lsqcurvefit|lsqlin|lsqnonlin|lsqnonneg|optimget|optimset|optimtool|quadprog'
|
73
|
+
].join("|");
|
74
|
+
|
75
|
+
// identifiers: variable/function name, or a chain of variable names joined by dots (obj.method, struct.field1.field2, etc..)
|
76
|
+
// valid variable names (start with letter, and contains letters, digits, and underscores).
|
77
|
+
// 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"
|
78
|
+
//var reIdent = '(?:[a-zA-Z][a-zA-Z0-9_]*)';
|
79
|
+
//var reIdentChain = '(?:' + reIdent + '(?:\.' + reIdent + ')*' + ')';
|
80
|
+
|
81
|
+
// patterns that always start with a known character. Must have a shortcut string.
|
82
|
+
var shortcutStylePatterns = [
|
83
|
+
// whitespaces: space, tab, carriage return, line feed, line tab, form-feed, non-break space
|
84
|
+
[PR.PR_PLAIN, /^[ \t\r\n\v\f\xA0]+/, null, " \t\r\n\u000b\u000c\u00a0"],
|
85
|
+
|
86
|
+
// block comments
|
87
|
+
//TODO: chokes on nested block comments
|
88
|
+
//TODO: false positives when the lines with %{ and %} contain non-spaces
|
89
|
+
//[PR.PR_COMMENT, /^%(?:[^\{].*|\{(?:%|%*[^\}%])*(?:\}+%?)?)/, null],
|
90
|
+
[PR.PR_COMMENT, /^%\{[^%]*%+(?:[^\}%][^%]*%+)*\}/, null],
|
91
|
+
|
92
|
+
// single-line comments
|
93
|
+
[PR.PR_COMMENT, /^%[^\r\n]*/, null, "%"],
|
94
|
+
|
95
|
+
// system commands
|
96
|
+
[PR_SYSCMD, /^![^\r\n]*/, null, "!"]
|
97
|
+
];
|
98
|
+
|
99
|
+
// patterns that will be tried in order if the shortcut ones fail. May have shortcuts.
|
100
|
+
var fallthroughStylePatterns = [
|
101
|
+
// line continuation
|
102
|
+
[PR_LINE_CONTINUATION, /^\.\.\.\s*[\r\n]/, null],
|
103
|
+
|
104
|
+
// error message
|
105
|
+
[PR_ERROR, /^\?\?\? [^\r\n]*/, null],
|
106
|
+
|
107
|
+
// warning message
|
108
|
+
[PR_WARNING, /^Warning: [^\r\n]*/, null],
|
109
|
+
|
110
|
+
// command prompt/output
|
111
|
+
//[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`
|
112
|
+
[PR_CODE_OUTPUT, /^>>\s+/, null], // only the command prompt `>> `
|
113
|
+
[PR_CODE_OUTPUT, /^octave:\d+>\s+/, null], // Octave command prompt `octave:1> `
|
114
|
+
|
115
|
+
// identifier (chain) or closing-parenthesis/brace/bracket, and IS followed by transpose operator
|
116
|
+
// this way we dont misdetect the transpose operator ' as the start of a string
|
117
|
+
["lang-matlab-operators", /^((?:[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*|\)|\]|\}|\.)')/, null],
|
118
|
+
|
119
|
+
// identifier (chain), and NOT followed by transpose operator
|
120
|
+
// this must come AFTER the "is followed by transpose" step (otherwise it chops the last char of identifier)
|
121
|
+
["lang-matlab-identifiers", /^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)(?!')/, null],
|
122
|
+
|
123
|
+
// single-quoted strings: allow for escaping with '', no multilines
|
124
|
+
//[PR.PR_STRING, /(?:(?<=(?:\(|\[|\{|\s|=|;|,|:))|^)'(?:[^']|'')*'(?=(?:\)|\]|\}|\s|=|;|,|:|~|<|>|&|-|\+|\*|\.|\^|\|))/, null], // string vs. transpose (check before/after context using negative/positive lookbehind/lookahead)
|
125
|
+
[PR.PR_STRING, /^'(?:[^']|'')*'/, null], // "'"
|
126
|
+
|
127
|
+
// floating point numbers: 1, 1.0, 1i, -1.1E-1
|
128
|
+
[PR.PR_LITERAL, /^[+\-]?\.?\d+(?:\.\d*)?(?:[Ee][+\-]?\d+)?[ij]?/, null],
|
129
|
+
|
130
|
+
// parentheses, braces, brackets
|
131
|
+
[PR.PR_TAG, /^(?:\{|\}|\(|\)|\[|\])/, null], // "{}()[]"
|
132
|
+
|
133
|
+
// other operators
|
134
|
+
[PR.PR_PUNCTUATION, /^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/, null]
|
135
|
+
];
|
136
|
+
|
137
|
+
var identifiersPatterns = [
|
138
|
+
// list of keywords (`iskeyword`)
|
139
|
+
[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],
|
140
|
+
|
141
|
+
// some specials variables/constants
|
142
|
+
[PR_CONSTANT, /^\b(?:true|false|inf|Inf|nan|NaN|eps|pi|ans|nargin|nargout|varargin|varargout)\b/, null],
|
143
|
+
|
144
|
+
// some data types
|
145
|
+
[PR.PR_TYPE, /^\b(?:cell|struct|char|double|single|logical|u?int(?:8|16|32|64)|sparse)\b/, null],
|
146
|
+
|
147
|
+
// commonly used builtin functions from core MATLAB and a few popular toolboxes
|
148
|
+
[PR_FUNCTION, new RegExp('^\\b(?:' + coreFunctions + ')\\b'), null],
|
149
|
+
[PR_FUNCTION_TOOLBOX, new RegExp('^\\b(?:' + statsFunctions + ')\\b'), null],
|
150
|
+
[PR_FUNCTION_TOOLBOX, new RegExp('^\\b(?:' + imageFunctions + ')\\b'), null],
|
151
|
+
[PR_FUNCTION_TOOLBOX, new RegExp('^\\b(?:' + optimFunctions + ')\\b'), null],
|
152
|
+
|
153
|
+
// plain identifier (user-defined variable/function name)
|
154
|
+
[PR_IDENTIFIER, /^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*/, null]
|
155
|
+
];
|
156
|
+
|
157
|
+
var operatorsPatterns = [
|
158
|
+
// forward to identifiers to match
|
159
|
+
["lang-matlab-identifiers", /^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)/, null],
|
160
|
+
|
161
|
+
// parentheses, braces, brackets
|
162
|
+
[PR.PR_TAG, /^(?:\{|\}|\(|\)|\[|\])/, null], // "{}()[]"
|
163
|
+
|
164
|
+
// other operators
|
165
|
+
[PR.PR_PUNCTUATION, /^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/, null],
|
166
|
+
|
167
|
+
// transpose operators
|
168
|
+
[PR_TRANSPOSE, /^'/, null]
|
169
|
+
];
|
170
|
+
|
171
|
+
PR.registerLangHandler(
|
172
|
+
PR.createSimpleLexer([], identifiersPatterns),
|
173
|
+
["matlab-identifiers"]
|
174
|
+
);
|
175
|
+
PR.registerLangHandler(
|
176
|
+
PR.createSimpleLexer([], operatorsPatterns),
|
177
|
+
["matlab-operators"]
|
178
|
+
);
|
179
|
+
PR.registerLangHandler(
|
180
|
+
PR.createSimpleLexer(shortcutStylePatterns, fallthroughStylePatterns),
|
181
|
+
["matlab"]
|
182
|
+
);
|
183
|
+
})(window['PR']);
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e){var t="fun_tbx",r="codeoutput",a=["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"].join("|"),i=["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"].join("|"),n=["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"].join("|"),s=["bintprog|color|fgoalattain|fminbnd|fmincon|fminimax|fminsearch|fminunc|fseminf|fsolve|fzero|fzmult|gangstr|ktrlink|linprog|lsqcurvefit|lsqlin|lsqnonlin|lsqnonneg|optimget|optimset|optimtool|quadprog"].join("|"),o=[[e.PR_PLAIN,/^[ \t\r\n\v\f\xA0]+/,null," \t\r\n\v\f "],[e.PR_COMMENT,/^%\{[^%]*%+(?:[^\}%][^%]*%+)*\}/,null],[e.PR_COMMENT,/^%[^\r\n]*/,null,"%"],["syscmd",/^![^\r\n]*/,null,"!"]],r=[["linecont",/^\.\.\.\s*[\r\n]/,null],["err",/^\?\?\? [^\r\n]*/,null],["wrn",/^Warning: [^\r\n]*/,null],[r,/^>>\s+/,null],[r,/^octave:\d+>\s+/,null],["lang-matlab-operators",/^((?:[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*|\)|\]|\}|\.)')/,null],["lang-matlab-identifiers",/^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)(?!')/,null],[e.PR_STRING,/^'(?:[^']|'')*'/,null],[e.PR_LITERAL,/^[+\-]?\.?\d+(?:\.\d*)?(?:[Ee][+\-]?\d+)?[ij]?/,null],[e.PR_TAG,/^(?:\{|\}|\(|\)|\[|\])/,null],[e.PR_PUNCTUATION,/^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/,null]],a=[[e.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],["const",/^\b(?:true|false|inf|Inf|nan|NaN|eps|pi|ans|nargin|nargout|varargin|varargout)\b/,null],[e.PR_TYPE,/^\b(?:cell|struct|char|double|single|logical|u?int(?:8|16|32|64)|sparse)\b/,null],["fun",new RegExp("^\\b(?:"+a+")\\b"),null],[t,new RegExp("^\\b(?:"+i+")\\b"),null],[t,new RegExp("^\\b(?:"+n+")\\b"),null],[t,new RegExp("^\\b(?:"+s+")\\b"),null],["ident",/^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*/,null]],i=[["lang-matlab-identifiers",/^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)/,null],[e.PR_TAG,/^(?:\{|\}|\(|\)|\[|\])/,null],[e.PR_PUNCTUATION,/^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/,null],["transpose",/^'/,null]];e.registerLangHandler(e.createSimpleLexer([],a),["matlab-identifiers"]),e.registerLangHandler(e.createSimpleLexer([],i),["matlab-operators"]),e.registerLangHandler(e.createSimpleLexer(o,r),["matlab"])}(window.PR);
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2008 Google Inc.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @fileoverview
|
20
|
+
* Registers a language handler for OCaml, SML, F# and similar languages.
|
21
|
+
*
|
22
|
+
* Based on the lexical grammar at
|
23
|
+
* http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/spec.html#_Toc270597388
|
24
|
+
*
|
25
|
+
* @author mikesamuel@gmail.com
|
26
|
+
*/
|
27
|
+
|
28
|
+
PR['registerLangHandler'](
|
29
|
+
PR['createSimpleLexer'](
|
30
|
+
[
|
31
|
+
// Whitespace is made up of spaces, tabs and newline characters.
|
32
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
33
|
+
// #if ident/#else/#endif directives delimit conditional compilation
|
34
|
+
// sections
|
35
|
+
[PR['PR_COMMENT'],
|
36
|
+
/^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,
|
37
|
+
null, '#'],
|
38
|
+
// A double or single quoted, possibly multi-line, string.
|
39
|
+
// F# allows escaped newlines in strings.
|
40
|
+
[PR['PR_STRING'], /^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/, null, '"\'']
|
41
|
+
],
|
42
|
+
[
|
43
|
+
// Block comments are delimited by (* and *) and may be
|
44
|
+
// nested. Single-line comments begin with // and extend to
|
45
|
+
// the end of a line.
|
46
|
+
// TODO: (*...*) comments can be nested. This does not handle that.
|
47
|
+
[PR['PR_COMMENT'], /^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],
|
48
|
+
[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/],
|
49
|
+
// A number is a hex integer literal, a decimal real literal, or in
|
50
|
+
// scientific notation.
|
51
|
+
[PR['PR_LITERAL'],
|
52
|
+
/^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],
|
53
|
+
[PR['PR_PLAIN'], /^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],
|
54
|
+
// A printable non-space non-special character
|
55
|
+
[PR['PR_PUNCTUATION'], /^[^\t\n\r \xA0\"\'\w]+/]
|
56
|
+
]),
|
57
|
+
['fs', 'ml']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_COMMENT,/^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,null,"#"],[PR.PR_STRING,/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/,null,"\"'"]],[[PR.PR_COMMENT,/^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],[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/],[PR.PR_LITERAL,/^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],[PR.PR_PLAIN,/^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],[PR.PR_PUNCTUATION,/^[^\t\n\r \xA0\"\'\w]+/]]),["fs","ml"]);
|