@macallumharvey/first-test-wet 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/WetButton.d.ts +9 -0
- package/dist/WetModal.d.ts +6 -0
- package/dist/first-test-wet.cjs.development.js +26 -0
- 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 +26 -1
- package/dist/first-test-wet.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/WetButton.tsx +19 -0
- package/src/WetModal.tsx +25 -0
- package/src/index.tsx +2 -2
- 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,140 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2011 Kitware 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 MUMPS.
|
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-mumps">(my SQL code)</pre>
|
26
|
+
*
|
27
|
+
* Commands, intrinsic functions and variables taken from ISO/IEC 11756:1999(E)
|
28
|
+
*
|
29
|
+
* @author chris.harris@kitware.com
|
30
|
+
*
|
31
|
+
* Known issues:
|
32
|
+
*
|
33
|
+
* - Currently can't distinguish between keywords and local or global variables having the same name
|
34
|
+
* for exampe SET IF="IF?"
|
35
|
+
* - m file are already used for MatLab hence using mumps.
|
36
|
+
*/
|
37
|
+
|
38
|
+
(function () {
|
39
|
+
|
40
|
+
|
41
|
+
var commands = 'B|BREAK|' +
|
42
|
+
'C|CLOSE|' +
|
43
|
+
'D|DO|' +
|
44
|
+
'E|ELSE|' +
|
45
|
+
'F|FOR|' +
|
46
|
+
'G|GOTO|' +
|
47
|
+
'H|HALT|' +
|
48
|
+
'H|HANG|' +
|
49
|
+
'I|IF|' +
|
50
|
+
'J|JOB|' +
|
51
|
+
'K|KILL|' +
|
52
|
+
'L|LOCK|' +
|
53
|
+
'M|MERGE|' +
|
54
|
+
'N|NEW|' +
|
55
|
+
'O|OPEN|' +
|
56
|
+
'Q|QUIT|' +
|
57
|
+
'R|READ|' +
|
58
|
+
'S|SET|' +
|
59
|
+
'TC|TCOMMIT|' +
|
60
|
+
'TRE|TRESTART|' +
|
61
|
+
'TRO|TROLLBACK|' +
|
62
|
+
'TS|TSTART|' +
|
63
|
+
'U|USE|' +
|
64
|
+
'V|VIEW|' +
|
65
|
+
'W|WRITE|' +
|
66
|
+
'X|XECUTE';
|
67
|
+
|
68
|
+
var intrinsicVariables = 'D|DEVICE|' +
|
69
|
+
'EC|ECODE|' +
|
70
|
+
'ES|ESTACK|' +
|
71
|
+
'ET|ETRAP|' +
|
72
|
+
'H|HOROLOG|' +
|
73
|
+
'I|IO|' +
|
74
|
+
'J|JOB|' +
|
75
|
+
'K|KEY|' +
|
76
|
+
'P|PRINCIPAL|' +
|
77
|
+
'Q|QUIT|' +
|
78
|
+
'ST|STACK|' +
|
79
|
+
'S|STORAGE|' +
|
80
|
+
'SY|SYSTEM|' +
|
81
|
+
'T|TEST|' +
|
82
|
+
'TL|TLEVEL|' +
|
83
|
+
'TR|TRESTART|' +
|
84
|
+
'X|' +
|
85
|
+
'Y|' +
|
86
|
+
'Z[A-Z]*|';
|
87
|
+
|
88
|
+
var intrinsicFunctions = 'A|ASCII|' +
|
89
|
+
'C|CHAR|' +
|
90
|
+
'D|DATA|' +
|
91
|
+
'E|EXTRACT|' +
|
92
|
+
'F|FIND|' +
|
93
|
+
'FN|FNUMBER|' +
|
94
|
+
'G|GET|' +
|
95
|
+
'J|JUSTIFY|' +
|
96
|
+
'L|LENGTH|' +
|
97
|
+
'NA|NAME|' +
|
98
|
+
'O|ORDER|' +
|
99
|
+
'P|PIECE|' +
|
100
|
+
'QL|QLENGTH|' +
|
101
|
+
'QS|QSUBSCRIPT|' +
|
102
|
+
'Q|QUERY|' +
|
103
|
+
'R|RANDOM|' +
|
104
|
+
'RE|REVERSE|' +
|
105
|
+
'S|SELECT|' +
|
106
|
+
'ST|STACK|' +
|
107
|
+
'T|TEXT|' +
|
108
|
+
'TR|TRANSLATE|' +
|
109
|
+
'V|VIEW|' *
|
110
|
+
'Z[A-Z]*|';
|
111
|
+
|
112
|
+
var intrinsic = intrinsicVariables + intrinsicFunctions;
|
113
|
+
|
114
|
+
|
115
|
+
var shortcutStylePatterns = [
|
116
|
+
// Whitespace
|
117
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
118
|
+
// A double or single quoted, possibly multi-line, string.
|
119
|
+
[PR['PR_STRING'], /^(?:"(?:[^"]|\\.)*")/, null, '"']
|
120
|
+
];
|
121
|
+
|
122
|
+
var fallthroughStylePatterns = [
|
123
|
+
// A line comment that starts with ;
|
124
|
+
[PR['PR_COMMENT'], /^;[^\r\n]*/, null, ';'],
|
125
|
+
// Add intrinsic variables and functions as declarations, there not really but it mean
|
126
|
+
// they will hilighted differently from commands.
|
127
|
+
[PR['PR_DECLARATION'], new RegExp('^(?:\\$(?:' + intrinsic + '))\\b', 'i'), null],
|
128
|
+
// Add commands as keywords
|
129
|
+
[PR['PR_KEYWORD'], new RegExp('^(?:[^\\$]' + commands + ')\\b', 'i'), null],
|
130
|
+
// A number is a decimal real literal or in scientific notation.
|
131
|
+
[PR['PR_LITERAL'],
|
132
|
+
/^[+-]?(?:(?:\.\d+|\d+(?:\.\d*)?)(?:E[+\-]?\d+)?)/i],
|
133
|
+
// An identifier
|
134
|
+
[PR['PR_PLAIN'], /^[a-z][a-zA-Z0-9]*/i],
|
135
|
+
// Exclude $ % and ^
|
136
|
+
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r\xA0\"\$;%\^]|_/]
|
137
|
+
];
|
138
|
+
// Can't use m as its already used for MatLab
|
139
|
+
PR.registerLangHandler(PR.createSimpleLexer(shortcutStylePatterns, fallthroughStylePatterns), ['mumps']);
|
140
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(){var E=[[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_STRING,/^(?:"(?:[^"]|\\.)*")/,null,'"']],T=[[PR.PR_COMMENT,/^;[^\r\n]*/,null,";"],[PR.PR_DECLARATION,new RegExp("^(?:\\$(?:D|DEVICE|EC|ECODE|ES|ESTACK|ET|ETRAP|H|HOROLOG|I|IO|J|JOB|K|KEY|P|PRINCIPAL|Q|QUIT|ST|STACK|S|STORAGE|SY|SYSTEM|T|TEST|TL|TLEVEL|TR|TRESTART|X|Y|Z[A-Z]*|A|ASCII|C|CHAR|D|DATA|E|EXTRACT|F|FIND|FN|FNUMBER|G|GET|J|JUSTIFY|L|LENGTH|NA|NAME|O|ORDER|P|PIECE|QL|QLENGTH|QS|QSUBSCRIPT|Q|QUERY|R|RANDOM|RE|REVERSE|S|SELECT|ST|STACK|T|TEXT|TR|TRANSLATE|NaN))\\b","i"),null],[PR.PR_KEYWORD,new RegExp("^(?:[^\\$]B|BREAK|C|CLOSE|D|DO|E|ELSE|F|FOR|G|GOTO|H|HALT|H|HANG|I|IF|J|JOB|K|KILL|L|LOCK|M|MERGE|N|NEW|O|OPEN|Q|QUIT|R|READ|S|SET|TC|TCOMMIT|TRE|TRESTART|TRO|TROLLBACK|TS|TSTART|U|USE|V|VIEW|W|WRITE|X|XECUTE)\\b","i"),null],[PR.PR_LITERAL,/^[+-]?(?:(?:\.\d+|\d+(?:\.\d*)?)(?:E[+\-]?\d+)?)/i],[PR.PR_PLAIN,/^[a-z][a-zA-Z0-9]*/i],[PR.PR_PUNCTUATION,/^[^\w\t\n\r\xA0\"\$;%\^]|_/]];PR.registerLangHandler(PR.createSimpleLexer(E,T),["mumps"])}();
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2011 Zimin A.V.
|
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 the Nemerle language.
|
21
|
+
* http://nemerle.org
|
22
|
+
* @author Zimin A.V.
|
23
|
+
*/
|
24
|
+
(function () {
|
25
|
+
// http://nemerle.org/wiki/index.php?title=Base_keywords
|
26
|
+
var keywords = 'abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|'
|
27
|
+
+ 'fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|'
|
28
|
+
+ 'null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|'
|
29
|
+
+ 'syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|'
|
30
|
+
+ 'assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|'
|
31
|
+
+ 'otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield';
|
32
|
+
|
33
|
+
PR['registerLangHandler'](PR['createSimpleLexer'](
|
34
|
+
// shortcutStylePatterns
|
35
|
+
[
|
36
|
+
[PR['PR_STRING'], /^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, '"'],
|
37
|
+
[PR['PR_COMMENT'], /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, null, '#'],
|
38
|
+
[PR['PR_PLAIN'], /^\s+/, null, ' \r\n\t\xA0']
|
39
|
+
],
|
40
|
+
// fallthroughStylePatterns
|
41
|
+
[
|
42
|
+
[PR['PR_STRING'], /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null],
|
43
|
+
[PR['PR_STRING'], /^<#(?:[^#>])*(?:#>|$)/, null],
|
44
|
+
[PR['PR_STRING'], /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null],
|
45
|
+
[PR['PR_COMMENT'], /^\/\/[^\r\n]*/, null],
|
46
|
+
[PR['PR_COMMENT'], /^\/\*[\s\S]*?(?:\*\/|$)/, null],
|
47
|
+
[PR['PR_KEYWORD'], new RegExp('^(?:' + keywords + ')\\b'), null],
|
48
|
+
[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],
|
49
|
+
[PR['PR_LITERAL'], /^@[a-z_$][a-z_$@0-9]*/i, null],
|
50
|
+
[PR['PR_TYPE'], /^@[A-Z]+[a-z][A-Za-z_$@0-9]*/, null],
|
51
|
+
[PR['PR_PLAIN'], /^'?[A-Za-z_$][a-z_$@0-9]*/i, null],
|
52
|
+
[PR['PR_LITERAL'], new RegExp(
|
53
|
+
'^(?:'
|
54
|
+
// A hex number
|
55
|
+
+ '0x[a-f0-9]+'
|
56
|
+
// or an octal or decimal number,
|
57
|
+
+ '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
|
58
|
+
// possibly in scientific notation
|
59
|
+
+ '(?:e[+\\-]?\\d+)?'
|
60
|
+
+ ')'
|
61
|
+
// with an optional modifier like UL for unsigned long
|
62
|
+
+ '[a-z]*', 'i'), null, '0123456789'],
|
63
|
+
|
64
|
+
[PR['PR_PUNCTUATION'], /^.[^\s\w\.$@\'\"\`\/\#]*/, null]
|
65
|
+
]),
|
66
|
+
['n', 'nemerle']);
|
67
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_STRING,/^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,'"'],[PR.PR_COMMENT,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"],[PR.PR_PLAIN,/^\s+/,null," \r\n\t "]],[[PR.PR_STRING,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null],[PR.PR_STRING,/^<#(?:[^#>])*(?:#>|$)/,null],[PR.PR_STRING,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null],[PR.PR_COMMENT,/^\/\/[^\r\n]*/,null],[PR.PR_COMMENT,/^\/\*[\s\S]*?(?:\*\/|$)/,null],[PR.PR_KEYWORD,new RegExp("^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\\b"),null],[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],[PR.PR_LITERAL,/^@[a-z_$][a-z_$@0-9]*/i,null],[PR.PR_TYPE,/^@[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],[PR.PR_PLAIN,/^'?[A-Za-z_$][a-z_$@0-9]*/i,null],[PR.PR_LITERAL,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[PR.PR_PUNCTUATION,/^.[^\s\w\.$@\'\"\`\/\#]*/,null]]),["n","nemerle"]);
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2013 Peter Kofler
|
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
|
+
// Contributed by peter dot kofler at code minus cop dot org
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @fileoverview
|
22
|
+
* Registers a language handler for (Turbo) Pascal.
|
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-pascal">(my Pascal code)</pre>
|
27
|
+
*
|
28
|
+
* @author peter dot kofler at code minus cop dot org
|
29
|
+
*/
|
30
|
+
|
31
|
+
PR.registerLangHandler(
|
32
|
+
PR.createSimpleLexer(
|
33
|
+
[ // shortcutStylePatterns
|
34
|
+
// 'single-line-string'
|
35
|
+
[PR.PR_STRING, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$))/, null, '\''],
|
36
|
+
// Whitespace
|
37
|
+
[PR.PR_PLAIN, /^\s+/, null, ' \r\n\t\xA0']
|
38
|
+
],
|
39
|
+
[ // fallthroughStylePatterns
|
40
|
+
// A cStyleComments comment (* *) or {}
|
41
|
+
[PR.PR_COMMENT, /^\(\*[\s\S]*?(?:\*\)|$)|^\{[\s\S]*?(?:\}|$)/, null],
|
42
|
+
[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],
|
43
|
+
[PR.PR_LITERAL, /^(?:true|false|self|nil)/i, null],
|
44
|
+
[PR.PR_PLAIN, /^[a-z][a-z0-9]*/i, null],
|
45
|
+
// Literals .0, 0, 0.0 0E13
|
46
|
+
[PR.PR_LITERAL, /^(?:\$[a-f0-9]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?)/i, null, '0123456789'],
|
47
|
+
[PR.PR_PUNCTUATION, /^.[^\s\w\.$@\'\/]*/, null]
|
48
|
+
]),
|
49
|
+
['pascal']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_STRING,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$))/,null,"'"],[PR.PR_PLAIN,/^\s+/,null," \r\n\t "]],[[PR.PR_COMMENT,/^\(\*[\s\S]*?(?:\*\)|$)|^\{[\s\S]*?(?:\}|$)/,null],[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],[PR.PR_LITERAL,/^(?:true|false|self|nil)/i,null],[PR.PR_PLAIN,/^[a-z][a-z0-9]*/i,null],[PR.PR_LITERAL,/^(?:\$[a-f0-9]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?)/i,null,"0123456789"],[PR.PR_PUNCTUATION,/^.[^\s\w\.$@\'\/]*/,null]]),["pascal"]);
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2006 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 Protocol Buffers as described at
|
21
|
+
* http://code.google.com/p/protobuf/.
|
22
|
+
*
|
23
|
+
* Based on the lexical grammar at
|
24
|
+
* http://research.microsoft.com/fsharp/manual/spec2.aspx#_Toc202383715
|
25
|
+
*
|
26
|
+
* @author mikesamuel@gmail.com
|
27
|
+
*/
|
28
|
+
|
29
|
+
PR['registerLangHandler'](PR['sourceDecorator']({
|
30
|
+
'keywords': (
|
31
|
+
'bytes,default,double,enum,extend,extensions,false,'
|
32
|
+
+ 'group,import,max,message,option,'
|
33
|
+
+ 'optional,package,repeated,required,returns,rpc,service,'
|
34
|
+
+ 'syntax,to,true'),
|
35
|
+
'types': /^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,
|
36
|
+
'cStyleComments': true
|
37
|
+
}), ['proto']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]);
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2012 Jeffrey B. Arnold
|
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 S, S-plus, and R source code.
|
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-r"> code </pre>
|
26
|
+
*
|
27
|
+
* Language definition from
|
28
|
+
* http://cran.r-project.org/doc/manuals/R-lang.html.
|
29
|
+
* Many of the regexes are shared with the pygments SLexer,
|
30
|
+
* http://pygments.org/.
|
31
|
+
*
|
32
|
+
* Original: https://raw.github.com/jrnold/prettify-lang-r-bugs/master/lang-r.js
|
33
|
+
*
|
34
|
+
* @author jeffrey.arnold@gmail.com
|
35
|
+
*/
|
36
|
+
PR['registerLangHandler'](
|
37
|
+
PR['createSimpleLexer'](
|
38
|
+
[
|
39
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
40
|
+
[PR['PR_STRING'], /^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/, null, '"'],
|
41
|
+
[PR['PR_STRING'], /^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/, null, "'"]
|
42
|
+
],
|
43
|
+
[
|
44
|
+
[PR['PR_COMMENT'], /^#.*/],
|
45
|
+
[PR['PR_KEYWORD'], /^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],
|
46
|
+
// hex numbes
|
47
|
+
[PR['PR_LITERAL'], /^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],
|
48
|
+
// Decimal numbers
|
49
|
+
[PR['PR_LITERAL'], /^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],
|
50
|
+
// builtin symbols
|
51
|
+
[PR['PR_LITERAL'], /^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],
|
52
|
+
// assignment, operators, and parens, etc.
|
53
|
+
[PR['PR_PUNCTUATION'], /^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],
|
54
|
+
// valid variable names
|
55
|
+
[PR['PR_PLAIN'], /^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],
|
56
|
+
// string backtick
|
57
|
+
[PR['PR_STRING'], /^`.+`/]
|
58
|
+
]),
|
59
|
+
['r', 's', 'R', 'S', 'Splus']);
|
@@ -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_STRING,/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[[PR.PR_COMMENT,/^#.*/],[PR.PR_KEYWORD,/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],[PR.PR_LITERAL,/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],[PR.PR_LITERAL,/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],[PR.PR_LITERAL,/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],[PR.PR_PUNCTUATION,/^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],[PR.PR_PLAIN,/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],[PR.PR_STRING,/^`.+`/]]),["r","s","R","S","Splus"]);
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2012 Jeffrey Arnold
|
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
|
+
* Support for R documentation (Rd) files
|
21
|
+
*
|
22
|
+
* Minimal highlighting or Rd files, basically just highlighting
|
23
|
+
* macros. It does not try to identify verbatim or R-like regions of
|
24
|
+
* macros as that is too complicated for a lexer. Descriptions of the
|
25
|
+
* Rd format can be found
|
26
|
+
* http://cran.r-project.org/doc/manuals/R-exts.html and
|
27
|
+
* http://developer.r-project.org/parseRd.pdf.
|
28
|
+
*
|
29
|
+
* @author Jeffrey Arnold
|
30
|
+
*/
|
31
|
+
PR['registerLangHandler'](
|
32
|
+
PR['createSimpleLexer'](
|
33
|
+
[
|
34
|
+
// whitespace
|
35
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
36
|
+
// all comments begin with '%'
|
37
|
+
[PR['PR_COMMENT'], /^%[^\r\n]*/, null, '%']
|
38
|
+
],
|
39
|
+
[// special macros with no args
|
40
|
+
[PR['PR_LITERAL'], /^\\(?:cr|l?dots|R|tab)\b/],
|
41
|
+
// macros
|
42
|
+
[PR['PR_KEYWORD'], /^\\[a-zA-Z@]+/],
|
43
|
+
// highlighted as macros, since technically they are
|
44
|
+
[PR['PR_KEYWORD'], /^#(?:ifn?def|endif)/ ],
|
45
|
+
// catch escaped brackets
|
46
|
+
[PR['PR_PLAIN'], /^\\[{}]/],
|
47
|
+
// punctuation
|
48
|
+
[PR['PR_PUNCTUATION'], /^[{}()\[\]]+/]
|
49
|
+
]),
|
50
|
+
['Rd', 'rd']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_COMMENT,/^%[^\r\n]*/,null,"%"]],[[PR.PR_LITERAL,/^\\(?:cr|l?dots|R|tab)\b/],[PR.PR_KEYWORD,/^\\[a-zA-Z@]+/],[PR.PR_KEYWORD,/^#(?:ifn?def|endif)/],[PR.PR_PLAIN,/^\\[{}]/],[PR.PR_PUNCTUATION,/^[{}()\[\]]+/]]),["Rd","rd"]);
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2015 Chris Morgan
|
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 Rust.
|
21
|
+
*
|
22
|
+
* Derived from prior experience implementing similar things in a few environments,
|
23
|
+
* most especially rust.vim.
|
24
|
+
*
|
25
|
+
* @author me@chrismorgan.info
|
26
|
+
*/
|
27
|
+
|
28
|
+
PR['registerLangHandler'](
|
29
|
+
PR['createSimpleLexer']([], [
|
30
|
+
// Whitespace
|
31
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/],
|
32
|
+
|
33
|
+
// Single line comments
|
34
|
+
[PR['PR_COMMENT'], /^\/\/.*/],
|
35
|
+
// Block comments (sadly I do not see how to make this cope with comment nesting as it should)
|
36
|
+
[PR['PR_COMMENT'], /^\/\*[\s\S]*?(?:\*\/|$)/],//, null],
|
37
|
+
// String and character literals
|
38
|
+
[PR['PR_STRING'], /^b"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}))*?"/], // Bytes literal
|
39
|
+
[PR['PR_STRING'], /^"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}|u\{\[\da-fA-F]{1,6}\}))*?"/], // String literal
|
40
|
+
[PR['PR_STRING'], /^b?r(#*)\"[\s\S]*?\"\1/], // Raw string/bytes literal
|
41
|
+
[PR['PR_STRING'], /^b'([^\\]|\\(.|x[\da-fA-F]{2}))'/], // Byte literal
|
42
|
+
[PR['PR_STRING'], /^'([^\\]|\\(.|x[\da-fA-F]{2}|u\{[\da-fA-F]{1,6}\}))'/], // Character literal
|
43
|
+
|
44
|
+
// Lifetime
|
45
|
+
[PR['PR_TAG'], /^'\w+?\b/],
|
46
|
+
|
47
|
+
// Keywords, reserved keywords and primitive types
|
48
|
+
[PR['PR_KEYWORD'], /^(?:match|if|else|as|break|box|continue|extern|fn|for|in|if|impl|let|loop|pub|return|super|unsafe|where|while|use|mod|trait|struct|enum|type|move|mut|ref|static|const|crate)\b/],
|
49
|
+
[PR['PR_KEYWORD'], /^(?:alignof|become|do|offsetof|priv|pure|sizeof|typeof|unsized|yield|abstract|virtual|final|override|macro)\b/],
|
50
|
+
[PR['PR_TYPE'], /^(?:[iu](8|16|32|64|size)|char|bool|f32|f64|str|Self)\b/],
|
51
|
+
|
52
|
+
// Rust 1.0 prelude items
|
53
|
+
[PR['PR_TYPE'], /^(?:Copy|Send|Sized|Sync|Drop|Fn|FnMut|FnOnce|Box|ToOwned|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator|Option|Some|None|Result|Ok|Err|SliceConcatExt|String|ToString|Vec)\b/],
|
54
|
+
|
55
|
+
// Literals:
|
56
|
+
[PR['PR_LITERAL'], /^(self|true|false|null)\b/],
|
57
|
+
// A number is a hex integer literal, a decimal real literal, or in
|
58
|
+
// scientific notation.
|
59
|
+
// Integer literals: decimal, hexadecimal, octal, binary.
|
60
|
+
[PR['PR_LITERAL'], /^\d[0-9_]*(?:[iu](?:size|8|16|32|64))?/],
|
61
|
+
[PR['PR_LITERAL'], /^0x[a-fA-F0-9_]+(?:[iu](?:size|8|16|32|64))?/],
|
62
|
+
[PR['PR_LITERAL'], /^0o[0-7_]+(?:[iu](?:size|8|16|32|64))?/],
|
63
|
+
[PR['PR_LITERAL'], /^0b[01_]+(?:[iu](?:size|8|16|32|64))?/],
|
64
|
+
// Float literals
|
65
|
+
[PR['PR_LITERAL'], /^\d[0-9_]*\.(?![^\s\d.])/],
|
66
|
+
[PR['PR_LITERAL'], /^\d[0-9_]*(?:\.\d[0-9_]*)(?:[eE][+-]?[0-9_]+)?(?:f32|f64)?/],
|
67
|
+
[PR['PR_LITERAL'], /^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)(?:f32|f64)?/],
|
68
|
+
[PR['PR_LITERAL'], /^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)?(?:f32|f64)/],
|
69
|
+
|
70
|
+
// Macro invocations (an identifier plus a !)
|
71
|
+
[PR['PR_ATTRIB_NAME'], /^[a-z_]\w*!/i],
|
72
|
+
// An identifier (sorry, this should be unicode)
|
73
|
+
[PR['PR_PLAIN'], /^[a-z_]\w*/i],
|
74
|
+
// Attributes
|
75
|
+
[PR['PR_ATTRIB_VALUE'], /^#!?\[[\s\S]*?\]/],
|
76
|
+
// All the punctuation
|
77
|
+
[PR['PR_PUNCTUATION'], /^[+\-/*=^&|!<>%[\](){}?:.,;]/],
|
78
|
+
// Anything else (which is probably illegal, as all the legal stuff should have been covered) can be plain
|
79
|
+
[PR['PR_PLAIN'], /./]
|
80
|
+
]),
|
81
|
+
['rust']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_PLAIN,/^[\t\n\r \xA0]+/],[PR.PR_COMMENT,/^\/\/.*/],[PR.PR_COMMENT,/^\/\*[\s\S]*?(?:\*\/|$)/],[PR.PR_STRING,/^b"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}))*?"/],[PR.PR_STRING,/^"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}|u\{\[\da-fA-F]{1,6}\}))*?"/],[PR.PR_STRING,/^b?r(#*)\"[\s\S]*?\"\1/],[PR.PR_STRING,/^b'([^\\]|\\(.|x[\da-fA-F]{2}))'/],[PR.PR_STRING,/^'([^\\]|\\(.|x[\da-fA-F]{2}|u\{[\da-fA-F]{1,6}\}))'/],[PR.PR_TAG,/^'\w+?\b/],[PR.PR_KEYWORD,/^(?:match|if|else|as|break|box|continue|extern|fn|for|in|if|impl|let|loop|pub|return|super|unsafe|where|while|use|mod|trait|struct|enum|type|move|mut|ref|static|const|crate)\b/],[PR.PR_KEYWORD,/^(?:alignof|become|do|offsetof|priv|pure|sizeof|typeof|unsized|yield|abstract|virtual|final|override|macro)\b/],[PR.PR_TYPE,/^(?:[iu](8|16|32|64|size)|char|bool|f32|f64|str|Self)\b/],[PR.PR_TYPE,/^(?:Copy|Send|Sized|Sync|Drop|Fn|FnMut|FnOnce|Box|ToOwned|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator|Option|Some|None|Result|Ok|Err|SliceConcatExt|String|ToString|Vec)\b/],[PR.PR_LITERAL,/^(self|true|false|null)\b/],[PR.PR_LITERAL,/^\d[0-9_]*(?:[iu](?:size|8|16|32|64))?/],[PR.PR_LITERAL,/^0x[a-fA-F0-9_]+(?:[iu](?:size|8|16|32|64))?/],[PR.PR_LITERAL,/^0o[0-7_]+(?:[iu](?:size|8|16|32|64))?/],[PR.PR_LITERAL,/^0b[01_]+(?:[iu](?:size|8|16|32|64))?/],[PR.PR_LITERAL,/^\d[0-9_]*\.(?![^\s\d.])/],[PR.PR_LITERAL,/^\d[0-9_]*(?:\.\d[0-9_]*)(?:[eE][+-]?[0-9_]+)?(?:f32|f64)?/],[PR.PR_LITERAL,/^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)(?:f32|f64)?/],[PR.PR_LITERAL,/^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)?(?:f32|f64)/],[PR.PR_ATTRIB_NAME,/^[a-z_]\w*!/i],[PR.PR_PLAIN,/^[a-z_]\w*/i],[PR.PR_ATTRIB_VALUE,/^#!?\[[\s\S]*?\]/],[PR.PR_PUNCTUATION,/^[+\-/*=^&|!<>%[\](){}?:.,;]/],[PR.PR_PLAIN,/./]]),["rust"]);
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (C) 2010 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 Scala.
|
21
|
+
*
|
22
|
+
* Derived from http://lampsvn.epfl.ch/svn-repos/scala/scala-documentation/trunk/src/reference/SyntaxSummary.tex
|
23
|
+
*
|
24
|
+
* @author mikesamuel@gmail.com
|
25
|
+
*/
|
26
|
+
|
27
|
+
PR['registerLangHandler'](
|
28
|
+
PR['createSimpleLexer'](
|
29
|
+
[
|
30
|
+
// Whitespace
|
31
|
+
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
32
|
+
// A double or single quoted string
|
33
|
+
// or a triple double-quoted multi-line string.
|
34
|
+
[PR['PR_STRING'],
|
35
|
+
/^(?:"(?:(?:""(?:""?(?!")|[^\\"]|\\.)*"{0,3})|(?:[^"\r\n\\]|\\.)*"?))/,
|
36
|
+
null, '"'],
|
37
|
+
[PR['PR_LITERAL'], /^`(?:[^\r\n\\`]|\\.)*`?/, null, '`'],
|
38
|
+
[PR['PR_PUNCTUATION'], /^[!#%&()*+,\-:;<=>?@\[\\\]^{|}~]+/, null,
|
39
|
+
'!#%&()*+,-:;<=>?@[\\]^{|}~']
|
40
|
+
],
|
41
|
+
[
|
42
|
+
// A symbol literal is a single quote followed by an identifier with no
|
43
|
+
// single quote following
|
44
|
+
// A character literal has single quotes on either side
|
45
|
+
[PR['PR_STRING'], /^'(?:[^\r\n\\']|\\(?:'|[^\r\n']+))'/],
|
46
|
+
[PR['PR_LITERAL'], /^'[a-zA-Z_$][\w$]*(?!['$\w])/],
|
47
|
+
[PR['PR_KEYWORD'], /^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/],
|
48
|
+
[PR['PR_LITERAL'], /^(?:true|false|null|this)\b/],
|
49
|
+
[PR['PR_LITERAL'], /^(?:(?:0(?:[0-7]+|X[0-9A-F]+))L?|(?:(?:0|[1-9][0-9]*)(?:(?:\.[0-9]+)?(?:E[+\-]?[0-9]+)?F?|L?))|\\.[0-9]+(?:E[+\-]?[0-9]+)?F?)/i],
|
50
|
+
// Treat upper camel case identifiers as types.
|
51
|
+
[PR['PR_TYPE'], /^[$_]*[A-Z][_$A-Z0-9]*[a-z][\w$]*/],
|
52
|
+
[PR['PR_PLAIN'], /^[$a-zA-Z_][\w$]*/],
|
53
|
+
[PR['PR_COMMENT'], /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],
|
54
|
+
[PR['PR_PUNCTUATION'], /^(?:\.+|\/)/]
|
55
|
+
]),
|
56
|
+
['scala']);
|
@@ -0,0 +1 @@
|
|
1
|
+
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r "],[PR.PR_STRING,/^(?:"(?:(?:""(?:""?(?!")|[^\\"]|\\.)*"{0,3})|(?:[^"\r\n\\]|\\.)*"?))/,null,'"'],[PR.PR_LITERAL,/^`(?:[^\r\n\\`]|\\.)*`?/,null,"`"],[PR.PR_PUNCTUATION,/^[!#%&()*+,\-:;<=>?@\[\\\]^{|}~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[[PR.PR_STRING,/^'(?:[^\r\n\\']|\\(?:'|[^\r\n']+))'/],[PR.PR_LITERAL,/^'[a-zA-Z_$][\w$]*(?!['$\w])/],[PR.PR_KEYWORD,/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/],[PR.PR_LITERAL,/^(?:true|false|null|this)\b/],[PR.PR_LITERAL,/^(?:(?:0(?:[0-7]+|X[0-9A-F]+))L?|(?:(?:0|[1-9][0-9]*)(?:(?:\.[0-9]+)?(?:E[+\-]?[0-9]+)?F?|L?))|\\.[0-9]+(?:E[+\-]?[0-9]+)?F?)/i],[PR.PR_TYPE,/^[$_]*[A-Z][_$A-Z0-9]*[a-z][\w$]*/],[PR.PR_PLAIN,/^[$a-zA-Z_][\w$]*/],[PR.PR_COMMENT,/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],[PR.PR_PUNCTUATION,/^(?:\.+|\/)/]]),["scala"]);
|
@@ -0,0 +1,59 @@
|
|
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 SQL.
|
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-sql">(my SQL code)</pre>
|
26
|
+
*
|
27
|
+
*
|
28
|
+
* http://savage.net.au/SQL/sql-99.bnf.html is the basis for the grammar, and
|
29
|
+
* http://msdn.microsoft.com/en-us/library/aa238507(SQL.80).aspx and
|
30
|
+
* http://meta.stackoverflow.com/q/92352/137403 as the bases for the keyword
|
31
|
+
* list.
|
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'], /^(?:"(?:[^\"\\]|\\.)*"|'(?:[^\'\\]|\\.)*')/, null,
|
43
|
+
'"\'']
|
44
|
+
],
|
45
|
+
[
|
46
|
+
// A comment is either a line comment that starts with two dashes, or
|
47
|
+
// two dashes preceding a long bracketed block.
|
48
|
+
[PR['PR_COMMENT'], /^(?:--[^\r\n]*|\/\*[\s\S]*?(?:\*\/|$))/],
|
49
|
+
[PR['PR_KEYWORD'], /^(?:ADD|ALL|ALTER|AND|ANY|APPLY|AS|ASC|AUTHORIZATION|BACKUP|BEGIN|BETWEEN|BREAK|BROWSE|BULK|BY|CASCADE|CASE|CHECK|CHECKPOINT|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMN|COMMIT|COMPUTE|CONNECT|CONSTRAINT|CONTAINS|CONTAINSTABLE|CONTINUE|CONVERT|CREATE|CROSS|CURRENT|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|CURSOR|DATABASE|DBCC|DEALLOCATE|DECLARE|DEFAULT|DELETE|DENY|DESC|DISK|DISTINCT|DISTRIBUTED|DOUBLE|DROP|DUMMY|DUMP|ELSE|END|ERRLVL|ESCAPE|EXCEPT|EXEC|EXECUTE|EXISTS|EXIT|FETCH|FILE|FILLFACTOR|FOLLOWING|FOR|FOREIGN|FREETEXT|FREETEXTTABLE|FROM|FULL|FUNCTION|GOTO|GRANT|GROUP|HAVING|HOLDLOCK|IDENTITY|IDENTITYCOL|IDENTITY_INSERT|IF|IN|INDEX|INNER|INSERT|INTERSECT|INTO|IS|JOIN|KEY|KILL|LEFT|LIKE|LINENO|LOAD|MATCH|MATCHED|MERGE|NATURAL|NATIONAL|NOCHECK|NONCLUSTERED|NOCYCLE|NOT|NULL|NULLIF|OF|OFF|OFFSETS|ON|OPEN|OPENDATASOURCE|OPENQUERY|OPENROWSET|OPENXML|OPTION|OR|ORDER|OUTER|OVER|PARTITION|PERCENT|PIVOT|PLAN|PRECEDING|PRECISION|PRIMARY|PRINT|PROC|PROCEDURE|PUBLIC|RAISERROR|READ|READTEXT|RECONFIGURE|REFERENCES|REPLICATION|RESTORE|RESTRICT|RETURN|REVOKE|RIGHT|ROLLBACK|ROWCOUNT|ROWGUIDCOL|ROWS?|RULE|SAVE|SCHEMA|SELECT|SESSION_USER|SET|SETUSER|SHUTDOWN|SOME|START|STATISTICS|SYSTEM_USER|TABLE|TEXTSIZE|THEN|TO|TOP|TRAN|TRANSACTION|TRIGGER|TRUNCATE|TSEQUAL|UNBOUNDED|UNION|UNIQUE|UNPIVOT|UPDATE|UPDATETEXT|USE|USER|USING|VALUES|VARYING|VIEW|WAITFOR|WHEN|WHERE|WHILE|WITH|WITHIN|WRITETEXT|XML)(?=[^\w-]|$)/i, null],
|
50
|
+
// A number is a hex integer literal, a decimal real literal, or in
|
51
|
+
// scientific notation.
|
52
|
+
[PR['PR_LITERAL'],
|
53
|
+
/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],
|
54
|
+
// An identifier
|
55
|
+
[PR['PR_PLAIN'], /^[a-z_][\w-]*/i],
|
56
|
+
// A run of punctuation
|
57
|
+
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0+\-\"\']*/]
|
58
|
+
]),
|
59
|
+
['sql']);
|