patternfly-sass 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bowerrc +1 -1
- data/.gitignore +2 -4
- data/.travis.yml +6 -3
- data/README.md +187 -26
- data/Rakefile +21 -17
- data/assets/stylesheets/patternfly/_variables.scss +206 -206
- data/bower.json +11 -12
- data/lib/patternfly-sass/version.rb +2 -2
- data/patternfly-sass.gemspec +1 -1
- data/{tests → spec}/capture.js +0 -0
- data/spec/compare_spec.rb +15 -5
- data/{tests/patternfly → spec/html}/accordions.html +0 -0
- data/{tests/patternfly → spec/html}/alerts.html +0 -0
- data/{tests/patternfly → spec/html}/badges.html +0 -0
- data/{tests/patternfly → spec/html}/basic.html +0 -0
- data/{tests/patternfly → spec/html}/blank-slate.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-combobox.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-select.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-treeview-2.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-treeview.html +0 -0
- data/{tests/patternfly → spec/html}/breadcrumbs.html +0 -0
- data/{tests/patternfly → spec/html}/buttons.html +0 -0
- data/{tests/patternfly → spec/html}/code.html +0 -0
- data/{tests/patternfly → spec/html}/dashboard.html +0 -0
- data/{tests/patternfly → spec/html}/datatables-columns.html +0 -0
- data/{tests/patternfly → spec/html}/datatables.html +0 -0
- data/{tests/patternfly → spec/html}/dist/css/patternfly.css +0 -0
- data/{tests/patternfly → spec/html}/dist/css/patternfly.min.css +0 -0
- data/{tests/patternfly → spec/html}/dist/css/styles.css +0 -0
- data/{tests/patternfly → spec/html}/dist/css/styles.min.css +0 -0
- data/{tests/patternfly → spec/html}/dropdowns.html +0 -0
- data/{tests/patternfly → spec/html}/form.html +0 -0
- data/{tests/patternfly → spec/html}/forms.html +0 -0
- data/{tests/patternfly → spec/html}/icons.html +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-1.png +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-2.png +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-3.png +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-4.png +0 -0
- data/{tests/patternfly → spec/html}/index.html +0 -0
- data/{tests/patternfly → spec/html}/infotip.html +0 -0
- data/{tests/patternfly → spec/html}/labels.html +0 -0
- data/{tests/patternfly → spec/html}/list-group.html +0 -0
- data/{tests/patternfly → spec/html}/login.html +0 -0
- data/{tests/index.html → spec/html/main.html} +0 -0
- data/{tests/patternfly → spec/html}/modals.html +0 -0
- data/{tests/patternfly → spec/html}/navbar.html +0 -0
- data/{tests/patternfly → spec/html}/pagination.html +0 -0
- data/{tests/patternfly → spec/html}/panels.html +0 -0
- data/{tests/patternfly → spec/html}/popovers.html +0 -0
- data/{tests/patternfly → spec/html}/progress-bars.html +0 -0
- data/{tests/patternfly → spec/html}/search.html +0 -0
- data/{tests/patternfly → spec/html}/spinner.html +0 -0
- data/{tests/patternfly → spec/html}/tab.html +0 -0
- data/{tests/patternfly → spec/html}/tables.html +0 -0
- data/{tests/patternfly → spec/html}/tabs.html +0 -0
- data/{tests/patternfly → spec/html}/tests.css +0 -0
- data/{tests/patternfly → spec/html}/tooltip.html +0 -0
- data/{tests/patternfly → spec/html}/typography-2.css +0 -0
- data/{tests/patternfly → spec/html}/typography-2.html +0 -0
- data/{tests/patternfly → spec/html}/typography.html +0 -0
- data/tasks/converter.rb +6 -9
- metadata +103 -626
- data/package.json +0 -28
- data/tests/components/bootstrap-combobox/.bower.json +0 -14
- data/tests/components/bootstrap-combobox/.gitignore +0 -1
- data/tests/components/bootstrap-combobox/README.md +0 -59
- data/tests/components/bootstrap-combobox/css/bootstrap-combobox.css +0 -42
- data/tests/components/bootstrap-combobox/js/bootstrap-combobox.js +0 -438
- data/tests/components/bootstrap-combobox/js/tests/index.html +0 -29
- data/tests/components/bootstrap-combobox/js/tests/unit/bootstrap-combobox.js +0 -323
- data/tests/components/bootstrap-combobox/js/tests/vendor/jquery.js +0 -9597
- data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.css +0 -244
- data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.js +0 -2152
- data/tests/components/bootstrap-combobox/less/combobox.less +0 -55
- data/tests/components/bootstrap-select/.bower.json +0 -38
- data/tests/components/bootstrap-select/CONTRIBUTING.md +0 -87
- data/tests/components/bootstrap-select/README.md +0 -61
- data/tests/components/bootstrap-select/bootstrap-select.css +0 -309
- data/tests/components/bootstrap-select/bootstrap-select.jquery.json +0 -29
- data/tests/components/bootstrap-select/bootstrap-select.js +0 -972
- data/tests/components/bootstrap-select/bootstrap-select.min.css +0 -7
- data/tests/components/bootstrap-select/bootstrap-select.min.js +0 -8
- data/tests/components/bootstrap-select/bower.json +0 -29
- data/tests/components/bootstrap-select/composer.json +0 -17
- data/tests/components/bootstrap-select/i18n/defaults-cs-CZ.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-cz-CZ.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-de_DE.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-de_DE.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-es-CL.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-es-CL.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-eu.js +0 -30
- data/tests/components/bootstrap-select/i18n/defaults-eu.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-it_IT.js +0 -32
- data/tests/components/bootstrap-select/i18n/defaults-it_IT.min.js +0 -1
- data/tests/components/bootstrap-select/i18n/defaults-nl_NL.js +0 -32
- data/tests/components/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -7
- data/tests/components/bootstrap-select/i18n/defaults-pl_PL.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-pt_BR.js +0 -33
- data/tests/components/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -7
- data/tests/components/bootstrap-select/i18n/defaults-ru-RU.js +0 -31
- data/tests/components/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-zh_CN.js +0 -30
- data/tests/components/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -6
- data/tests/components/bootstrap-select/package.json +0 -31
- data/tests/components/bootstrap-select/test.html +0 -62
- data/tests/components/bootstrap-treeview/.bower.json +0 -38
- data/tests/components/bootstrap-treeview/Gruntfile.js +0 -62
- data/tests/components/bootstrap-treeview/LICENSE +0 -202
- data/tests/components/bootstrap-treeview/README.md +0 -289
- data/tests/components/bootstrap-treeview/app.js +0 -29
- data/tests/components/bootstrap-treeview/bower.json +0 -29
- data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.css +0 -1
- data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.js +0 -1
- data/tests/components/bootstrap-treeview/package.json +0 -18
- data/tests/components/bootstrap-treeview/public/css/bootstrap-treeview.css +0 -37
- data/tests/components/bootstrap-treeview/public/example-dom.html +0 -59
- data/tests/components/bootstrap-treeview/public/index.html +0 -333
- data/tests/components/bootstrap-treeview/public/js/bootstrap-treeview.js +0 -455
- data/tests/components/bootstrap-treeview/screenshot/default.PNG +0 -0
- data/tests/components/bootstrap-treeview/src/css/bootstrap-treeview.css +0 -37
- data/tests/components/bootstrap-treeview/src/js/bootstrap-treeview.js +0 -455
- data/tests/components/datatables-colreorder/.bower.json +0 -22
- data/tests/components/datatables-colreorder/License.txt +0 -20
- data/tests/components/datatables-colreorder/Readme.md +0 -39
- data/tests/components/datatables-colreorder/bower.json +0 -12
- data/tests/components/datatables-colreorder/css/dataTables.colReorder.css +0 -14
- data/tests/components/datatables-colreorder/examples/alt_insert.xml +0 -30
- data/tests/components/datatables-colreorder/examples/col_filter.xml +0 -38
- data/tests/components/datatables-colreorder/examples/colvis.xml +0 -26
- data/tests/components/datatables-colreorder/examples/fixedcolumns.xml +0 -43
- data/tests/components/datatables-colreorder/examples/fixedheader.xml +0 -27
- data/tests/components/datatables-colreorder/examples/index.xml +0 -19
- data/tests/components/datatables-colreorder/examples/jqueryui.xml +0 -27
- data/tests/components/datatables-colreorder/examples/new_init.xml +0 -23
- data/tests/components/datatables-colreorder/examples/predefined.xml +0 -30
- data/tests/components/datatables-colreorder/examples/realtime.xml +0 -30
- data/tests/components/datatables-colreorder/examples/reset.xml +0 -41
- data/tests/components/datatables-colreorder/examples/scrolling.xml +0 -27
- data/tests/components/datatables-colreorder/examples/server_side.xml +0 -38
- data/tests/components/datatables-colreorder/examples/simple.xml +0 -25
- data/tests/components/datatables-colreorder/examples/state_save.xml +0 -26
- data/tests/components/datatables-colreorder/images/.DS_Store +0 -0
- data/tests/components/datatables-colreorder/images/insert.png +0 -0
- data/tests/components/datatables-colreorder/js/dataTables.colReorder.js +0 -1372
- data/tests/components/datatables-colreorder/make.sh +0 -31
- data/tests/components/datatables-colvis/.bower.json +0 -22
- data/tests/components/datatables-colvis/License.txt +0 -20
- data/tests/components/datatables-colvis/README.md +0 -38
- data/tests/components/datatables-colvis/bower.json +0 -12
- data/tests/components/datatables-colvis/css/dataTables.colVis.css +0 -185
- data/tests/components/datatables-colvis/css/dataTables.colvis.jqueryui.css +0 -41
- data/tests/components/datatables-colvis/examples/.DS_Store +0 -0
- data/tests/components/datatables-colvis/examples/button_order.xml +0 -26
- data/tests/components/datatables-colvis/examples/exclude_columns.xml +0 -28
- data/tests/components/datatables-colvis/examples/group_columns.xml +0 -40
- data/tests/components/datatables-colvis/examples/index.xml +0 -18
- data/tests/components/datatables-colvis/examples/jqueryui.xml +0 -28
- data/tests/components/datatables-colvis/examples/mouseover.xml +0 -28
- data/tests/components/datatables-colvis/examples/new_init.xml +0 -26
- data/tests/components/datatables-colvis/examples/restore.xml +0 -33
- data/tests/components/datatables-colvis/examples/simple.xml +0 -25
- data/tests/components/datatables-colvis/examples/text.xml +0 -29
- data/tests/components/datatables-colvis/examples/title_callback.xml +0 -30
- data/tests/components/datatables-colvis/examples/two_tables.xml +0 -24
- data/tests/components/datatables-colvis/examples/two_tables_identical.xml +0 -35
- data/tests/components/datatables-colvis/js/dataTables.colVis.js +0 -1123
- data/tests/components/datatables-colvis/make.sh +0 -28
- data/tests/components/datatables/.bower.json +0 -42
- data/tests/components/datatables/Contributing.md +0 -18
- data/tests/components/datatables/Readme.md +0 -53
- data/tests/components/datatables/bower.json +0 -32
- data/tests/components/datatables/license.txt +0 -20
- data/tests/components/datatables/media/css/jquery.dataTables.css +0 -455
- data/tests/components/datatables/media/css/jquery.dataTables.min.css +0 -1
- data/tests/components/datatables/media/css/jquery.dataTables_themeroller.css +0 -416
- data/tests/components/datatables/media/images/Sorting icons.psd +0 -0
- data/tests/components/datatables/media/images/favicon.ico +0 -0
- data/tests/components/datatables/media/images/sort_asc.png +0 -0
- data/tests/components/datatables/media/images/sort_asc_disabled.png +0 -0
- data/tests/components/datatables/media/images/sort_both.png +0 -0
- data/tests/components/datatables/media/images/sort_desc.png +0 -0
- data/tests/components/datatables/media/images/sort_desc_disabled.png +0 -0
- data/tests/components/datatables/media/js/jquery.dataTables.js +0 -14951
- data/tests/components/datatables/media/js/jquery.dataTables.min.js +0 -160
- data/tests/components/datatables/media/js/jquery.js +0 -5
- data/tests/components/google-code-prettify/.bower.json +0 -26
- data/tests/components/google-code-prettify/CHANGES.html +0 -172
- data/tests/components/google-code-prettify/COPYING +0 -191
- data/tests/components/google-code-prettify/README-zh-Hans.html +0 -143
- data/tests/components/google-code-prettify/README.html +0 -233
- data/tests/components/google-code-prettify/README.md +0 -54
- data/tests/components/google-code-prettify/bin/prettify.min.css +0 -1
- data/tests/components/google-code-prettify/bin/prettify.min.js +0 -30
- data/tests/components/google-code-prettify/bin/run_prettify.min.js +0 -34
- data/tests/components/google-code-prettify/bower.json +0 -16
- data/tests/components/google-code-prettify/examples/quine.html +0 -55
- data/tests/components/google-code-prettify/src/lang-apollo.js +0 -51
- data/tests/components/google-code-prettify/src/lang-basic.js +0 -32
- data/tests/components/google-code-prettify/src/lang-clj.js +0 -64
- data/tests/components/google-code-prettify/src/lang-css.js +0 -159
- data/tests/components/google-code-prettify/src/lang-dart.js +0 -88
- data/tests/components/google-code-prettify/src/lang-erlang.js +0 -92
- data/tests/components/google-code-prettify/src/lang-go.js +0 -58
- data/tests/components/google-code-prettify/src/lang-hs.js +0 -101
- data/tests/components/google-code-prettify/src/lang-lisp.js +0 -94
- data/tests/components/google-code-prettify/src/lang-llvm.js +0 -61
- data/tests/components/google-code-prettify/src/lang-lua.js +0 -59
- data/tests/components/google-code-prettify/src/lang-matlab.js +0 -180
- data/tests/components/google-code-prettify/src/lang-ml.js +0 -56
- data/tests/components/google-code-prettify/src/lang-mumps.js +0 -139
- data/tests/components/google-code-prettify/src/lang-n.js +0 -65
- data/tests/components/google-code-prettify/src/lang-pascal.js +0 -32
- data/tests/components/google-code-prettify/src/lang-proto.js +0 -35
- data/tests/components/google-code-prettify/src/lang-r.js +0 -57
- data/tests/components/google-code-prettify/src/lang-rd.js +0 -47
- data/tests/components/google-code-prettify/src/lang-scala.js +0 -54
- data/tests/components/google-code-prettify/src/lang-sql.js +0 -58
- data/tests/components/google-code-prettify/src/lang-tcl.js +0 -62
- data/tests/components/google-code-prettify/src/lang-tex.js +0 -46
- data/tests/components/google-code-prettify/src/lang-vb.js +0 -66
- data/tests/components/google-code-prettify/src/lang-vhdl.js +0 -34
- data/tests/components/google-code-prettify/src/lang-wiki.js +0 -53
- data/tests/components/google-code-prettify/src/lang-xq.js +0 -67
- data/tests/components/google-code-prettify/src/lang-yaml.js +0 -27
- data/tests/components/google-code-prettify/src/prettify.css +0 -52
- data/tests/components/google-code-prettify/src/prettify.js +0 -1655
- data/tests/components/google-code-prettify/src/run_prettify.js +0 -1905
- data/tests/components/google-code-prettify/styles/demo.html +0 -61
- data/tests/components/google-code-prettify/styles/desert.css +0 -34
- data/tests/components/google-code-prettify/styles/doxy.css +0 -64
- data/tests/components/google-code-prettify/styles/index.html +0 -89
- data/tests/components/google-code-prettify/styles/sons-of-obsidian.css +0 -118
- data/tests/components/google-code-prettify/styles/sunburst.css +0 -51
- data/tests/components/jquery/.bower.json +0 -38
- data/tests/components/jquery/MIT-LICENSE.txt +0 -21
- data/tests/components/jquery/bower.json +0 -28
- data/tests/components/jquery/dist/jquery.js +0 -9210
- data/tests/components/jquery/dist/jquery.min.js +0 -5
- data/tests/components/jquery/dist/jquery.min.map +0 -1
- data/tests/components/jquery/src/ajax.js +0 -786
- data/tests/components/jquery/src/ajax/jsonp.js +0 -89
- data/tests/components/jquery/src/ajax/load.js +0 -75
- data/tests/components/jquery/src/ajax/parseJSON.js +0 -13
- data/tests/components/jquery/src/ajax/parseXML.js +0 -28
- data/tests/components/jquery/src/ajax/script.js +0 -64
- data/tests/components/jquery/src/ajax/var/nonce.js +0 -5
- data/tests/components/jquery/src/ajax/var/rquery.js +0 -3
- data/tests/components/jquery/src/ajax/xhr.js +0 -136
- data/tests/components/jquery/src/attributes.js +0 -11
- data/tests/components/jquery/src/attributes/attr.js +0 -141
- data/tests/components/jquery/src/attributes/classes.js +0 -158
- data/tests/components/jquery/src/attributes/prop.js +0 -94
- data/tests/components/jquery/src/attributes/support.js +0 -35
- data/tests/components/jquery/src/attributes/val.js +0 -161
- data/tests/components/jquery/src/callbacks.js +0 -205
- data/tests/components/jquery/src/core.js +0 -502
- data/tests/components/jquery/src/core/access.js +0 -60
- data/tests/components/jquery/src/core/init.js +0 -123
- data/tests/components/jquery/src/core/parseHTML.js +0 -39
- data/tests/components/jquery/src/core/ready.js +0 -97
- data/tests/components/jquery/src/core/var/rsingleTag.js +0 -4
- data/tests/components/jquery/src/css.js +0 -450
- data/tests/components/jquery/src/css/addGetHookIf.js +0 -22
- data/tests/components/jquery/src/css/curCSS.js +0 -57
- data/tests/components/jquery/src/css/defaultDisplay.js +0 -70
- data/tests/components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/tests/components/jquery/src/css/support.js +0 -96
- data/tests/components/jquery/src/css/swap.js +0 -28
- data/tests/components/jquery/src/css/var/cssExpand.js +0 -3
- data/tests/components/jquery/src/css/var/getStyles.js +0 -12
- data/tests/components/jquery/src/css/var/isHidden.js +0 -13
- data/tests/components/jquery/src/css/var/rmargin.js +0 -3
- data/tests/components/jquery/src/css/var/rnumnonpx.js +0 -5
- data/tests/components/jquery/src/data.js +0 -178
- data/tests/components/jquery/src/data/Data.js +0 -181
- data/tests/components/jquery/src/data/accepts.js +0 -20
- data/tests/components/jquery/src/data/var/data_priv.js +0 -5
- data/tests/components/jquery/src/data/var/data_user.js +0 -5
- data/tests/components/jquery/src/deferred.js +0 -149
- data/tests/components/jquery/src/deprecated.js +0 -13
- data/tests/components/jquery/src/dimensions.js +0 -50
- data/tests/components/jquery/src/effects.js +0 -648
- data/tests/components/jquery/src/effects/Tween.js +0 -114
- data/tests/components/jquery/src/effects/animatedSelector.js +0 -13
- data/tests/components/jquery/src/event.js +0 -868
- data/tests/components/jquery/src/event/ajax.js +0 -13
- data/tests/components/jquery/src/event/alias.js +0 -39
- data/tests/components/jquery/src/event/support.js +0 -9
- data/tests/components/jquery/src/exports/amd.js +0 -24
- data/tests/components/jquery/src/exports/global.js +0 -32
- data/tests/components/jquery/src/intro.js +0 -44
- data/tests/components/jquery/src/jquery.js +0 -37
- data/tests/components/jquery/src/manipulation.js +0 -580
- data/tests/components/jquery/src/manipulation/_evalUrl.js +0 -18
- data/tests/components/jquery/src/manipulation/support.js +0 -32
- data/tests/components/jquery/src/manipulation/var/rcheckableType.js +0 -3
- data/tests/components/jquery/src/offset.js +0 -207
- data/tests/components/jquery/src/outro.js +0 -1
- data/tests/components/jquery/src/queue.js +0 -142
- data/tests/components/jquery/src/queue/delay.js +0 -22
- data/tests/components/jquery/src/selector-native.js +0 -172
- data/tests/components/jquery/src/selector-sizzle.js +0 -14
- data/tests/components/jquery/src/selector.js +0 -1
- data/tests/components/jquery/src/serialize.js +0 -111
- data/tests/components/jquery/src/sizzle/dist/sizzle.js +0 -2067
- data/tests/components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
- data/tests/components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
- data/tests/components/jquery/src/traversing.js +0 -199
- data/tests/components/jquery/src/traversing/findFilter.js +0 -100
- data/tests/components/jquery/src/traversing/var/rneedsContext.js +0 -6
- data/tests/components/jquery/src/var/arr.js +0 -3
- data/tests/components/jquery/src/var/class2type.js +0 -4
- data/tests/components/jquery/src/var/concat.js +0 -5
- data/tests/components/jquery/src/var/hasOwn.js +0 -5
- data/tests/components/jquery/src/var/indexOf.js +0 -5
- data/tests/components/jquery/src/var/pnum.js +0 -3
- data/tests/components/jquery/src/var/push.js +0 -5
- data/tests/components/jquery/src/var/rnotwhite.js +0 -3
- data/tests/components/jquery/src/var/slice.js +0 -5
- data/tests/components/jquery/src/var/strundefined.js +0 -3
- data/tests/components/jquery/src/var/support.js +0 -4
- data/tests/components/jquery/src/var/toString.js +0 -5
- data/tests/components/jquery/src/wrap.js +0 -79
@@ -1,35 +0,0 @@
|
|
1
|
-
// Copyright (C) 2006 Google Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
/**
|
17
|
-
* @fileoverview
|
18
|
-
* Registers a language handler for Protocol Buffers as described at
|
19
|
-
* http://code.google.com/p/protobuf/.
|
20
|
-
*
|
21
|
-
* Based on the lexical grammar at
|
22
|
-
* http://research.microsoft.com/fsharp/manual/spec2.aspx#_Toc202383715
|
23
|
-
*
|
24
|
-
* @author mikesamuel@gmail.com
|
25
|
-
*/
|
26
|
-
|
27
|
-
PR['registerLangHandler'](PR['sourceDecorator']({
|
28
|
-
'keywords': (
|
29
|
-
'bytes,default,double,enum,extend,extensions,false,'
|
30
|
-
+ 'group,import,max,message,option,'
|
31
|
-
+ 'optional,package,repeated,required,returns,rpc,service,'
|
32
|
-
+ 'syntax,to,true'),
|
33
|
-
'types': /^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,
|
34
|
-
'cStyleComments': true
|
35
|
-
}), ['proto']);
|
@@ -1,57 +0,0 @@
|
|
1
|
-
// Copyright (C) 2012 Jeffrey B. Arnold
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
/**
|
17
|
-
* @fileoverview
|
18
|
-
* Registers a language handler for S, S-plus, and R source code.
|
19
|
-
*
|
20
|
-
*
|
21
|
-
* To use, include prettify.js and this file in your HTML page.
|
22
|
-
* Then put your code in an HTML tag like
|
23
|
-
* <pre class="prettyprint lang-r"> code </pre>
|
24
|
-
*
|
25
|
-
* Language definition from
|
26
|
-
* http://cran.r-project.org/doc/manuals/R-lang.html.
|
27
|
-
* Many of the regexes are shared with the pygments SLexer,
|
28
|
-
* http://pygments.org/.
|
29
|
-
*
|
30
|
-
* Original: https://raw.github.com/jrnold/prettify-lang-r-bugs/master/lang-r.js
|
31
|
-
*
|
32
|
-
* @author jeffrey.arnold@gmail.com
|
33
|
-
*/
|
34
|
-
PR['registerLangHandler'](
|
35
|
-
PR['createSimpleLexer'](
|
36
|
-
[
|
37
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
38
|
-
[PR['PR_STRING'], /^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/, null, '"'],
|
39
|
-
[PR['PR_STRING'], /^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/, null, "'"]
|
40
|
-
],
|
41
|
-
[
|
42
|
-
[PR['PR_COMMENT'], /^#.*/],
|
43
|
-
[PR['PR_KEYWORD'], /^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],
|
44
|
-
// hex numbes
|
45
|
-
[PR['PR_LITERAL'], /^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],
|
46
|
-
// Decimal numbers
|
47
|
-
[PR['PR_LITERAL'], /^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],
|
48
|
-
// builtin symbols
|
49
|
-
[PR['PR_LITERAL'], /^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],
|
50
|
-
// assignment, operators, and parens, etc.
|
51
|
-
[PR['PR_PUNCTUATION'], /^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],
|
52
|
-
// valid variable names
|
53
|
-
[PR['PR_PLAIN'], /^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],
|
54
|
-
// string backtick
|
55
|
-
[PR['PR_STRING'], /^`.+`/]
|
56
|
-
]),
|
57
|
-
['r', 's', 'R', 'S', 'Splus']);
|
@@ -1,47 +0,0 @@
|
|
1
|
-
// Copyright (C) 2012 Jeffrey Arnold
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @fileoverview
|
17
|
-
* Support for R documentation (Rd) files
|
18
|
-
*
|
19
|
-
* Minimal highlighting or Rd files, basically just highlighting
|
20
|
-
* macros. It does not try to identify verbatim or R-like regions of
|
21
|
-
* macros as that is too complicated for a lexer. Descriptions of the
|
22
|
-
* Rd format can be found
|
23
|
-
* http://cran.r-project.org/doc/manuals/R-exts.html and
|
24
|
-
* http://developer.r-project.org/parseRd.pdf.
|
25
|
-
*
|
26
|
-
* @author Jeffrey Arnold
|
27
|
-
*/
|
28
|
-
PR['registerLangHandler'](
|
29
|
-
PR['createSimpleLexer'](
|
30
|
-
[
|
31
|
-
// whitespace
|
32
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
33
|
-
// all comments begin with '%'
|
34
|
-
[PR['PR_COMMENT'], /^%[^\r\n]*/, null, '%']
|
35
|
-
],
|
36
|
-
[// special macros with no args
|
37
|
-
[PR['PR_LITERAL'], /^\\(?:cr|l?dots|R|tab)\b/],
|
38
|
-
// macros
|
39
|
-
[PR['PR_KEYWORD'], /^\\[a-zA-Z@]+/],
|
40
|
-
// highlighted as macros, since technically they are
|
41
|
-
[PR['PR_KEYWORD'], /^#(?:ifn?def|endif)/ ],
|
42
|
-
// catch escaped brackets
|
43
|
-
[PR['PR_PLAIN'], /^\\[{}]/],
|
44
|
-
// punctuation
|
45
|
-
[PR['PR_PUNCTUATION'], /^[{}()\[\]]+/]
|
46
|
-
]),
|
47
|
-
['Rd', 'rd']);
|
@@ -1,54 +0,0 @@
|
|
1
|
-
// Copyright (C) 2010 Google Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
/**
|
17
|
-
* @fileoverview
|
18
|
-
* Registers a language handler for Scala.
|
19
|
-
*
|
20
|
-
* Derived from http://lampsvn.epfl.ch/svn-repos/scala/scala-documentation/trunk/src/reference/SyntaxSummary.tex
|
21
|
-
*
|
22
|
-
* @author mikesamuel@gmail.com
|
23
|
-
*/
|
24
|
-
|
25
|
-
PR['registerLangHandler'](
|
26
|
-
PR['createSimpleLexer'](
|
27
|
-
[
|
28
|
-
// Whitespace
|
29
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
30
|
-
// A double or single quoted string
|
31
|
-
// or a triple double-quoted multi-line string.
|
32
|
-
[PR['PR_STRING'],
|
33
|
-
/^(?:"(?:(?:""(?:""?(?!")|[^\\"]|\\.)*"{0,3})|(?:[^"\r\n\\]|\\.)*"?))/,
|
34
|
-
null, '"'],
|
35
|
-
[PR['PR_LITERAL'], /^`(?:[^\r\n\\`]|\\.)*`?/, null, '`'],
|
36
|
-
[PR['PR_PUNCTUATION'], /^[!#%&()*+,\-:;<=>?@\[\\\]^{|}~]+/, null,
|
37
|
-
'!#%&()*+,-:;<=>?@[\\]^{|}~']
|
38
|
-
],
|
39
|
-
[
|
40
|
-
// A symbol literal is a single quote followed by an identifier with no
|
41
|
-
// single quote following
|
42
|
-
// A character literal has single quotes on either side
|
43
|
-
[PR['PR_STRING'], /^'(?:[^\r\n\\']|\\(?:'|[^\r\n']+))'/],
|
44
|
-
[PR['PR_LITERAL'], /^'[a-zA-Z_$][\w$]*(?!['$\w])/],
|
45
|
-
[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/],
|
46
|
-
[PR['PR_LITERAL'], /^(?:true|false|null|this)\b/],
|
47
|
-
[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],
|
48
|
-
// Treat upper camel case identifiers as types.
|
49
|
-
[PR['PR_TYPE'], /^[$_]*[A-Z][_$A-Z0-9]*[a-z][\w$]*/],
|
50
|
-
[PR['PR_PLAIN'], /^[$a-zA-Z_][\w$]*/],
|
51
|
-
[PR['PR_COMMENT'], /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],
|
52
|
-
[PR['PR_PUNCTUATION'], /^(?:\.+|\/)/]
|
53
|
-
]),
|
54
|
-
['scala']);
|
@@ -1,58 +0,0 @@
|
|
1
|
-
// Copyright (C) 2008 Google Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
/**
|
18
|
-
* @fileoverview
|
19
|
-
* Registers a language handler for SQL.
|
20
|
-
*
|
21
|
-
*
|
22
|
-
* To use, include prettify.js and this file in your HTML page.
|
23
|
-
* Then put your code in an HTML tag like
|
24
|
-
* <pre class="prettyprint lang-sql">(my SQL code)</pre>
|
25
|
-
*
|
26
|
-
*
|
27
|
-
* http://savage.net.au/SQL/sql-99.bnf.html is the basis for the grammar, and
|
28
|
-
* http://msdn.microsoft.com/en-us/library/aa238507(SQL.80).aspx and
|
29
|
-
* http://meta.stackoverflow.com/q/92352/137403 as the bases for the keyword
|
30
|
-
* list.
|
31
|
-
*
|
32
|
-
* @author mikesamuel@gmail.com
|
33
|
-
*/
|
34
|
-
|
35
|
-
PR['registerLangHandler'](
|
36
|
-
PR['createSimpleLexer'](
|
37
|
-
[
|
38
|
-
// Whitespace
|
39
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
40
|
-
// A double or single quoted, possibly multi-line, string.
|
41
|
-
[PR['PR_STRING'], /^(?:"(?:[^\"\\]|\\.)*"|'(?:[^\'\\]|\\.)*')/, null,
|
42
|
-
'"\'']
|
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'], /^(?:--[^\r\n]*|\/\*[\s\S]*?(?:\*\/|$))/],
|
48
|
-
[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],
|
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
|
-
// An identifier
|
54
|
-
[PR['PR_PLAIN'], /^[a-z_][\w-]*/i],
|
55
|
-
// A run of punctuation
|
56
|
-
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0+\-\"\']*/]
|
57
|
-
]),
|
58
|
-
['sql']);
|
@@ -1,62 +0,0 @@
|
|
1
|
-
// Copyright (C) 2012 Pyrios.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
/**
|
18
|
-
* @fileoverview
|
19
|
-
* Registers a language handler for TCL
|
20
|
-
*
|
21
|
-
*
|
22
|
-
* To use, include prettify.js and this file in your HTML page.
|
23
|
-
* Then put your code in an HTML tag like
|
24
|
-
* <pre class="prettyprint lang-tcl">proc foo {} {puts bar}</pre>
|
25
|
-
*
|
26
|
-
* I copy-pasted lang-lisp.js, so this is probably not 100% accurate.
|
27
|
-
* I used http://wiki.tcl.tk/1019 for the keywords, but tried to only
|
28
|
-
* include as keywords that had more impact on the program flow
|
29
|
-
* rather than providing convenience. For example, I included 'if'
|
30
|
-
* since that provides branching, but left off 'open' since that is more
|
31
|
-
* like a proc. Add more if it makes sense.
|
32
|
-
*
|
33
|
-
* @author pyrios@gmail.com
|
34
|
-
*/
|
35
|
-
|
36
|
-
PR['registerLangHandler'](
|
37
|
-
PR['createSimpleLexer'](
|
38
|
-
[
|
39
|
-
['opn', /^\{+/, null, '{'],
|
40
|
-
['clo', /^\}+/, null, '}'],
|
41
|
-
// A line comment that starts with ;
|
42
|
-
[PR['PR_COMMENT'], /^#[^\r\n]*/, null, '#'],
|
43
|
-
// Whitespace
|
44
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
45
|
-
// A double quoted, possibly multi-line, string.
|
46
|
-
[PR['PR_STRING'], /^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/, null, '"']
|
47
|
-
],
|
48
|
-
[
|
49
|
-
[PR['PR_KEYWORD'], /^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/, null],
|
50
|
-
[PR['PR_LITERAL'],
|
51
|
-
/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],
|
52
|
-
// A single quote possibly followed by a word that optionally ends with
|
53
|
-
// = ! or ?.
|
54
|
-
[PR['PR_LITERAL'],
|
55
|
-
/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],
|
56
|
-
// A word that optionally ends with = ! or ?.
|
57
|
-
[PR['PR_PLAIN'],
|
58
|
-
/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],
|
59
|
-
// A printable non-space non-special character
|
60
|
-
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r \xA0()\"\\\';]+/]
|
61
|
-
]),
|
62
|
-
['tcl']);
|
@@ -1,46 +0,0 @@
|
|
1
|
-
// Copyright (C) 2011 Martin S.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @fileoverview
|
17
|
-
* Support for tex highlighting as discussed on
|
18
|
-
* <a href="http://meta.tex.stackexchange.com/questions/872/text-immediate-following-double-backslashes-is-highlighted-as-macro-inside-a-code/876#876">meta.tex.stackexchange.com</a>.
|
19
|
-
*
|
20
|
-
* @author Martin S.
|
21
|
-
*/
|
22
|
-
|
23
|
-
PR['registerLangHandler'](
|
24
|
-
PR['createSimpleLexer'](
|
25
|
-
[
|
26
|
-
// whitespace
|
27
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
|
28
|
-
// all comments begin with '%'
|
29
|
-
[PR['PR_COMMENT'], /^%[^\r\n]*/, null, '%']
|
30
|
-
],
|
31
|
-
[
|
32
|
-
//[PR['PR_DECLARATION'], /^\\([egx]?def|(new|renew|provide)(command|environment))\b/],
|
33
|
-
// any command starting with a \ and contains
|
34
|
-
// either only letters (a-z,A-Z), '@' (internal macros)
|
35
|
-
[PR['PR_KEYWORD'], /^\\[a-zA-Z@]+/],
|
36
|
-
// or contains only one character
|
37
|
-
[PR['PR_KEYWORD'], /^\\./],
|
38
|
-
// Highlight dollar for math mode and ampersam for tabular
|
39
|
-
[PR['PR_TYPE'], /^[$&]/],
|
40
|
-
// numeric measurement values with attached units
|
41
|
-
[PR['PR_LITERAL'],
|
42
|
-
/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],
|
43
|
-
// punctuation usually occurring within commands
|
44
|
-
[PR['PR_PUNCTUATION'], /^[{}()\[\]=]+/]
|
45
|
-
]),
|
46
|
-
['latex', 'tex']);
|
@@ -1,66 +0,0 @@
|
|
1
|
-
// Copyright (C) 2009 Google Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
/**
|
18
|
-
* @fileoverview
|
19
|
-
* Registers a language handler for various flavors of basic.
|
20
|
-
*
|
21
|
-
*
|
22
|
-
* To use, include prettify.js and this file in your HTML page.
|
23
|
-
* Then put your code in an HTML tag like
|
24
|
-
* <pre class="prettyprint lang-vb"></pre>
|
25
|
-
*
|
26
|
-
*
|
27
|
-
* http://msdn.microsoft.com/en-us/library/aa711638(VS.71).aspx defines the
|
28
|
-
* visual basic grammar lexical grammar.
|
29
|
-
*
|
30
|
-
* @author mikesamuel@gmail.com
|
31
|
-
*/
|
32
|
-
|
33
|
-
PR['registerLangHandler'](
|
34
|
-
PR['createSimpleLexer'](
|
35
|
-
[
|
36
|
-
// Whitespace
|
37
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0\u2028\u2029]+/, null, '\t\n\r \xA0\u2028\u2029'],
|
38
|
-
// A double quoted string with quotes escaped by doubling them.
|
39
|
-
// A single character can be suffixed with C.
|
40
|
-
[PR['PR_STRING'], /^(?:[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})(?:[\"\u201C\u201D]c|$)|[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})*(?:[\"\u201C\u201D]|$))/i, null,
|
41
|
-
'"\u201C\u201D'],
|
42
|
-
// A comment starts with a single quote and runs until the end of the
|
43
|
-
// line.
|
44
|
-
// VB6 apparently allows _ as an escape sequence for newlines though
|
45
|
-
// this is not a documented feature of VB.net.
|
46
|
-
// http://meta.stackoverflow.com/q/121497/137403
|
47
|
-
[PR['PR_COMMENT'], /^[\'\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\r\n_\u2028\u2029])*/, null, '\'\u2018\u2019']
|
48
|
-
],
|
49
|
-
[
|
50
|
-
[PR['PR_KEYWORD'], /^(?:AddHandler|AddressOf|Alias|And|AndAlso|Ansi|As|Assembly|Auto|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|Class|CLng|CObj|Const|CShort|CSng|CStr|CType|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else|ElseIf|End|EndIf|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get|GetType|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|Let|Lib|Like|Long|Loop|Me|Mod|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|New|Next|Not|NotInheritable|NotOverridable|Object|On|Option|Optional|Or|OrElse|Overloads|Overridable|Overrides|ParamArray|Preserve|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|Select|Set|Shadows|Shared|Short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TypeOf|Unicode|Until|Variant|Wend|When|While|With|WithEvents|WriteOnly|Xor|EndIf|GoSub|Let|Variant|Wend)\b/i, null],
|
51
|
-
// A second comment form
|
52
|
-
[PR['PR_COMMENT'], /^REM\b[^\r\n\u2028\u2029]*/i],
|
53
|
-
// A boolean, numeric, or date literal.
|
54
|
-
[PR['PR_LITERAL'],
|
55
|
-
/^(?:True\b|False\b|Nothing\b|\d+(?:E[+\-]?\d+[FRD]?|[FRDSIL])?|(?:&H[0-9A-F]+|&O[0-7]+)[SIL]?|\d*\.\d+(?:E[+\-]?\d+)?[FRD]?|#\s+(?:\d+[\-\/]\d+[\-\/]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)?|\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)\s+#)/i],
|
56
|
-
// An identifier. Keywords can be turned into identifers
|
57
|
-
// with square brackets, and there may be optional type
|
58
|
-
// characters after a normal identifier in square brackets.
|
59
|
-
[PR['PR_PLAIN'], /^(?:(?:[a-z]|_\w)\w*(?:\[[%&@!#]+\])?|\[(?:[a-z]|_\w)\w*\])/i],
|
60
|
-
// A run of punctuation
|
61
|
-
[PR['PR_PUNCTUATION'],
|
62
|
-
/^[^\w\t\n\r \"\'\[\]\xA0\u2018\u2019\u201C\u201D\u2028\u2029]+/],
|
63
|
-
// Square brackets
|
64
|
-
[PR['PR_PUNCTUATION'], /^(?:\[|\])/]
|
65
|
-
]),
|
66
|
-
['vb', 'vbs']);
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview
|
3
|
-
* Registers a language handler for VHDL '93.
|
4
|
-
*
|
5
|
-
* Based on the lexical grammar and keywords at
|
6
|
-
* http://www.iis.ee.ethz.ch/~zimmi/download/vhdl93_syntax.html
|
7
|
-
*
|
8
|
-
* @author benoit@ryder.fr
|
9
|
-
*/
|
10
|
-
|
11
|
-
PR['registerLangHandler'](
|
12
|
-
PR['createSimpleLexer'](
|
13
|
-
[
|
14
|
-
// Whitespace
|
15
|
-
[PR['PR_PLAIN'], /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0']
|
16
|
-
],
|
17
|
-
[
|
18
|
-
// String, character or bit string
|
19
|
-
[PR['PR_STRING'], /^(?:[BOX]?"(?:[^\"]|"")*"|'.')/i],
|
20
|
-
// Comment, from two dashes until end of line.
|
21
|
-
[PR['PR_COMMENT'], /^--[^\r\n]*/],
|
22
|
-
[PR['PR_KEYWORD'], /^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, null],
|
23
|
-
// Type, predefined or standard
|
24
|
-
[PR['PR_TYPE'], /^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i, null],
|
25
|
-
// Predefined attributes
|
26
|
-
[PR['PR_TYPE'], /^\'(?:ACTIVE|ASCENDING|BASE|DELAYED|DRIVING|DRIVING_VALUE|EVENT|HIGH|IMAGE|INSTANCE_NAME|LAST_ACTIVE|LAST_EVENT|LAST_VALUE|LEFT|LEFTOF|LENGTH|LOW|PATH_NAME|POS|PRED|QUIET|RANGE|REVERSE_RANGE|RIGHT|RIGHTOF|SIMPLE_NAME|STABLE|SUCC|TRANSACTION|VAL|VALUE)(?=[^\w-]|$)/i, null],
|
27
|
-
// Number, decimal or based literal
|
28
|
-
[PR['PR_LITERAL'], /^\d+(?:_\d+)*(?:#[\w\\.]+#(?:[+\-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:E[+\-]?\d+(?:_\d+)*)?)/i],
|
29
|
-
// Identifier, basic or extended
|
30
|
-
[PR['PR_PLAIN'], /^(?:[a-z]\w*|\\[^\\]*\\)/i],
|
31
|
-
// Punctuation
|
32
|
-
[PR['PR_PUNCTUATION'], /^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0\-\"\']*/]
|
33
|
-
]),
|
34
|
-
['vhdl', 'vhd']);
|