@openui5/sap.ui.codeeditor 1.120.6 → 1.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +23 -21
- package/THIRDPARTY.txt +6 -43
- package/package.json +2 -2
- package/src/sap/ui/codeeditor/.library +2 -2
- package/src/sap/ui/codeeditor/CodeEditor.js +41 -27
- package/src/sap/ui/codeeditor/js/ace/ace.js +16262 -16597
- package/src/sap/ui/codeeditor/js/ace/css/ace.css +358 -86
- package/src/sap/ui/codeeditor/js/ace/css/ambiance-3.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/chrome-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cloud9_day-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cloud9_day-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cloud9_night-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cloud9_night-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cloud9_night_low_color-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cloud9_night_low_color-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/clouds-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/clouds_midnight-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/cobalt-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/crimson_editor-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/dawn-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/dracula-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/dreamweaver-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/eclipse-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/github-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/github_dark-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/github_dark-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/gob-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/gruvbox-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/gruvbox_dark_hard-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/gruvbox_light_hard-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/gruvbox_light_hard-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/idle_fingers-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/iplastic-3.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/katzenmilch-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/katzenmilch-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/kr_theme-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/kuroir-1.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/kuroir-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-10.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-11.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-12.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-13.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-14.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-15.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-16.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-17.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-18.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-19.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-20.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-21.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-22.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-22.svg +1 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-23.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-5.svg +7 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-6.svg +7 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-7.svg +9 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-8.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-8.svg +4 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-9.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/main-9.svg +4 -0
- package/src/sap/ui/codeeditor/js/ace/css/merbivore-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/merbivore_soft-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/mono_industrial-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/monokai-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/one_dark-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/pastel_on_dark-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/solarized_dark-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/solarized_light-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/sqlserver-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/terminal-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/textmate-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/ambiance.css +120 -68
- package/src/sap/ui/codeeditor/js/ace/css/theme/chaos.css +79 -66
- package/src/sap/ui/codeeditor/js/ace/css/theme/chrome.css +82 -43
- package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_day.css +160 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_night.css +146 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_night_low_color.css +134 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/clouds.css +59 -31
- package/src/sap/ui/codeeditor/js/ace/css/theme/clouds_midnight.css +60 -32
- package/src/sap/ui/codeeditor/js/ace/css/theme/cobalt.css +71 -38
- package/src/sap/ui/codeeditor/js/ace/css/theme/crimson_editor.css +79 -42
- package/src/sap/ui/codeeditor/js/ace/css/theme/dawn.css +70 -40
- package/src/sap/ui/codeeditor/js/ace/css/theme/dracula.css +95 -49
- package/src/sap/ui/codeeditor/js/ace/css/theme/dreamweaver.css +95 -49
- package/src/sap/ui/codeeditor/js/ace/css/theme/eclipse.css +62 -33
- package/src/sap/ui/codeeditor/js/ace/css/theme/github.css +71 -38
- package/src/sap/ui/codeeditor/js/ace/css/theme/github_dark.css +134 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/gob.css +68 -38
- package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox.css +54 -28
- package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox_dark_hard.css +163 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox_light_hard.css +167 -0
- package/src/sap/ui/codeeditor/js/ace/css/theme/idle_fingers.css +62 -34
- package/src/sap/ui/codeeditor/js/ace/css/theme/iplastic.css +76 -45
- package/src/sap/ui/codeeditor/js/ace/css/theme/katzenmilch.css +91 -53
- package/src/sap/ui/codeeditor/js/ace/css/theme/kr_theme.css +67 -36
- package/src/sap/ui/codeeditor/js/ace/css/theme/kuroir.css +43 -17
- package/src/sap/ui/codeeditor/js/ace/css/theme/merbivore.css +57 -31
- package/src/sap/ui/codeeditor/js/ace/css/theme/merbivore_soft.css +57 -31
- package/src/sap/ui/codeeditor/js/ace/css/theme/mono_industrial.css +66 -36
- package/src/sap/ui/codeeditor/js/ace/css/theme/monokai.css +63 -35
- package/src/sap/ui/codeeditor/js/ace/css/theme/nord_dark.css +55 -29
- package/src/sap/ui/codeeditor/js/ace/css/theme/one_dark.css +88 -47
- package/src/sap/ui/codeeditor/js/ace/css/theme/pastel_on_dark.css +70 -38
- package/src/sap/ui/codeeditor/js/ace/css/theme/solarized_dark.css +52 -28
- package/src/sap/ui/codeeditor/js/ace/css/theme/solarized_light.css +55 -29
- package/src/sap/ui/codeeditor/js/ace/css/theme/sqlserver.css +90 -48
- package/src/sap/ui/codeeditor/js/ace/css/theme/terminal.css +64 -34
- package/src/sap/ui/codeeditor/js/ace/css/theme/textmate.css +82 -43
- package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow.css +61 -33
- package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night.css +61 -33
- package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_blue.css +59 -32
- package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_bright.css +71 -40
- package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_eighties.css +61 -33
- package/src/sap/ui/codeeditor/js/ace/css/theme/twilight.css +66 -36
- package/src/sap/ui/codeeditor/js/ace/css/theme/vibrant_ink.css +59 -32
- package/src/sap/ui/codeeditor/js/ace/css/theme/xcode.css +54 -28
- package/src/sap/ui/codeeditor/js/ace/css/tomorrow-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_blue-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_bright-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_eighties-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/twilight-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/vibrant_ink-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/css/xcode-2.png +0 -0
- package/src/sap/ui/codeeditor/js/ace/ext-beautify.js +90 -91
- package/src/sap/ui/codeeditor/js/ace/ext-code_lens.js +39 -75
- package/src/sap/ui/codeeditor/js/ace/ext-command_bar.js +457 -0
- package/src/sap/ui/codeeditor/js/ace/ext-elastic_tabstops_lite.js +47 -97
- package/src/sap/ui/codeeditor/js/ace/ext-emmet.js +496 -552
- package/src/sap/ui/codeeditor/js/ace/ext-hardwrap.js +47 -16
- package/src/sap/ui/codeeditor/js/ace/ext-inline_autocomplete.js +3269 -0
- package/src/sap/ui/codeeditor/js/ace/ext-keybinding_menu.js +45 -105
- package/src/sap/ui/codeeditor/js/ace/ext-language_tools.js +1438 -1128
- package/src/sap/ui/codeeditor/js/ace/ext-linking.js +8 -16
- package/src/sap/ui/codeeditor/js/ace/ext-modelist.js +198 -185
- package/src/sap/ui/codeeditor/js/ace/ext-options.js +405 -443
- package/src/sap/ui/codeeditor/js/ace/ext-prompt.js +1682 -1508
- package/src/sap/ui/codeeditor/js/ace/ext-rtl.js +26 -28
- package/src/sap/ui/codeeditor/js/ace/ext-searchbox.js +160 -332
- package/src/sap/ui/codeeditor/js/ace/ext-settings_menu.js +409 -446
- package/src/sap/ui/codeeditor/js/ace/ext-simple_tokenizer.js +45 -0
- package/src/sap/ui/codeeditor/js/ace/ext-spellcheck.js +4 -10
- package/src/sap/ui/codeeditor/js/ace/ext-split.js +41 -63
- package/src/sap/ui/codeeditor/js/ace/ext-statusbar.js +19 -27
- package/src/sap/ui/codeeditor/js/ace/ext-themelist.js +45 -41
- package/src/sap/ui/codeeditor/js/ace/ext-whitespace.js +62 -83
- package/src/sap/ui/codeeditor/js/ace/keybinding-emacs.js +442 -551
- package/src/sap/ui/codeeditor/js/ace/keybinding-sublime.js +338 -351
- package/src/sap/ui/codeeditor/js/ace/keybinding-vim.js +5242 -4758
- package/src/sap/ui/codeeditor/js/ace/keybinding-vscode.js +228 -235
- package/src/sap/ui/codeeditor/js/ace/mode-abap.js +72 -93
- package/src/sap/ui/codeeditor/js/ace/mode-abc.js +136 -164
- package/src/sap/ui/codeeditor/js/ace/mode-actionscript.js +109 -150
- package/src/sap/ui/codeeditor/js/ace/mode-ada.js +45 -74
- package/src/sap/ui/codeeditor/js/ace/mode-alda.js +77 -109
- package/src/sap/ui/codeeditor/js/ace/mode-apache_conf.js +196 -241
- package/src/sap/ui/codeeditor/js/ace/mode-apex.js +192 -247
- package/src/sap/ui/codeeditor/js/ace/mode-applescript.js +56 -102
- package/src/sap/ui/codeeditor/js/ace/mode-aql.js +85 -95
- package/src/sap/ui/codeeditor/js/ace/mode-asciidoc.js +120 -158
- package/src/sap/ui/codeeditor/js/ace/mode-asl.js +233 -298
- package/src/sap/ui/codeeditor/js/ace/mode-assembly_x86.js +78 -101
- package/src/sap/ui/codeeditor/js/ace/mode-astro.js +2414 -0
- package/src/sap/ui/codeeditor/js/ace/mode-autohotkey.js +80 -116
- package/src/sap/ui/codeeditor/js/ace/mode-batchfile.js +74 -105
- package/src/sap/ui/codeeditor/js/ace/mode-bibtex.js +318 -0
- package/src/sap/ui/codeeditor/js/ace/mode-c9search.js +72 -115
- package/src/sap/ui/codeeditor/js/ace/mode-c_cpp.js +171 -257
- package/src/sap/ui/codeeditor/js/ace/mode-cirru.js +97 -115
- package/src/sap/ui/codeeditor/js/ace/mode-clojure.js +126 -119
- package/src/sap/ui/codeeditor/js/ace/mode-cobol.js +48 -67
- package/src/sap/ui/codeeditor/js/ace/mode-coffee.js +203 -268
- package/src/sap/ui/codeeditor/js/ace/mode-coldfusion.js +1029 -1276
- package/src/sap/ui/codeeditor/js/ace/mode-crystal.js +337 -393
- package/src/sap/ui/codeeditor/js/ace/mode-csharp.js +127 -216
- package/src/sap/ui/codeeditor/js/ace/mode-csound_document.js +1539 -1569
- package/src/sap/ui/codeeditor/js/ace/mode-csound_orchestra.js +786 -898
- package/src/sap/ui/codeeditor/js/ace/mode-csound_score.js +184 -237
- package/src/sap/ui/codeeditor/js/ace/mode-csp.js +37 -37
- package/src/sap/ui/codeeditor/js/ace/mode-css.js +293 -384
- package/src/sap/ui/codeeditor/js/ace/mode-curly.js +1019 -1262
- package/src/sap/ui/codeeditor/js/ace/mode-cuttlefish.js +56 -0
- package/src/sap/ui/codeeditor/js/ace/mode-d.js +163 -233
- package/src/sap/ui/codeeditor/js/ace/mode-dart.js +330 -427
- package/src/sap/ui/codeeditor/js/ace/mode-diff.js +20 -38
- package/src/sap/ui/codeeditor/js/ace/mode-django.js +1032 -1271
- package/src/sap/ui/codeeditor/js/ace/mode-dockerfile.js +211 -284
- package/src/sap/ui/codeeditor/js/ace/mode-dot.js +131 -200
- package/src/sap/ui/codeeditor/js/ace/mode-drools.js +408 -349
- package/src/sap/ui/codeeditor/js/ace/mode-edifact.js +89 -125
- package/src/sap/ui/codeeditor/js/ace/mode-eiffel.js +47 -62
- package/src/sap/ui/codeeditor/js/ace/mode-ejs.js +1350 -1666
- package/src/sap/ui/codeeditor/js/ace/mode-elixir.js +349 -407
- package/src/sap/ui/codeeditor/js/ace/mode-elm.js +136 -168
- package/src/sap/ui/codeeditor/js/ace/mode-erlang.js +707 -881
- package/src/sap/ui/codeeditor/js/ace/mode-flix.js +164 -0
- package/src/sap/ui/codeeditor/js/ace/mode-forth.js +128 -172
- package/src/sap/ui/codeeditor/js/ace/mode-fortran.js +177 -246
- package/src/sap/ui/codeeditor/js/ace/mode-fsharp.js +92 -131
- package/src/sap/ui/codeeditor/js/ace/mode-fsl.js +91 -124
- package/src/sap/ui/codeeditor/js/ace/mode-ftl.js +813 -748
- package/src/sap/ui/codeeditor/js/ace/mode-gcode.js +52 -71
- package/src/sap/ui/codeeditor/js/ace/mode-gherkin.js +105 -119
- package/src/sap/ui/codeeditor/js/ace/mode-gitignore.js +12 -22
- package/src/sap/ui/codeeditor/js/ace/mode-glsl.js +184 -289
- package/src/sap/ui/codeeditor/js/ace/mode-gobstones.js +686 -623
- package/src/sap/ui/codeeditor/js/ace/mode-golang.js +167 -239
- package/src/sap/ui/codeeditor/js/ace/mode-graphqlschema.js +48 -88
- package/src/sap/ui/codeeditor/js/ace/mode-groovy.js +577 -471
- package/src/sap/ui/codeeditor/js/ace/mode-haml.js +1062 -1026
- package/src/sap/ui/codeeditor/js/ace/mode-handlebars.js +1061 -1305
- package/src/sap/ui/codeeditor/js/ace/mode-haskell.js +199 -255
- package/src/sap/ui/codeeditor/js/ace/mode-haskell_cabal.js +81 -87
- package/src/sap/ui/codeeditor/js/ace/mode-haxe.js +111 -184
- package/src/sap/ui/codeeditor/js/ace/mode-hjson.js +164 -199
- package/src/sap/ui/codeeditor/js/ace/mode-html.js +1009 -1239
- package/src/sap/ui/codeeditor/js/ace/mode-html_elixir.js +1402 -1705
- package/src/sap/ui/codeeditor/js/ace/mode-html_ruby.js +1390 -1706
- package/src/sap/ui/codeeditor/js/ace/mode-ini.js +58 -82
- package/src/sap/ui/codeeditor/js/ace/mode-io.js +85 -123
- package/src/sap/ui/codeeditor/js/ace/mode-ion.js +477 -0
- package/src/sap/ui/codeeditor/js/ace/mode-jack.js +109 -162
- package/src/sap/ui/codeeditor/js/ace/mode-jade.js +1339 -1344
- package/src/sap/ui/codeeditor/js/ace/mode-java.js +710 -498
- package/src/sap/ui/codeeditor/js/ace/mode-javascript.js +441 -354
- package/src/sap/ui/codeeditor/js/ace/mode-jexl.js +270 -0
- package/src/sap/ui/codeeditor/js/ace/mode-json.js +93 -147
- package/src/sap/ui/codeeditor/js/ace/mode-json5.js +128 -180
- package/src/sap/ui/codeeditor/js/ace/mode-jsoniq.js +58 -112
- package/src/sap/ui/codeeditor/js/ace/mode-jsp.js +1045 -865
- package/src/sap/ui/codeeditor/js/ace/mode-jssm.js +158 -190
- package/src/sap/ui/codeeditor/js/ace/mode-jsx.js +121 -194
- package/src/sap/ui/codeeditor/js/ace/mode-julia.js +128 -177
- package/src/sap/ui/codeeditor/js/ace/mode-kotlin.js +262 -614
- package/src/sap/ui/codeeditor/js/ace/mode-latex.js +94 -138
- package/src/sap/ui/codeeditor/js/ace/mode-latte.js +1120 -1366
- package/src/sap/ui/codeeditor/js/ace/mode-less.js +342 -442
- package/src/sap/ui/codeeditor/js/ace/mode-liquid.js +1353 -1414
- package/src/sap/ui/codeeditor/js/ace/mode-lisp.js +65 -73
- package/src/sap/ui/codeeditor/js/ace/mode-livescript.js +217 -224
- package/src/sap/ui/codeeditor/js/ace/mode-logiql.js +97 -142
- package/src/sap/ui/codeeditor/js/ace/mode-logtalk.js +187 -227
- package/src/sap/ui/codeeditor/js/ace/mode-lsl.js +99 -155
- package/src/sap/ui/codeeditor/js/ace/mode-lua.js +152 -211
- package/src/sap/ui/codeeditor/js/ace/mode-luapage.js +1167 -1470
- package/src/sap/ui/codeeditor/js/ace/mode-lucene.js +25 -34
- package/src/sap/ui/codeeditor/js/ace/mode-makefile.js +244 -282
- package/src/sap/ui/codeeditor/js/ace/mode-markdown.js +1858 -2177
- package/src/sap/ui/codeeditor/js/ace/mode-mask.js +964 -1007
- package/src/sap/ui/codeeditor/js/ace/mode-matlab.js +197 -221
- package/src/sap/ui/codeeditor/js/ace/mode-maze.js +127 -163
- package/src/sap/ui/codeeditor/js/ace/mode-mediawiki.js +464 -476
- package/src/sap/ui/codeeditor/js/ace/mode-mel.js +90 -140
- package/src/sap/ui/codeeditor/js/ace/mode-mips.js +101 -134
- package/src/sap/ui/codeeditor/js/ace/mode-mixal.js +63 -75
- package/src/sap/ui/codeeditor/js/ace/mode-mushcode.js +537 -576
- package/src/sap/ui/codeeditor/js/ace/mode-mysql.js +85 -102
- package/src/sap/ui/codeeditor/js/ace/mode-nasal.js +513 -0
- package/src/sap/ui/codeeditor/js/ace/mode-nginx.js +119 -155
- package/src/sap/ui/codeeditor/js/ace/mode-nim.js +159 -197
- package/src/sap/ui/codeeditor/js/ace/mode-nix.js +283 -375
- package/src/sap/ui/codeeditor/js/ace/mode-nsis.js +139 -172
- package/src/sap/ui/codeeditor/js/ace/mode-nunjucks.js +1138 -1378
- package/src/sap/ui/codeeditor/js/ace/mode-objectivec.js +400 -514
- package/src/sap/ui/codeeditor/js/ace/mode-ocaml.js +77 -120
- package/src/sap/ui/codeeditor/js/ace/mode-odin.js +449 -0
- package/src/sap/ui/codeeditor/js/ace/mode-partiql.js +750 -0
- package/src/sap/ui/codeeditor/js/ace/mode-pascal.js +28 -47
- package/src/sap/ui/codeeditor/js/ace/mode-perl.js +122 -185
- package/src/sap/ui/codeeditor/js/ace/mode-pgsql.js +974 -851
- package/src/sap/ui/codeeditor/js/ace/mode-php.js +2282 -1502
- package/src/sap/ui/codeeditor/js/ace/mode-php_laravel_blade.js +2463 -1696
- package/src/sap/ui/codeeditor/js/ace/mode-pig.js +133 -165
- package/src/sap/ui/codeeditor/js/ace/mode-plain_text.js +5 -10
- package/src/sap/ui/codeeditor/js/ace/mode-plsql.js +268 -0
- package/src/sap/ui/codeeditor/js/ace/mode-powershell.js +332 -183
- package/src/sap/ui/codeeditor/js/ace/mode-praat.js +168 -234
- package/src/sap/ui/codeeditor/js/ace/mode-prisma.js +292 -324
- package/src/sap/ui/codeeditor/js/ace/mode-prolog.js +180 -246
- package/src/sap/ui/codeeditor/js/ace/mode-properties.js +26 -37
- package/src/sap/ui/codeeditor/js/ace/mode-protobuf.js +232 -327
- package/src/sap/ui/codeeditor/js/ace/mode-prql.js +320 -0
- package/src/sap/ui/codeeditor/js/ace/mode-puppet.js +68 -120
- package/src/sap/ui/codeeditor/js/ace/mode-python.js +338 -370
- package/src/sap/ui/codeeditor/js/ace/mode-qml.js +244 -279
- package/src/sap/ui/codeeditor/js/ace/mode-r.js +295 -220
- package/src/sap/ui/codeeditor/js/ace/mode-raku.js +356 -433
- package/src/sap/ui/codeeditor/js/ace/mode-razor.js +1130 -1374
- package/src/sap/ui/codeeditor/js/ace/mode-rdoc.js +214 -171
- package/src/sap/ui/codeeditor/js/ace/mode-red.js +212 -274
- package/src/sap/ui/codeeditor/js/ace/mode-redshift.js +181 -220
- package/src/sap/ui/codeeditor/js/ace/mode-rhtml.js +1325 -1443
- package/src/sap/ui/codeeditor/js/ace/mode-robot.js +168 -0
- package/src/sap/ui/codeeditor/js/ace/mode-rst.js +217 -229
- package/src/sap/ui/codeeditor/js/ace/mode-ruby.js +338 -420
- package/src/sap/ui/codeeditor/js/ace/mode-rust.js +258 -155
- package/src/sap/ui/codeeditor/js/ace/mode-sac.js +349 -0
- package/src/sap/ui/codeeditor/js/ace/mode-sass.js +257 -309
- package/src/sap/ui/codeeditor/js/ace/mode-scad.js +127 -191
- package/src/sap/ui/codeeditor/js/ace/mode-scala.js +572 -468
- package/src/sap/ui/codeeditor/js/ace/mode-scheme.js +104 -126
- package/src/sap/ui/codeeditor/js/ace/mode-scrypt.js +181 -228
- package/src/sap/ui/codeeditor/js/ace/mode-scss.js +364 -472
- package/src/sap/ui/codeeditor/js/ace/mode-sh.js +204 -266
- package/src/sap/ui/codeeditor/js/ace/mode-sjs.js +477 -405
- package/src/sap/ui/codeeditor/js/ace/mode-slim.js +2631 -3161
- package/src/sap/ui/codeeditor/js/ace/mode-smarty.js +1075 -1334
- package/src/sap/ui/codeeditor/js/ace/mode-smithy.js +276 -327
- package/src/sap/ui/codeeditor/js/ace/mode-snippets.js +78 -102
- package/src/sap/ui/codeeditor/js/ace/mode-soy_template.js +1251 -1548
- package/src/sap/ui/codeeditor/js/ace/mode-space.js +47 -63
- package/src/sap/ui/codeeditor/js/ace/mode-sparql.js +139 -171
- package/src/sap/ui/codeeditor/js/ace/mode-sql.js +77 -133
- package/src/sap/ui/codeeditor/js/ace/mode-sqlserver.js +138 -192
- package/src/sap/ui/codeeditor/js/ace/mode-stylus.js +306 -338
- package/src/sap/ui/codeeditor/js/ace/mode-svg.js +642 -794
- package/src/sap/ui/codeeditor/js/ace/mode-swift.js +96 -150
- package/src/sap/ui/codeeditor/js/ace/mode-tcl.js +151 -200
- package/src/sap/ui/codeeditor/js/ace/mode-terraform.js +78 -132
- package/src/sap/ui/codeeditor/js/ace/mode-tex.js +148 -96
- package/src/sap/ui/codeeditor/js/ace/mode-textile.js +45 -70
- package/src/sap/ui/codeeditor/js/ace/mode-toml.js +63 -87
- package/src/sap/ui/codeeditor/js/ace/mode-tsx.js +462 -384
- package/src/sap/ui/codeeditor/js/ace/mode-turtle.js +119 -151
- package/src/sap/ui/codeeditor/js/ace/mode-twig.js +1099 -1350
- package/src/sap/ui/codeeditor/js/ace/mode-typescript.js +455 -376
- package/src/sap/ui/codeeditor/js/ace/mode-vala.js +382 -505
- package/src/sap/ui/codeeditor/js/ace/mode-vbscript.js +231 -264
- package/src/sap/ui/codeeditor/js/ace/mode-velocity.js +1116 -1388
- package/src/sap/ui/codeeditor/js/ace/mode-verilog.js +61 -81
- package/src/sap/ui/codeeditor/js/ace/mode-vhdl.js +57 -79
- package/src/sap/ui/codeeditor/js/ace/mode-visualforce.js +1046 -1292
- package/src/sap/ui/codeeditor/js/ace/mode-wollok.js +525 -417
- package/src/sap/ui/codeeditor/js/ace/mode-xml.js +182 -389
- package/src/sap/ui/codeeditor/js/ace/mode-xquery.js +58 -112
- package/src/sap/ui/codeeditor/js/ace/mode-yaml.js +202 -137
- package/src/sap/ui/codeeditor/js/ace/mode-zeek.js +237 -274
- package/src/sap/ui/codeeditor/js/ace/snippets/abc.js +5 -34
- package/src/sap/ui/codeeditor/js/ace/snippets/actionscript.js +5 -160
- package/src/sap/ui/codeeditor/js/ace/snippets/astro.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/bibtex.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/c_cpp.js +5 -134
- package/src/sap/ui/codeeditor/js/ace/snippets/clojure.js +5 -93
- package/src/sap/ui/codeeditor/js/ace/snippets/coffee.js +5 -98
- package/src/sap/ui/codeeditor/js/ace/snippets/csound_document.js +5 -13
- package/src/sap/ui/codeeditor/js/ace/snippets/csound_orchestra.js +5 -50
- package/src/sap/ui/codeeditor/js/ace/snippets/css.js +5 -970
- package/src/sap/ui/codeeditor/js/ace/snippets/cuttlefish.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/dart.js +5 -86
- package/src/sap/ui/codeeditor/js/ace/snippets/diff.js +5 -14
- package/src/sap/ui/codeeditor/js/ace/snippets/django.js +5 -111
- package/src/sap/ui/codeeditor/js/ace/snippets/drools.js +5 -22
- package/src/sap/ui/codeeditor/js/ace/snippets/edifact.js +8 -246
- package/src/sap/ui/codeeditor/js/ace/snippets/erlang.js +5 -163
- package/src/sap/ui/codeeditor/js/ace/snippets/flix.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/fsl.js +6 -4
- package/src/sap/ui/codeeditor/js/ace/snippets/gobstones.js +5 -1707
- package/src/sap/ui/codeeditor/js/ace/snippets/graphqlschema.js +5 -35
- package/src/sap/ui/codeeditor/js/ace/snippets/haml.js +5 -23
- package/src/sap/ui/codeeditor/js/ace/snippets/haskell.js +5 -85
- package/src/sap/ui/codeeditor/js/ace/snippets/html.js +5 -856
- package/src/sap/ui/codeeditor/js/ace/snippets/io.js +1 -3
- package/src/sap/ui/codeeditor/js/ace/snippets/ion.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/java.js +5 -243
- package/src/sap/ui/codeeditor/js/ace/snippets/javascript.js +5 -198
- package/src/sap/ui/codeeditor/js/ace/snippets/jexl.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/jsoniq.js +44 -41
- package/src/sap/ui/codeeditor/js/ace/snippets/jsp.js +5 -102
- package/src/sap/ui/codeeditor/js/ace/snippets/liquid.js +5 -884
- package/src/sap/ui/codeeditor/js/ace/snippets/lsl.js +5 -1235
- package/src/sap/ui/codeeditor/js/ace/snippets/lua.js +5 -24
- package/src/sap/ui/codeeditor/js/ace/snippets/makefile.js +5 -7
- package/src/sap/ui/codeeditor/js/ace/snippets/markdown.js +5 -91
- package/src/sap/ui/codeeditor/js/ace/snippets/maze.js +5 -12
- package/src/sap/ui/codeeditor/js/ace/snippets/nasal.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/odin.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/partiql.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/perl.js +5 -350
- package/src/sap/ui/codeeditor/js/ace/snippets/php.js +5 -386
- package/src/sap/ui/codeeditor/js/ace/snippets/plsql.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/prql.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/python.js +5 -161
- package/src/sap/ui/codeeditor/js/ace/snippets/r.js +5 -124
- package/src/sap/ui/codeeditor/js/ace/snippets/razor.js +5 -6
- package/src/sap/ui/codeeditor/js/ace/snippets/robot.js +16 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/rst.js +5 -25
- package/src/sap/ui/codeeditor/js/ace/snippets/ruby.js +5 -931
- package/src/sap/ui/codeeditor/js/ace/snippets/sac.js +9 -0
- package/src/sap/ui/codeeditor/js/ace/snippets/sh.js +5 -86
- package/src/sap/ui/codeeditor/js/ace/snippets/snippets.js +5 -12
- package/src/sap/ui/codeeditor/js/ace/snippets/sql.js +5 -29
- package/src/sap/ui/codeeditor/js/ace/snippets/sqlserver.js +5 -72
- package/src/sap/ui/codeeditor/js/ace/snippets/tcl.js +5 -95
- package/src/sap/ui/codeeditor/js/ace/snippets/tex.js +5 -193
- package/src/sap/ui/codeeditor/js/ace/snippets/textile.js +5 -33
- package/src/sap/ui/codeeditor/js/ace/snippets/vala.js +1 -2
- package/src/sap/ui/codeeditor/js/ace/snippets/velocity.js +5 -31
- package/src/sap/ui/codeeditor/js/ace/snippets/wollok.js +5 -87
- package/src/sap/ui/codeeditor/js/ace/snippets/xquery.js +44 -41
- package/src/sap/ui/codeeditor/js/ace/theme-ambiance.js +5 -172
- package/src/sap/ui/codeeditor/js/ace/theme-chaos.js +5 -150
- package/src/sap/ui/codeeditor/js/ace/theme-chrome.js +6 -123
- package/src/sap/ui/codeeditor/js/ace/theme-cloud9_day.js +19 -0
- package/src/sap/ui/codeeditor/js/ace/theme-cloud9_night.js +18 -0
- package/src/sap/ui/codeeditor/js/ace/theme-cloud9_night_low_color.js +18 -0
- package/src/sap/ui/codeeditor/js/ace/theme-clouds.js +6 -90
- package/src/sap/ui/codeeditor/js/ace/theme-clouds_midnight.js +6 -91
- package/src/sap/ui/codeeditor/js/ace/theme-cobalt.js +6 -108
- package/src/sap/ui/codeeditor/js/ace/theme-crimson_editor.js +6 -113
- package/src/sap/ui/codeeditor/js/ace/theme-dawn.js +6 -103
- package/src/sap/ui/codeeditor/js/ace/theme-dracula.js +6 -122
- package/src/sap/ui/codeeditor/js/ace/theme-dreamweaver.js +7 -137
- package/src/sap/ui/codeeditor/js/ace/theme-eclipse.js +6 -92
- package/src/sap/ui/codeeditor/js/ace/theme-github.js +7 -99
- package/src/sap/ui/codeeditor/js/ace/theme-github_dark.js +18 -0
- package/src/sap/ui/codeeditor/js/ace/theme-gob.js +6 -107
- package/src/sap/ui/codeeditor/js/ace/theme-gruvbox.js +5 -76
- package/src/sap/ui/codeeditor/js/ace/theme-gruvbox_dark_hard.js +18 -0
- package/src/sap/ui/codeeditor/js/ace/theme-gruvbox_light_hard.js +18 -0
- package/src/sap/ui/codeeditor/js/ace/theme-idle_fingers.js +6 -91
- package/src/sap/ui/codeeditor/js/ace/theme-iplastic.js +6 -116
- package/src/sap/ui/codeeditor/js/ace/theme-katzenmilch.js +6 -116
- package/src/sap/ui/codeeditor/js/ace/theme-kr_theme.js +6 -99
- package/src/sap/ui/codeeditor/js/ace/theme-kuroir.js +6 -56
- package/src/sap/ui/codeeditor/js/ace/theme-merbivore.js +6 -90
- package/src/sap/ui/codeeditor/js/ace/theme-merbivore_soft.js +6 -91
- package/src/sap/ui/codeeditor/js/ace/theme-mono_industrial.js +6 -102
- package/src/sap/ui/codeeditor/js/ace/theme-monokai.js +6 -100
- package/src/sap/ui/codeeditor/js/ace/theme-nord_dark.js +6 -89
- package/src/sap/ui/codeeditor/js/ace/theme-one_dark.js +10 -131
- package/src/sap/ui/codeeditor/js/ace/theme-pastel_on_dark.js +6 -103
- package/src/sap/ui/codeeditor/js/ace/theme-solarized_dark.js +6 -83
- package/src/sap/ui/codeeditor/js/ace/theme-solarized_light.js +6 -86
- package/src/sap/ui/codeeditor/js/ace/theme-sqlserver.js +6 -133
- package/src/sap/ui/codeeditor/js/ace/theme-terminal.js +6 -109
- package/src/sap/ui/codeeditor/js/ace/theme-textmate.js +3 -124
- package/src/sap/ui/codeeditor/js/ace/theme-tomorrow.js +6 -103
- package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night.js +6 -103
- package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_blue.js +6 -101
- package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_bright.js +6 -116
- package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_eighties.js +6 -103
- package/src/sap/ui/codeeditor/js/ace/theme-twilight.js +6 -104
- package/src/sap/ui/codeeditor/js/ace/theme-vibrant_ink.js +6 -89
- package/src/sap/ui/codeeditor/js/ace/theme-xcode.js +6 -83
- package/src/sap/ui/codeeditor/js/ace/worker-base.js +516 -595
- package/src/sap/ui/codeeditor/js/ace/worker-coffee.js +496 -575
- package/src/sap/ui/codeeditor/js/ace/worker-css.js +501 -578
- package/src/sap/ui/codeeditor/js/ace/worker-html.js +515 -584
- package/src/sap/ui/codeeditor/js/ace/worker-javascript.js +2964 -2551
- package/src/sap/ui/codeeditor/js/ace/worker-json.js +496 -575
- package/src/sap/ui/codeeditor/js/ace/worker-lua.js +497 -576
- package/src/sap/ui/codeeditor/js/ace/worker-php.js +2906 -2795
- package/src/sap/ui/codeeditor/js/ace/worker-xml.js +496 -575
- package/src/sap/ui/codeeditor/js/ace/worker-xquery.js +496 -575
- package/src/sap/ui/codeeditor/js/ace/worker-yaml.js +5851 -0
- package/src/sap/ui/codeeditor/library.js +6 -5
- package/LICENSES/BSD-2-Clause.txt +0 -22
|
@@ -1,201 +1,183 @@
|
|
|
1
|
-
ace.define("ace/mode/csound_preprocessor_highlight_rules",[], function(require, exports, module)
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
1
|
+
ace.define("ace/mode/csound_preprocessor_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
4
2
|
var oop = require("../lib/oop");
|
|
5
|
-
|
|
6
3
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
7
|
-
|
|
8
|
-
var CsoundPreprocessorHighlightRules = function(embeddedRulePrefix) {
|
|
9
|
-
|
|
4
|
+
var CsoundPreprocessorHighlightRules = function (embeddedRulePrefix) {
|
|
10
5
|
this.embeddedRulePrefix = embeddedRulePrefix === undefined ? "" : embeddedRulePrefix;
|
|
11
|
-
|
|
12
6
|
this.semicolonComments = {
|
|
13
|
-
token
|
|
14
|
-
regex
|
|
7
|
+
token: "comment.line.semicolon.csound",
|
|
8
|
+
regex: ";.*$"
|
|
15
9
|
};
|
|
16
|
-
|
|
17
10
|
this.comments = [
|
|
18
11
|
{
|
|
19
|
-
token
|
|
20
|
-
regex
|
|
21
|
-
push
|
|
12
|
+
token: "punctuation.definition.comment.begin.csound",
|
|
13
|
+
regex: "/\\*",
|
|
14
|
+
push: [
|
|
22
15
|
{
|
|
23
|
-
token
|
|
24
|
-
regex
|
|
25
|
-
next
|
|
16
|
+
token: "punctuation.definition.comment.end.csound",
|
|
17
|
+
regex: "\\*/",
|
|
18
|
+
next: "pop"
|
|
26
19
|
}, {
|
|
27
20
|
defaultToken: "comment.block.csound"
|
|
28
21
|
}
|
|
29
22
|
]
|
|
30
23
|
}, {
|
|
31
|
-
token
|
|
32
|
-
regex
|
|
24
|
+
token: "comment.line.double-slash.csound",
|
|
25
|
+
regex: "//.*$"
|
|
33
26
|
},
|
|
34
27
|
this.semicolonComments
|
|
35
28
|
];
|
|
36
|
-
|
|
37
29
|
this.macroUses = [
|
|
38
30
|
{
|
|
39
|
-
token
|
|
40
|
-
regex
|
|
41
|
-
next
|
|
31
|
+
token: ["entity.name.function.preprocessor.csound", "punctuation.definition.macro-parameter-value-list.begin.csound"],
|
|
32
|
+
regex: /(\$[A-Z_a-z]\w*\.?)(\()/,
|
|
33
|
+
next: "macro parameter value list"
|
|
42
34
|
}, {
|
|
43
|
-
token
|
|
44
|
-
regex
|
|
35
|
+
token: "entity.name.function.preprocessor.csound",
|
|
36
|
+
regex: /\$[A-Z_a-z]\w*(?:\.|\b)/
|
|
45
37
|
}
|
|
46
38
|
];
|
|
47
|
-
|
|
48
39
|
this.numbers = [
|
|
49
40
|
{
|
|
50
|
-
token
|
|
51
|
-
regex
|
|
41
|
+
token: "constant.numeric.float.csound",
|
|
42
|
+
regex: /(?:\d+[Ee][+-]?\d+)|(?:\d+\.\d*|\d*\.\d+)(?:[Ee][+-]?\d+)?/
|
|
52
43
|
}, {
|
|
53
|
-
token
|
|
54
|
-
regex
|
|
44
|
+
token: ["storage.type.number.csound", "constant.numeric.integer.hexadecimal.csound"],
|
|
45
|
+
regex: /(0[Xx])([0-9A-Fa-f]+)/
|
|
55
46
|
}, {
|
|
56
|
-
token
|
|
57
|
-
regex
|
|
47
|
+
token: "constant.numeric.integer.decimal.csound",
|
|
48
|
+
regex: /\d+/
|
|
58
49
|
}
|
|
59
50
|
];
|
|
60
|
-
|
|
61
51
|
this.bracedStringContents = [
|
|
62
52
|
{
|
|
63
|
-
token
|
|
64
|
-
regex
|
|
53
|
+
token: "constant.character.escape.csound",
|
|
54
|
+
regex: /\\(?:[\\abnrt"]|[0-7]{1,3})/
|
|
65
55
|
},
|
|
66
56
|
{
|
|
67
|
-
token
|
|
68
|
-
regex
|
|
57
|
+
token: "constant.character.placeholder.csound",
|
|
58
|
+
regex: /%[#0\- +]*\d*(?:\.\d+)?[diuoxXfFeEgGaAcs]/
|
|
69
59
|
}, {
|
|
70
|
-
token
|
|
71
|
-
regex
|
|
60
|
+
token: "constant.character.escape.csound",
|
|
61
|
+
regex: /%%/
|
|
72
62
|
}
|
|
73
63
|
];
|
|
74
|
-
|
|
75
64
|
this.quotedStringContents = [
|
|
76
65
|
this.macroUses,
|
|
77
66
|
this.bracedStringContents
|
|
78
67
|
];
|
|
79
|
-
|
|
80
68
|
var start = [
|
|
81
69
|
this.comments,
|
|
82
|
-
|
|
83
70
|
{
|
|
84
|
-
token
|
|
85
|
-
regex
|
|
71
|
+
token: "keyword.preprocessor.csound",
|
|
72
|
+
regex: /#(?:e(?:nd(?:if)?|lse)\b|##)|@@?[ \t]*\d+/
|
|
86
73
|
}, {
|
|
87
|
-
token
|
|
88
|
-
regex
|
|
89
|
-
push
|
|
74
|
+
token: "keyword.preprocessor.csound",
|
|
75
|
+
regex: /#include/,
|
|
76
|
+
push: [
|
|
90
77
|
this.comments,
|
|
91
78
|
{
|
|
92
|
-
token
|
|
93
|
-
regex
|
|
94
|
-
next
|
|
79
|
+
token: "string.csound",
|
|
80
|
+
regex: /([^ \t])(?:.*?\1)/,
|
|
81
|
+
next: "pop"
|
|
95
82
|
}
|
|
96
83
|
]
|
|
97
84
|
}, {
|
|
98
|
-
token
|
|
99
|
-
regex
|
|
100
|
-
push
|
|
85
|
+
token: "keyword.preprocessor.csound",
|
|
86
|
+
regex: /#includestr/,
|
|
87
|
+
push: [
|
|
101
88
|
this.comments,
|
|
102
89
|
{
|
|
103
|
-
token
|
|
104
|
-
regex
|
|
105
|
-
next
|
|
90
|
+
token: "string.csound",
|
|
91
|
+
regex: /([^ \t])(?:.*?\1)/,
|
|
92
|
+
next: "pop"
|
|
106
93
|
}
|
|
107
94
|
]
|
|
108
95
|
}, {
|
|
109
|
-
token
|
|
110
|
-
regex
|
|
111
|
-
next
|
|
96
|
+
token: "keyword.preprocessor.csound",
|
|
97
|
+
regex: /#[ \t]*define/,
|
|
98
|
+
next: "define directive"
|
|
112
99
|
}, {
|
|
113
|
-
token
|
|
114
|
-
regex
|
|
115
|
-
next
|
|
100
|
+
token: "keyword.preprocessor.csound",
|
|
101
|
+
regex: /#(?:ifn?def|undef)\b/,
|
|
102
|
+
next: "macro directive"
|
|
116
103
|
},
|
|
117
|
-
|
|
118
104
|
this.macroUses
|
|
119
105
|
];
|
|
120
|
-
|
|
121
106
|
this.$rules = {
|
|
122
107
|
"start": start,
|
|
123
|
-
|
|
124
108
|
"define directive": [
|
|
125
109
|
this.comments,
|
|
126
110
|
{
|
|
127
|
-
token
|
|
128
|
-
regex
|
|
111
|
+
token: "entity.name.function.preprocessor.csound",
|
|
112
|
+
regex: /[A-Z_a-z]\w*/
|
|
129
113
|
}, {
|
|
130
|
-
token
|
|
131
|
-
regex
|
|
132
|
-
next
|
|
114
|
+
token: "punctuation.definition.macro-parameter-name-list.begin.csound",
|
|
115
|
+
regex: /\(/,
|
|
116
|
+
next: "macro parameter name list"
|
|
133
117
|
}, {
|
|
134
|
-
token
|
|
135
|
-
regex
|
|
136
|
-
next
|
|
118
|
+
token: "punctuation.definition.macro.begin.csound",
|
|
119
|
+
regex: /#/,
|
|
120
|
+
next: "macro body"
|
|
137
121
|
}
|
|
138
122
|
],
|
|
139
123
|
"macro parameter name list": [
|
|
140
124
|
{
|
|
141
|
-
token
|
|
142
|
-
regex
|
|
125
|
+
token: "variable.parameter.preprocessor.csound",
|
|
126
|
+
regex: /[A-Z_a-z]\w*/
|
|
143
127
|
}, {
|
|
144
|
-
token
|
|
145
|
-
regex
|
|
146
|
-
next
|
|
128
|
+
token: "punctuation.definition.macro-parameter-name-list.end.csound",
|
|
129
|
+
regex: /\)/,
|
|
130
|
+
next: "define directive"
|
|
147
131
|
}
|
|
148
132
|
],
|
|
149
133
|
"macro body": [
|
|
150
134
|
{
|
|
151
|
-
token
|
|
152
|
-
regex
|
|
135
|
+
token: "constant.character.escape.csound",
|
|
136
|
+
regex: /\\#/
|
|
153
137
|
}, {
|
|
154
|
-
token
|
|
155
|
-
regex
|
|
156
|
-
next
|
|
138
|
+
token: "punctuation.definition.macro.end.csound",
|
|
139
|
+
regex: /#/,
|
|
140
|
+
next: "start"
|
|
157
141
|
},
|
|
158
142
|
start
|
|
159
143
|
],
|
|
160
|
-
|
|
161
144
|
"macro directive": [
|
|
162
145
|
this.comments,
|
|
163
146
|
{
|
|
164
|
-
token
|
|
165
|
-
regex
|
|
166
|
-
next
|
|
147
|
+
token: "entity.name.function.preprocessor.csound",
|
|
148
|
+
regex: /[A-Z_a-z]\w*/,
|
|
149
|
+
next: "start"
|
|
167
150
|
}
|
|
168
151
|
],
|
|
169
|
-
|
|
170
152
|
"macro parameter value list": [
|
|
171
153
|
{
|
|
172
|
-
token
|
|
173
|
-
regex
|
|
174
|
-
next
|
|
154
|
+
token: "punctuation.definition.macro-parameter-value-list.end.csound",
|
|
155
|
+
regex: /\)/,
|
|
156
|
+
next: "start"
|
|
175
157
|
}, {
|
|
176
|
-
token
|
|
177
|
-
regex
|
|
178
|
-
next
|
|
158
|
+
token: "punctuation.definition.string.begin.csound",
|
|
159
|
+
regex: /"/,
|
|
160
|
+
next: "macro parameter value quoted string"
|
|
179
161
|
}, this.pushRule({
|
|
180
|
-
token
|
|
181
|
-
regex
|
|
182
|
-
next
|
|
162
|
+
token: "punctuation.macro-parameter-value-parenthetical.begin.csound",
|
|
163
|
+
regex: /\(/,
|
|
164
|
+
next: "macro parameter value parenthetical"
|
|
183
165
|
}), {
|
|
184
|
-
token
|
|
185
|
-
regex
|
|
166
|
+
token: "punctuation.macro-parameter-value-separator.csound",
|
|
167
|
+
regex: "[#']"
|
|
186
168
|
}
|
|
187
169
|
],
|
|
188
170
|
"macro parameter value quoted string": [
|
|
189
171
|
{
|
|
190
|
-
token
|
|
191
|
-
regex
|
|
172
|
+
token: "constant.character.escape.csound",
|
|
173
|
+
regex: /\\[#'()]/
|
|
192
174
|
}, {
|
|
193
|
-
token
|
|
194
|
-
regex
|
|
175
|
+
token: "invalid.illegal.csound",
|
|
176
|
+
regex: /[#'()]/
|
|
195
177
|
}, {
|
|
196
|
-
token
|
|
197
|
-
regex
|
|
198
|
-
next
|
|
178
|
+
token: "punctuation.definition.string.end.csound",
|
|
179
|
+
regex: /"/,
|
|
180
|
+
next: "macro parameter value list"
|
|
199
181
|
},
|
|
200
182
|
this.quotedStringContents,
|
|
201
183
|
{
|
|
@@ -204,277 +186,235 @@ var CsoundPreprocessorHighlightRules = function(embeddedRulePrefix) {
|
|
|
204
186
|
],
|
|
205
187
|
"macro parameter value parenthetical": [
|
|
206
188
|
{
|
|
207
|
-
token
|
|
208
|
-
regex
|
|
189
|
+
token: "constant.character.escape.csound",
|
|
190
|
+
regex: /\\\)/
|
|
209
191
|
}, this.popRule({
|
|
210
|
-
token
|
|
211
|
-
regex
|
|
192
|
+
token: "punctuation.macro-parameter-value-parenthetical.end.csound",
|
|
193
|
+
regex: /\)/
|
|
212
194
|
}), this.pushRule({
|
|
213
|
-
token
|
|
214
|
-
regex
|
|
215
|
-
next
|
|
195
|
+
token: "punctuation.macro-parameter-value-parenthetical.begin.csound",
|
|
196
|
+
regex: /\(/,
|
|
197
|
+
next: "macro parameter value parenthetical"
|
|
216
198
|
}),
|
|
217
199
|
start
|
|
218
200
|
]
|
|
219
201
|
};
|
|
220
202
|
};
|
|
221
|
-
|
|
222
203
|
oop.inherits(CsoundPreprocessorHighlightRules, TextHighlightRules);
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
this.pushRule = function(params) {
|
|
204
|
+
(function () {
|
|
205
|
+
this.pushRule = function (params) {
|
|
227
206
|
if (Array.isArray(params.next)) {
|
|
228
207
|
for (var i = 0; i < params.next.length; i++) {
|
|
229
208
|
params.next[i] = this.embeddedRulePrefix + params.next[i];
|
|
230
209
|
}
|
|
231
210
|
}
|
|
232
|
-
|
|
233
211
|
return {
|
|
234
|
-
regex
|
|
212
|
+
regex: params.regex, onMatch: function (value, currentState, stack, line) {
|
|
235
213
|
if (stack.length === 0)
|
|
236
214
|
stack.push(currentState);
|
|
237
215
|
if (Array.isArray(params.next)) {
|
|
238
216
|
for (var i = 0; i < params.next.length; i++) {
|
|
239
217
|
stack.push(params.next[i]);
|
|
240
218
|
}
|
|
241
|
-
}
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
242
221
|
stack.push(params.next);
|
|
243
222
|
}
|
|
244
223
|
this.next = stack[stack.length - 1];
|
|
245
224
|
return params.token;
|
|
246
225
|
},
|
|
247
|
-
|
|
248
226
|
get next() { return Array.isArray(params.next) ? params.next[params.next.length - 1] : params.next; },
|
|
249
227
|
set next(next) {
|
|
250
228
|
if (!Array.isArray(params.next)) {
|
|
251
229
|
params.next = next;
|
|
252
230
|
}
|
|
253
231
|
},
|
|
254
|
-
|
|
255
232
|
get token() { return params.token; }
|
|
256
233
|
};
|
|
257
234
|
};
|
|
258
|
-
|
|
259
|
-
this.popRule = function(params) {
|
|
235
|
+
this.popRule = function (params) {
|
|
260
236
|
if (params.next) {
|
|
261
237
|
params.next = this.embeddedRulePrefix + params.next;
|
|
262
238
|
}
|
|
263
|
-
|
|
264
239
|
return {
|
|
265
|
-
regex
|
|
240
|
+
regex: params.regex, onMatch: function (value, currentState, stack, line) {
|
|
266
241
|
stack.pop();
|
|
267
242
|
if (params.next) {
|
|
268
243
|
stack.push(params.next);
|
|
269
244
|
this.next = stack[stack.length - 1];
|
|
270
|
-
}
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
271
247
|
this.next = stack.length > 1 ? stack[stack.length - 1] : stack.pop();
|
|
272
248
|
}
|
|
273
249
|
return params.token;
|
|
274
250
|
}
|
|
275
251
|
};
|
|
276
252
|
};
|
|
277
|
-
|
|
278
253
|
}).call(CsoundPreprocessorHighlightRules.prototype);
|
|
279
|
-
|
|
280
254
|
exports.CsoundPreprocessorHighlightRules = CsoundPreprocessorHighlightRules;
|
|
281
|
-
});
|
|
282
255
|
|
|
283
|
-
|
|
284
|
-
"use strict";
|
|
256
|
+
});
|
|
285
257
|
|
|
258
|
+
ace.define("ace/mode/csound_score_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/csound_preprocessor_highlight_rules"], function(require, exports, module){"use strict";
|
|
286
259
|
var oop = require("../lib/oop");
|
|
287
|
-
|
|
288
260
|
var CsoundPreprocessorHighlightRules = require("./csound_preprocessor_highlight_rules").CsoundPreprocessorHighlightRules;
|
|
289
|
-
|
|
290
|
-
var CsoundScoreHighlightRules = function(embeddedRulePrefix) {
|
|
291
|
-
|
|
261
|
+
var CsoundScoreHighlightRules = function (embeddedRulePrefix) {
|
|
292
262
|
CsoundPreprocessorHighlightRules.call(this, embeddedRulePrefix);
|
|
293
|
-
|
|
294
263
|
this.quotedStringContents.push({
|
|
295
|
-
token
|
|
296
|
-
regex
|
|
264
|
+
token: "invalid.illegal.csound-score",
|
|
265
|
+
regex: /[^"]*$/
|
|
297
266
|
});
|
|
298
|
-
|
|
299
267
|
var start = this.$rules.start;
|
|
300
|
-
start.push(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
regex : /"/,
|
|
344
|
-
next : "quoted string"
|
|
345
|
-
}),
|
|
346
|
-
|
|
347
|
-
this.pushRule({
|
|
348
|
-
token : "punctuation.braced-loop.begin.csound-score",
|
|
349
|
-
regex : /{/,
|
|
350
|
-
next : "loop after left brace"
|
|
351
|
-
})
|
|
352
|
-
);
|
|
353
|
-
|
|
268
|
+
start.push({
|
|
269
|
+
token: "keyword.control.csound-score",
|
|
270
|
+
regex: /[aBbCdefiqstvxy]/
|
|
271
|
+
}, {
|
|
272
|
+
token: "invalid.illegal.csound-score",
|
|
273
|
+
regex: /w/
|
|
274
|
+
}, {
|
|
275
|
+
token: "constant.numeric.language.csound-score",
|
|
276
|
+
regex: /z/
|
|
277
|
+
}, {
|
|
278
|
+
token: ["keyword.control.csound-score", "constant.numeric.integer.decimal.csound-score"],
|
|
279
|
+
regex: /([nNpP][pP])(\d+)/
|
|
280
|
+
}, {
|
|
281
|
+
token: "keyword.other.csound-score",
|
|
282
|
+
regex: /[mn]/,
|
|
283
|
+
push: [
|
|
284
|
+
{
|
|
285
|
+
token: "empty",
|
|
286
|
+
regex: /$/,
|
|
287
|
+
next: "pop"
|
|
288
|
+
},
|
|
289
|
+
this.comments,
|
|
290
|
+
{
|
|
291
|
+
token: "entity.name.label.csound-score",
|
|
292
|
+
regex: /[A-Z_a-z]\w*/
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}, {
|
|
296
|
+
token: "keyword.preprocessor.csound-score",
|
|
297
|
+
regex: /r\b/,
|
|
298
|
+
next: "repeat section"
|
|
299
|
+
}, this.numbers, {
|
|
300
|
+
token: "keyword.operator.csound-score",
|
|
301
|
+
regex: "[!+\\-*/^%&|<>#~.]"
|
|
302
|
+
}, this.pushRule({
|
|
303
|
+
token: "punctuation.definition.string.begin.csound-score",
|
|
304
|
+
regex: /"/,
|
|
305
|
+
next: "quoted string"
|
|
306
|
+
}), this.pushRule({
|
|
307
|
+
token: "punctuation.braced-loop.begin.csound-score",
|
|
308
|
+
regex: /{/,
|
|
309
|
+
next: "loop after left brace"
|
|
310
|
+
}));
|
|
354
311
|
this.addRules({
|
|
355
312
|
"repeat section": [
|
|
356
313
|
{
|
|
357
|
-
token
|
|
358
|
-
regex
|
|
359
|
-
next
|
|
314
|
+
token: "empty",
|
|
315
|
+
regex: /$/,
|
|
316
|
+
next: "start"
|
|
360
317
|
},
|
|
361
318
|
this.comments,
|
|
362
319
|
{
|
|
363
|
-
token
|
|
364
|
-
regex
|
|
365
|
-
next
|
|
320
|
+
token: "constant.numeric.integer.decimal.csound-score",
|
|
321
|
+
regex: /\d+/,
|
|
322
|
+
next: "repeat section before label"
|
|
366
323
|
}
|
|
367
324
|
],
|
|
368
325
|
"repeat section before label": [
|
|
369
326
|
{
|
|
370
|
-
token
|
|
371
|
-
regex
|
|
372
|
-
next
|
|
327
|
+
token: "empty",
|
|
328
|
+
regex: /$/,
|
|
329
|
+
next: "start"
|
|
373
330
|
},
|
|
374
331
|
this.comments,
|
|
375
332
|
{
|
|
376
|
-
token
|
|
377
|
-
regex
|
|
378
|
-
next
|
|
333
|
+
token: "entity.name.label.csound-score",
|
|
334
|
+
regex: /[A-Z_a-z]\w*/,
|
|
335
|
+
next: "start"
|
|
379
336
|
}
|
|
380
337
|
],
|
|
381
|
-
|
|
382
338
|
"quoted string": [
|
|
383
339
|
this.popRule({
|
|
384
|
-
token
|
|
385
|
-
regex
|
|
340
|
+
token: "punctuation.definition.string.end.csound-score",
|
|
341
|
+
regex: /"/
|
|
386
342
|
}),
|
|
387
343
|
this.quotedStringContents,
|
|
388
344
|
{
|
|
389
345
|
defaultToken: "string.quoted.csound-score"
|
|
390
346
|
}
|
|
391
347
|
],
|
|
392
|
-
|
|
393
348
|
"loop after left brace": [
|
|
394
349
|
this.popRule({
|
|
395
|
-
token
|
|
396
|
-
regex
|
|
397
|
-
next
|
|
350
|
+
token: "constant.numeric.integer.decimal.csound-score",
|
|
351
|
+
regex: /\d+/,
|
|
352
|
+
next: "loop after repeat count"
|
|
398
353
|
}),
|
|
399
354
|
this.comments,
|
|
400
355
|
{
|
|
401
|
-
token
|
|
402
|
-
regex
|
|
356
|
+
token: "invalid.illegal.csound",
|
|
357
|
+
regex: /\S.*/
|
|
403
358
|
}
|
|
404
359
|
],
|
|
405
360
|
"loop after repeat count": [
|
|
406
361
|
this.popRule({
|
|
407
|
-
token
|
|
408
|
-
regex
|
|
409
|
-
next
|
|
362
|
+
token: "entity.name.function.preprocessor.csound-score",
|
|
363
|
+
regex: /[A-Z_a-z]\w*\b/,
|
|
364
|
+
next: "loop after macro name"
|
|
410
365
|
}),
|
|
411
366
|
this.comments,
|
|
412
367
|
{
|
|
413
|
-
token
|
|
414
|
-
regex
|
|
368
|
+
token: "invalid.illegal.csound",
|
|
369
|
+
regex: /\S.*/
|
|
415
370
|
}
|
|
416
371
|
],
|
|
417
372
|
"loop after macro name": [
|
|
418
373
|
start,
|
|
419
374
|
this.popRule({
|
|
420
|
-
token
|
|
421
|
-
regex
|
|
375
|
+
token: "punctuation.braced-loop.end.csound-score",
|
|
376
|
+
regex: /}/
|
|
422
377
|
})
|
|
423
378
|
]
|
|
424
379
|
});
|
|
425
|
-
|
|
426
380
|
this.normalizeRules();
|
|
427
381
|
};
|
|
428
|
-
|
|
429
382
|
oop.inherits(CsoundScoreHighlightRules, CsoundPreprocessorHighlightRules);
|
|
430
|
-
|
|
431
383
|
exports.CsoundScoreHighlightRules = CsoundScoreHighlightRules;
|
|
432
|
-
});
|
|
433
384
|
|
|
434
|
-
|
|
435
|
-
"use strict";
|
|
385
|
+
});
|
|
436
386
|
|
|
387
|
+
ace.define("ace/mode/lua_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
437
388
|
var oop = require("../lib/oop");
|
|
438
389
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
|
|
442
|
-
var keywords = (
|
|
443
|
-
"break|do|else|elseif|end|for|function|if|in|local|repeat|"+
|
|
444
|
-
"return|then|until|while|or|and|not"
|
|
445
|
-
);
|
|
446
|
-
|
|
390
|
+
var LuaHighlightRules = function () {
|
|
391
|
+
var keywords = ("break|do|else|elseif|end|for|function|if|in|local|repeat|" +
|
|
392
|
+
"return|then|until|while|or|and|not");
|
|
447
393
|
var builtinConstants = ("true|false|nil|_G|_VERSION");
|
|
448
|
-
|
|
449
394
|
var functions = (
|
|
450
|
-
|
|
451
|
-
"getfenv|setmetatable|next|assert|tonumber|io|rawequal|"+
|
|
452
|
-
"collectgarbage|getmetatable|module|rawset|math|debug|"+
|
|
453
|
-
"pcall|table|newproxy|type|coroutine|_G|select|gcinfo|"+
|
|
454
|
-
"pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|"+
|
|
455
|
-
"load|error|loadfile|"+
|
|
456
|
-
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
"
|
|
468
|
-
"
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber"
|
|
472
|
-
);
|
|
473
|
-
|
|
395
|
+
"string|xpcall|package|tostring|print|os|unpack|require|" +
|
|
396
|
+
"getfenv|setmetatable|next|assert|tonumber|io|rawequal|" +
|
|
397
|
+
"collectgarbage|getmetatable|module|rawset|math|debug|" +
|
|
398
|
+
"pcall|table|newproxy|type|coroutine|_G|select|gcinfo|" +
|
|
399
|
+
"pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|" +
|
|
400
|
+
"load|error|loadfile|" +
|
|
401
|
+
"sub|upper|len|gfind|rep|find|match|char|dump|gmatch|" +
|
|
402
|
+
"reverse|byte|format|gsub|lower|preload|loadlib|loaded|" +
|
|
403
|
+
"loaders|cpath|config|path|seeall|exit|setlocale|date|" +
|
|
404
|
+
"getenv|difftime|remove|time|clock|tmpname|rename|execute|" +
|
|
405
|
+
"lines|write|close|flush|open|output|type|read|stderr|" +
|
|
406
|
+
"stdin|input|stdout|popen|tmpfile|log|max|acos|huge|" +
|
|
407
|
+
"ldexp|pi|cos|tanh|pow|deg|tan|cosh|sinh|random|randomseed|" +
|
|
408
|
+
"frexp|ceil|floor|rad|abs|sqrt|modf|asin|min|mod|fmod|log10|" +
|
|
409
|
+
"atan2|exp|sin|atan|getupvalue|debug|sethook|getmetatable|" +
|
|
410
|
+
"gethook|setmetatable|setlocal|traceback|setfenv|getinfo|" +
|
|
411
|
+
"setupvalue|getlocal|getregistry|getfenv|setn|insert|getn|" +
|
|
412
|
+
"foreachi|maxn|foreach|concat|sort|remove|resume|yield|" +
|
|
413
|
+
"status|wrap|create|running|" +
|
|
414
|
+
"__add|__sub|__mod|__unm|__concat|__lt|__index|__call|__gc|__metatable|" +
|
|
415
|
+
"__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber");
|
|
474
416
|
var stdLibaries = ("string|package|os|io|math|debug|table|coroutine");
|
|
475
|
-
|
|
476
417
|
var deprecatedIn5152 = ("setn|foreach|foreachi|gcinfo|log10|maxn");
|
|
477
|
-
|
|
478
418
|
var keywordMapper = this.createKeywordMapper({
|
|
479
419
|
"keyword": keywords,
|
|
480
420
|
"support.function": functions,
|
|
@@ -483,133 +423,120 @@ var LuaHighlightRules = function() {
|
|
|
483
423
|
"constant.language": builtinConstants,
|
|
484
424
|
"variable.language": "self"
|
|
485
425
|
}, "identifier");
|
|
486
|
-
|
|
487
426
|
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
|
|
488
427
|
var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
|
|
489
428
|
var integer = "(?:" + decimalInteger + "|" + hexInteger + ")";
|
|
490
|
-
|
|
491
429
|
var fraction = "(?:\\.\\d+)";
|
|
492
430
|
var intPart = "(?:\\d+)";
|
|
493
431
|
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
|
494
432
|
var floatNumber = "(?:" + pointFloat + ")";
|
|
495
|
-
|
|
496
433
|
this.$rules = {
|
|
497
|
-
"start"
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
434
|
+
"start": [{
|
|
435
|
+
stateName: "bracketedComment",
|
|
436
|
+
onMatch: function (value, currentState, stack) {
|
|
437
|
+
stack.unshift(this.next, value.length - 2, currentState);
|
|
438
|
+
return "comment";
|
|
439
|
+
},
|
|
440
|
+
regex: /\-\-\[=*\[/,
|
|
441
|
+
next: [
|
|
442
|
+
{
|
|
443
|
+
onMatch: function (value, currentState, stack) {
|
|
444
|
+
if (value.length == stack[1]) {
|
|
445
|
+
stack.shift();
|
|
446
|
+
stack.shift();
|
|
447
|
+
this.next = stack.shift();
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
this.next = "";
|
|
451
|
+
}
|
|
452
|
+
return "comment";
|
|
453
|
+
},
|
|
454
|
+
regex: /\]=*\]/,
|
|
455
|
+
next: "start"
|
|
456
|
+
}, {
|
|
457
|
+
defaultToken: "comment"
|
|
458
|
+
}
|
|
459
|
+
]
|
|
502
460
|
},
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
onMatch : function(value, currentState, stack) {
|
|
507
|
-
if (value.length == stack[1]) {
|
|
508
|
-
stack.shift();
|
|
509
|
-
stack.shift();
|
|
510
|
-
this.next = stack.shift();
|
|
511
|
-
} else {
|
|
512
|
-
this.next = "";
|
|
513
|
-
}
|
|
514
|
-
return "comment";
|
|
515
|
-
},
|
|
516
|
-
regex : /\]=*\]/,
|
|
517
|
-
next : "start"
|
|
518
|
-
}, {
|
|
519
|
-
defaultToken : "comment"
|
|
520
|
-
}
|
|
521
|
-
]
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
{
|
|
525
|
-
token : "comment",
|
|
526
|
-
regex : "\\-\\-.*$"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
stateName: "bracketedString",
|
|
530
|
-
onMatch : function(value, currentState, stack){
|
|
531
|
-
stack.unshift(this.next, value.length, currentState);
|
|
532
|
-
return "string.start";
|
|
461
|
+
{
|
|
462
|
+
token: "comment",
|
|
463
|
+
regex: "\\-\\-.*$"
|
|
533
464
|
},
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
{
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
465
|
+
{
|
|
466
|
+
stateName: "bracketedString",
|
|
467
|
+
onMatch: function (value, currentState, stack) {
|
|
468
|
+
stack.unshift(this.next, value.length, currentState);
|
|
469
|
+
return "string.start";
|
|
470
|
+
},
|
|
471
|
+
regex: /\[=*\[/,
|
|
472
|
+
next: [
|
|
473
|
+
{
|
|
474
|
+
onMatch: function (value, currentState, stack) {
|
|
475
|
+
if (value.length == stack[1]) {
|
|
476
|
+
stack.shift();
|
|
477
|
+
stack.shift();
|
|
478
|
+
this.next = stack.shift();
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
this.next = "";
|
|
482
|
+
}
|
|
483
|
+
return "string.end";
|
|
484
|
+
},
|
|
485
|
+
regex: /\]=*\]/,
|
|
486
|
+
next: "start"
|
|
487
|
+
}, {
|
|
488
|
+
defaultToken: "string"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
token: "string",
|
|
494
|
+
regex: '"(?:[^\\\\]|\\\\.)*?"'
|
|
495
|
+
}, {
|
|
496
|
+
token: "string",
|
|
497
|
+
regex: "'(?:[^\\\\]|\\\\.)*?'"
|
|
498
|
+
}, {
|
|
499
|
+
token: "constant.numeric",
|
|
500
|
+
regex: floatNumber
|
|
501
|
+
}, {
|
|
502
|
+
token: "constant.numeric",
|
|
503
|
+
regex: integer + "\\b"
|
|
504
|
+
}, {
|
|
505
|
+
token: keywordMapper,
|
|
506
|
+
regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
|
507
|
+
}, {
|
|
508
|
+
token: "keyword.operator",
|
|
509
|
+
regex: "\\+|\\-|\\*|\\/|%|\\#|\\^|~|<|>|<=|=>|==|~=|=|\\:|\\.\\.\\.|\\.\\."
|
|
510
|
+
}, {
|
|
511
|
+
token: "paren.lparen",
|
|
512
|
+
regex: "[\\[\\(\\{]"
|
|
513
|
+
}, {
|
|
514
|
+
token: "paren.rparen",
|
|
515
|
+
regex: "[\\]\\)\\}]"
|
|
516
|
+
}, {
|
|
517
|
+
token: "text",
|
|
518
|
+
regex: "\\s+|\\w+"
|
|
519
|
+
}]
|
|
583
520
|
};
|
|
584
|
-
|
|
585
521
|
this.normalizeRules();
|
|
586
522
|
};
|
|
587
|
-
|
|
588
523
|
oop.inherits(LuaHighlightRules, TextHighlightRules);
|
|
589
|
-
|
|
590
524
|
exports.LuaHighlightRules = LuaHighlightRules;
|
|
525
|
+
|
|
591
526
|
});
|
|
592
527
|
|
|
593
|
-
ace.define("ace/mode/python_highlight_rules",[], function(require, exports, module)
|
|
528
|
+
ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){/*
|
|
529
|
+
* TODO: python delimiters
|
|
530
|
+
*/
|
|
594
531
|
"use strict";
|
|
595
|
-
|
|
596
532
|
var oop = require("../lib/oop");
|
|
597
533
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
598
|
-
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
var keywords = (
|
|
602
|
-
"and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
|
|
534
|
+
var PythonHighlightRules = function () {
|
|
535
|
+
var keywords = ("and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
|
|
603
536
|
"finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
|
|
604
|
-
"raise|return|try|while|with|yield|async|await|nonlocal"
|
|
605
|
-
);
|
|
606
|
-
|
|
607
|
-
var builtinConstants = (
|
|
608
|
-
"True|False|None|NotImplemented|Ellipsis|__debug__"
|
|
609
|
-
);
|
|
610
|
-
|
|
611
|
-
var builtinFunctions = (
|
|
612
|
-
"abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
|
|
537
|
+
"raise|return|try|while|with|yield|async|await|nonlocal");
|
|
538
|
+
var builtinConstants = ("True|False|None|NotImplemented|Ellipsis|__debug__");
|
|
539
|
+
var builtinFunctions = ("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
|
|
613
540
|
"eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
|
|
614
541
|
"binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
|
|
615
542
|
"float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
|
|
@@ -617,8 +544,7 @@ var PythonHighlightRules = function() {
|
|
|
617
544
|
"cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
|
|
618
545
|
"__import__|complex|hash|min|apply|delattr|help|next|setattr|set|" +
|
|
619
546
|
"buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|" +
|
|
620
|
-
"ascii|breakpoint|bytes"
|
|
621
|
-
);
|
|
547
|
+
"ascii|breakpoint|bytes");
|
|
622
548
|
var keywordMapper = this.createKeywordMapper({
|
|
623
549
|
"invalid.deprecated": "debugger",
|
|
624
550
|
"support.function": builtinFunctions,
|
|
@@ -626,7 +552,6 @@ var PythonHighlightRules = function() {
|
|
|
626
552
|
"constant.language": builtinConstants,
|
|
627
553
|
"keyword": keywords
|
|
628
554
|
}, "identifier");
|
|
629
|
-
|
|
630
555
|
var strPre = "[uU]?";
|
|
631
556
|
var strRawPre = "[rR]";
|
|
632
557
|
var strFormatPre = "[fF]";
|
|
@@ -636,364 +561,358 @@ var PythonHighlightRules = function() {
|
|
|
636
561
|
var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
|
|
637
562
|
var binInteger = "(?:0[bB][01]+)";
|
|
638
563
|
var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
|
|
639
|
-
|
|
640
564
|
var exponent = "(?:[eE][+-]?\\d+)";
|
|
641
565
|
var fraction = "(?:\\.\\d+)";
|
|
642
566
|
var intPart = "(?:\\d+)";
|
|
643
567
|
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
|
644
568
|
var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
|
|
645
569
|
var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
|
|
646
|
-
|
|
647
570
|
var stringEscape = "\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";
|
|
648
|
-
|
|
649
571
|
this.$rules = {
|
|
650
|
-
"start"
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
572
|
+
"start": [{
|
|
573
|
+
token: "comment",
|
|
574
|
+
regex: "#.*$"
|
|
575
|
+
}, {
|
|
576
|
+
token: "string",
|
|
577
|
+
regex: strPre + '"{3}',
|
|
578
|
+
next: "qqstring3"
|
|
579
|
+
}, {
|
|
580
|
+
token: "string",
|
|
581
|
+
regex: strPre + '"(?=.)',
|
|
582
|
+
next: "qqstring"
|
|
583
|
+
}, {
|
|
584
|
+
token: "string",
|
|
585
|
+
regex: strPre + "'{3}",
|
|
586
|
+
next: "qstring3"
|
|
587
|
+
}, {
|
|
588
|
+
token: "string",
|
|
589
|
+
regex: strPre + "'(?=.)",
|
|
590
|
+
next: "qstring"
|
|
591
|
+
}, {
|
|
592
|
+
token: "string",
|
|
593
|
+
regex: strRawPre + '"{3}',
|
|
594
|
+
next: "rawqqstring3"
|
|
595
|
+
}, {
|
|
596
|
+
token: "string",
|
|
597
|
+
regex: strRawPre + '"(?=.)',
|
|
598
|
+
next: "rawqqstring"
|
|
599
|
+
}, {
|
|
600
|
+
token: "string",
|
|
601
|
+
regex: strRawPre + "'{3}",
|
|
602
|
+
next: "rawqstring3"
|
|
603
|
+
}, {
|
|
604
|
+
token: "string",
|
|
605
|
+
regex: strRawPre + "'(?=.)",
|
|
606
|
+
next: "rawqstring"
|
|
607
|
+
}, {
|
|
608
|
+
token: "string",
|
|
609
|
+
regex: strFormatPre + '"{3}',
|
|
610
|
+
next: "fqqstring3"
|
|
611
|
+
}, {
|
|
612
|
+
token: "string",
|
|
613
|
+
regex: strFormatPre + '"(?=.)',
|
|
614
|
+
next: "fqqstring"
|
|
615
|
+
}, {
|
|
616
|
+
token: "string",
|
|
617
|
+
regex: strFormatPre + "'{3}",
|
|
618
|
+
next: "fqstring3"
|
|
619
|
+
}, {
|
|
620
|
+
token: "string",
|
|
621
|
+
regex: strFormatPre + "'(?=.)",
|
|
622
|
+
next: "fqstring"
|
|
623
|
+
}, {
|
|
624
|
+
token: "string",
|
|
625
|
+
regex: strRawFormatPre + '"{3}',
|
|
626
|
+
next: "rfqqstring3"
|
|
627
|
+
}, {
|
|
628
|
+
token: "string",
|
|
629
|
+
regex: strRawFormatPre + '"(?=.)',
|
|
630
|
+
next: "rfqqstring"
|
|
631
|
+
}, {
|
|
632
|
+
token: "string",
|
|
633
|
+
regex: strRawFormatPre + "'{3}",
|
|
634
|
+
next: "rfqstring3"
|
|
635
|
+
}, {
|
|
636
|
+
token: "string",
|
|
637
|
+
regex: strRawFormatPre + "'(?=.)",
|
|
638
|
+
next: "rfqstring"
|
|
639
|
+
}, {
|
|
640
|
+
token: "keyword.operator",
|
|
641
|
+
regex: "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
|
|
642
|
+
}, {
|
|
643
|
+
token: "punctuation",
|
|
644
|
+
regex: ",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="
|
|
645
|
+
}, {
|
|
646
|
+
token: "paren.lparen",
|
|
647
|
+
regex: "[\\[\\(\\{]"
|
|
648
|
+
}, {
|
|
649
|
+
token: "paren.rparen",
|
|
650
|
+
regex: "[\\]\\)\\}]"
|
|
651
|
+
}, {
|
|
652
|
+
token: ["keyword", "text", "entity.name.function"],
|
|
653
|
+
regex: "(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"
|
|
654
|
+
}, {
|
|
655
|
+
token: "text",
|
|
656
|
+
regex: "\\s+"
|
|
657
|
+
}, {
|
|
658
|
+
include: "constants"
|
|
659
|
+
}],
|
|
735
660
|
"qqstring3": [{
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
661
|
+
token: "constant.language.escape",
|
|
662
|
+
regex: stringEscape
|
|
663
|
+
}, {
|
|
664
|
+
token: "string",
|
|
665
|
+
regex: '"{3}',
|
|
666
|
+
next: "start"
|
|
667
|
+
}, {
|
|
668
|
+
defaultToken: "string"
|
|
669
|
+
}],
|
|
745
670
|
"qstring3": [{
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
671
|
+
token: "constant.language.escape",
|
|
672
|
+
regex: stringEscape
|
|
673
|
+
}, {
|
|
674
|
+
token: "string",
|
|
675
|
+
regex: "'{3}",
|
|
676
|
+
next: "start"
|
|
677
|
+
}, {
|
|
678
|
+
defaultToken: "string"
|
|
679
|
+
}],
|
|
755
680
|
"qqstring": [{
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
681
|
+
token: "constant.language.escape",
|
|
682
|
+
regex: stringEscape
|
|
683
|
+
}, {
|
|
684
|
+
token: "string",
|
|
685
|
+
regex: "\\\\$",
|
|
686
|
+
next: "qqstring"
|
|
687
|
+
}, {
|
|
688
|
+
token: "string",
|
|
689
|
+
regex: '"|$',
|
|
690
|
+
next: "start"
|
|
691
|
+
}, {
|
|
692
|
+
defaultToken: "string"
|
|
693
|
+
}],
|
|
769
694
|
"qstring": [{
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
695
|
+
token: "constant.language.escape",
|
|
696
|
+
regex: stringEscape
|
|
697
|
+
}, {
|
|
698
|
+
token: "string",
|
|
699
|
+
regex: "\\\\$",
|
|
700
|
+
next: "qstring"
|
|
701
|
+
}, {
|
|
702
|
+
token: "string",
|
|
703
|
+
regex: "'|$",
|
|
704
|
+
next: "start"
|
|
705
|
+
}, {
|
|
706
|
+
defaultToken: "string"
|
|
707
|
+
}],
|
|
783
708
|
"rawqqstring3": [{
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
709
|
+
token: "string",
|
|
710
|
+
regex: '"{3}',
|
|
711
|
+
next: "start"
|
|
712
|
+
}, {
|
|
713
|
+
defaultToken: "string"
|
|
714
|
+
}],
|
|
790
715
|
"rawqstring3": [{
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
716
|
+
token: "string",
|
|
717
|
+
regex: "'{3}",
|
|
718
|
+
next: "start"
|
|
719
|
+
}, {
|
|
720
|
+
defaultToken: "string"
|
|
721
|
+
}],
|
|
797
722
|
"rawqqstring": [{
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
723
|
+
token: "string",
|
|
724
|
+
regex: "\\\\$",
|
|
725
|
+
next: "rawqqstring"
|
|
726
|
+
}, {
|
|
727
|
+
token: "string",
|
|
728
|
+
regex: '"|$',
|
|
729
|
+
next: "start"
|
|
730
|
+
}, {
|
|
731
|
+
defaultToken: "string"
|
|
732
|
+
}],
|
|
808
733
|
"rawqstring": [{
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
734
|
+
token: "string",
|
|
735
|
+
regex: "\\\\$",
|
|
736
|
+
next: "rawqstring"
|
|
737
|
+
}, {
|
|
738
|
+
token: "string",
|
|
739
|
+
regex: "'|$",
|
|
740
|
+
next: "start"
|
|
741
|
+
}, {
|
|
742
|
+
defaultToken: "string"
|
|
743
|
+
}],
|
|
819
744
|
"fqqstring3": [{
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
745
|
+
token: "constant.language.escape",
|
|
746
|
+
regex: stringEscape
|
|
747
|
+
}, {
|
|
748
|
+
token: "string",
|
|
749
|
+
regex: '"{3}',
|
|
750
|
+
next: "start"
|
|
751
|
+
}, {
|
|
752
|
+
token: "paren.lparen",
|
|
753
|
+
regex: "{",
|
|
754
|
+
push: "fqstringParRules"
|
|
755
|
+
}, {
|
|
756
|
+
defaultToken: "string"
|
|
757
|
+
}],
|
|
833
758
|
"fqstring3": [{
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
759
|
+
token: "constant.language.escape",
|
|
760
|
+
regex: stringEscape
|
|
761
|
+
}, {
|
|
762
|
+
token: "string",
|
|
763
|
+
regex: "'{3}",
|
|
764
|
+
next: "start"
|
|
765
|
+
}, {
|
|
766
|
+
token: "paren.lparen",
|
|
767
|
+
regex: "{",
|
|
768
|
+
push: "fqstringParRules"
|
|
769
|
+
}, {
|
|
770
|
+
defaultToken: "string"
|
|
771
|
+
}],
|
|
847
772
|
"fqqstring": [{
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
773
|
+
token: "constant.language.escape",
|
|
774
|
+
regex: stringEscape
|
|
775
|
+
}, {
|
|
776
|
+
token: "string",
|
|
777
|
+
regex: "\\\\$",
|
|
778
|
+
next: "fqqstring"
|
|
779
|
+
}, {
|
|
780
|
+
token: "string",
|
|
781
|
+
regex: '"|$',
|
|
782
|
+
next: "start"
|
|
783
|
+
}, {
|
|
784
|
+
token: "paren.lparen",
|
|
785
|
+
regex: "{",
|
|
786
|
+
push: "fqstringParRules"
|
|
787
|
+
}, {
|
|
788
|
+
defaultToken: "string"
|
|
789
|
+
}],
|
|
865
790
|
"fqstring": [{
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
791
|
+
token: "constant.language.escape",
|
|
792
|
+
regex: stringEscape
|
|
793
|
+
}, {
|
|
794
|
+
token: "string",
|
|
795
|
+
regex: "'|$",
|
|
796
|
+
next: "start"
|
|
797
|
+
}, {
|
|
798
|
+
token: "paren.lparen",
|
|
799
|
+
regex: "{",
|
|
800
|
+
push: "fqstringParRules"
|
|
801
|
+
}, {
|
|
802
|
+
defaultToken: "string"
|
|
803
|
+
}],
|
|
879
804
|
"rfqqstring3": [{
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
805
|
+
token: "string",
|
|
806
|
+
regex: '"{3}',
|
|
807
|
+
next: "start"
|
|
808
|
+
}, {
|
|
809
|
+
token: "paren.lparen",
|
|
810
|
+
regex: "{",
|
|
811
|
+
push: "fqstringParRules"
|
|
812
|
+
}, {
|
|
813
|
+
defaultToken: "string"
|
|
814
|
+
}],
|
|
890
815
|
"rfqstring3": [{
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
816
|
+
token: "string",
|
|
817
|
+
regex: "'{3}",
|
|
818
|
+
next: "start"
|
|
819
|
+
}, {
|
|
820
|
+
token: "paren.lparen",
|
|
821
|
+
regex: "{",
|
|
822
|
+
push: "fqstringParRules"
|
|
823
|
+
}, {
|
|
824
|
+
defaultToken: "string"
|
|
825
|
+
}],
|
|
901
826
|
"rfqqstring": [{
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
827
|
+
token: "string",
|
|
828
|
+
regex: "\\\\$",
|
|
829
|
+
next: "rfqqstring"
|
|
830
|
+
}, {
|
|
831
|
+
token: "string",
|
|
832
|
+
regex: '"|$',
|
|
833
|
+
next: "start"
|
|
834
|
+
}, {
|
|
835
|
+
token: "paren.lparen",
|
|
836
|
+
regex: "{",
|
|
837
|
+
push: "fqstringParRules"
|
|
838
|
+
}, {
|
|
839
|
+
defaultToken: "string"
|
|
840
|
+
}],
|
|
916
841
|
"rfqstring": [{
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
"fqstringParRules": [{
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
842
|
+
token: "string",
|
|
843
|
+
regex: "'|$",
|
|
844
|
+
next: "start"
|
|
845
|
+
}, {
|
|
846
|
+
token: "paren.lparen",
|
|
847
|
+
regex: "{",
|
|
848
|
+
push: "fqstringParRules"
|
|
849
|
+
}, {
|
|
850
|
+
defaultToken: "string"
|
|
851
|
+
}],
|
|
852
|
+
"fqstringParRules": [{
|
|
853
|
+
token: "paren.lparen",
|
|
854
|
+
regex: "[\\[\\(]"
|
|
855
|
+
}, {
|
|
856
|
+
token: "paren.rparen",
|
|
857
|
+
regex: "[\\]\\)]"
|
|
858
|
+
}, {
|
|
859
|
+
token: "string",
|
|
860
|
+
regex: "\\s+"
|
|
861
|
+
}, {
|
|
862
|
+
token: "string",
|
|
863
|
+
regex: "'[^']*'"
|
|
864
|
+
}, {
|
|
865
|
+
token: "string",
|
|
866
|
+
regex: '"[^"]*"'
|
|
867
|
+
}, {
|
|
868
|
+
token: "function.support",
|
|
869
|
+
regex: "(!s|!r|!a)"
|
|
870
|
+
}, {
|
|
871
|
+
include: "constants"
|
|
872
|
+
}, {
|
|
873
|
+
token: 'paren.rparen',
|
|
874
|
+
regex: "}",
|
|
875
|
+
next: 'pop'
|
|
876
|
+
}, {
|
|
877
|
+
token: 'paren.lparen',
|
|
878
|
+
regex: "{",
|
|
879
|
+
push: "fqstringParRules"
|
|
880
|
+
}],
|
|
956
881
|
"constants": [{
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
882
|
+
token: "constant.numeric",
|
|
883
|
+
regex: "(?:" + floatNumber + "|\\d+)[jJ]\\b"
|
|
884
|
+
}, {
|
|
885
|
+
token: "constant.numeric",
|
|
886
|
+
regex: floatNumber
|
|
887
|
+
}, {
|
|
888
|
+
token: "constant.numeric",
|
|
889
|
+
regex: integer + "[lL]\\b"
|
|
890
|
+
}, {
|
|
891
|
+
token: "constant.numeric",
|
|
892
|
+
regex: integer + "\\b"
|
|
893
|
+
}, {
|
|
894
|
+
token: ["punctuation", "function.support"],
|
|
895
|
+
regex: "(\\.)([a-zA-Z_]+)\\b"
|
|
896
|
+
}, {
|
|
897
|
+
token: keywordMapper,
|
|
898
|
+
regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
|
899
|
+
}]
|
|
975
900
|
};
|
|
976
901
|
this.normalizeRules();
|
|
977
902
|
};
|
|
978
|
-
|
|
979
903
|
oop.inherits(PythonHighlightRules, TextHighlightRules);
|
|
980
|
-
|
|
981
904
|
exports.PythonHighlightRules = PythonHighlightRules;
|
|
982
|
-
});
|
|
983
905
|
|
|
984
|
-
|
|
985
|
-
"use strict";
|
|
906
|
+
});
|
|
986
907
|
|
|
908
|
+
ace.define("ace/mode/csound_orchestra_highlight_rules",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/mode/csound_preprocessor_highlight_rules","ace/mode/csound_score_highlight_rules","ace/mode/lua_highlight_rules","ace/mode/python_highlight_rules"], function(require, exports, module){"use strict";
|
|
987
909
|
var lang = require("../lib/lang");
|
|
988
910
|
var oop = require("../lib/oop");
|
|
989
|
-
|
|
990
911
|
var CsoundPreprocessorHighlightRules = require("./csound_preprocessor_highlight_rules").CsoundPreprocessorHighlightRules;
|
|
991
912
|
var CsoundScoreHighlightRules = require("./csound_score_highlight_rules").CsoundScoreHighlightRules;
|
|
992
913
|
var LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules;
|
|
993
914
|
var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
|
|
994
|
-
|
|
995
|
-
var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
996
|
-
|
|
915
|
+
var CsoundOrchestraHighlightRules = function (embeddedRulePrefix) {
|
|
997
916
|
CsoundPreprocessorHighlightRules.call(this, embeddedRulePrefix);
|
|
998
917
|
var opcodes = [
|
|
999
918
|
"ATSadd",
|
|
@@ -1170,6 +1089,7 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
1170
1089
|
"betarand",
|
|
1171
1090
|
"bexprnd",
|
|
1172
1091
|
"bformdec1",
|
|
1092
|
+
"bformdec2",
|
|
1173
1093
|
"bformenc1",
|
|
1174
1094
|
"binit",
|
|
1175
1095
|
"biquad",
|
|
@@ -1344,6 +1264,8 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
1344
1264
|
"duserrnd",
|
|
1345
1265
|
"dust",
|
|
1346
1266
|
"dust2",
|
|
1267
|
+
"elapsedcycles",
|
|
1268
|
+
"elapsedtime",
|
|
1347
1269
|
"envlpx",
|
|
1348
1270
|
"envlpxr",
|
|
1349
1271
|
"ephasor",
|
|
@@ -1351,6 +1273,8 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
1351
1273
|
"evalstr",
|
|
1352
1274
|
"event",
|
|
1353
1275
|
"event_i",
|
|
1276
|
+
"eventcycles",
|
|
1277
|
+
"eventtime",
|
|
1354
1278
|
"exciter",
|
|
1355
1279
|
"exitnow",
|
|
1356
1280
|
"exp",
|
|
@@ -1479,6 +1403,7 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
1479
1403
|
"grain2",
|
|
1480
1404
|
"grain3",
|
|
1481
1405
|
"granule",
|
|
1406
|
+
"gtadsr",
|
|
1482
1407
|
"gtf",
|
|
1483
1408
|
"guiro",
|
|
1484
1409
|
"harmon",
|
|
@@ -1810,6 +1735,7 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
1810
1735
|
"mediank",
|
|
1811
1736
|
"metro",
|
|
1812
1737
|
"metro2",
|
|
1738
|
+
"metrobpm",
|
|
1813
1739
|
"mfb",
|
|
1814
1740
|
"midglobal",
|
|
1815
1741
|
"midiarp",
|
|
@@ -1858,6 +1784,7 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
1858
1784
|
"mp3in",
|
|
1859
1785
|
"mp3len",
|
|
1860
1786
|
"mp3nchnls",
|
|
1787
|
+
"mp3out",
|
|
1861
1788
|
"mp3scal",
|
|
1862
1789
|
"mp3sr",
|
|
1863
1790
|
"mpulse",
|
|
@@ -2061,6 +1988,7 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2061
1988
|
"pvsftw",
|
|
2062
1989
|
"pvsfwrite",
|
|
2063
1990
|
"pvsgain",
|
|
1991
|
+
"pvsgendy",
|
|
2064
1992
|
"pvshift",
|
|
2065
1993
|
"pvsifd",
|
|
2066
1994
|
"pvsin",
|
|
@@ -2227,7 +2155,9 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2227
2155
|
"scale2",
|
|
2228
2156
|
"scalearray",
|
|
2229
2157
|
"scanhammer",
|
|
2158
|
+
"scanmap",
|
|
2230
2159
|
"scans",
|
|
2160
|
+
"scansmap",
|
|
2231
2161
|
"scantable",
|
|
2232
2162
|
"scanu",
|
|
2233
2163
|
"scanu2",
|
|
@@ -2246,6 +2176,8 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2246
2176
|
"sensekey",
|
|
2247
2177
|
"seqtime",
|
|
2248
2178
|
"seqtime2",
|
|
2179
|
+
"sequ",
|
|
2180
|
+
"sequstate",
|
|
2249
2181
|
"serialBegin",
|
|
2250
2182
|
"serialEnd",
|
|
2251
2183
|
"serialFlush",
|
|
@@ -2438,8 +2370,10 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2438
2370
|
"trhighest",
|
|
2439
2371
|
"trigExpseg",
|
|
2440
2372
|
"trigLinseg",
|
|
2373
|
+
"trigexpseg",
|
|
2441
2374
|
"trigger",
|
|
2442
2375
|
"trighold",
|
|
2376
|
+
"triglinseg",
|
|
2443
2377
|
"trigphasor",
|
|
2444
2378
|
"trigseq",
|
|
2445
2379
|
"trim",
|
|
@@ -2570,10 +2504,6 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2570
2504
|
"xadsr",
|
|
2571
2505
|
"xin",
|
|
2572
2506
|
"xout",
|
|
2573
|
-
"xscanmap",
|
|
2574
|
-
"xscans",
|
|
2575
|
-
"xscansmap",
|
|
2576
|
-
"xscanu",
|
|
2577
2507
|
"xtratim",
|
|
2578
2508
|
"xyscale",
|
|
2579
2509
|
"zacl",
|
|
@@ -2699,204 +2629,176 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2699
2629
|
"vbap4move",
|
|
2700
2630
|
"vbap8",
|
|
2701
2631
|
"vbap8move",
|
|
2632
|
+
"xscanmap",
|
|
2633
|
+
"xscans",
|
|
2634
|
+
"xscansmap",
|
|
2635
|
+
"xscanu",
|
|
2702
2636
|
"xyin"
|
|
2703
2637
|
];
|
|
2704
|
-
|
|
2705
2638
|
opcodes = lang.arrayToMap(opcodes);
|
|
2706
2639
|
deprecatedOpcodes = lang.arrayToMap(deprecatedOpcodes);
|
|
2707
|
-
|
|
2708
2640
|
this.lineContinuations = [
|
|
2709
2641
|
{
|
|
2710
|
-
token
|
|
2711
|
-
regex
|
|
2642
|
+
token: "constant.character.escape.line-continuation.csound",
|
|
2643
|
+
regex: /\\$/
|
|
2712
2644
|
}, this.pushRule({
|
|
2713
|
-
token
|
|
2714
|
-
regex
|
|
2715
|
-
next
|
|
2645
|
+
token: "constant.character.escape.line-continuation.csound",
|
|
2646
|
+
regex: /\\/,
|
|
2647
|
+
next: "line continuation"
|
|
2716
2648
|
})
|
|
2717
2649
|
];
|
|
2718
|
-
|
|
2719
2650
|
this.comments.push(this.lineContinuations);
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
token : "invalid.illegal",
|
|
2725
|
-
regex : /[^"\\]*$/
|
|
2726
|
-
}
|
|
2727
|
-
);
|
|
2728
|
-
|
|
2651
|
+
this.quotedStringContents.push(this.lineContinuations, {
|
|
2652
|
+
token: "invalid.illegal",
|
|
2653
|
+
regex: /[^"\\]*$/
|
|
2654
|
+
});
|
|
2729
2655
|
var start = this.$rules.start;
|
|
2730
2656
|
start.splice(1, 0, {
|
|
2731
|
-
token
|
|
2732
|
-
regex
|
|
2657
|
+
token: ["text.csound", "entity.name.label.csound", "entity.punctuation.label.csound", "text.csound"],
|
|
2658
|
+
regex: /^([ \t]*)(\w+)(:)([ \t]+|$)/
|
|
2733
2659
|
});
|
|
2734
|
-
start.push(
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
regex : /\bp\d+\b/
|
|
2814
|
-
}, {
|
|
2815
|
-
regex : /\b([A-Z_a-z]\w*)(?:(:)([A-Za-z]))?\b/, onMatch: function(value, currentState, stack, line) {
|
|
2816
|
-
var tokens = value.split(this.splitRegex);
|
|
2817
|
-
var name = tokens[1];
|
|
2818
|
-
var type;
|
|
2819
|
-
if (opcodes.hasOwnProperty(name))
|
|
2820
|
-
type = "support.function.csound";
|
|
2821
|
-
else if (deprecatedOpcodes.hasOwnProperty(name))
|
|
2822
|
-
type = "invalid.deprecated.csound";
|
|
2823
|
-
if (type) {
|
|
2824
|
-
if (tokens[2]) {
|
|
2825
|
-
return [
|
|
2826
|
-
{type: type, value: name},
|
|
2827
|
-
{type: "punctuation.type-annotation.csound", value: tokens[2]},
|
|
2828
|
-
{type: "type-annotation.storage.type.csound", value: tokens[3]}
|
|
2829
|
-
];
|
|
2830
|
-
}
|
|
2831
|
-
return type;
|
|
2660
|
+
start.push(this.pushRule({
|
|
2661
|
+
token: "keyword.function.csound",
|
|
2662
|
+
regex: /\binstr\b/,
|
|
2663
|
+
next: "instrument numbers and identifiers"
|
|
2664
|
+
}), this.pushRule({
|
|
2665
|
+
token: "keyword.function.csound",
|
|
2666
|
+
regex: /\bopcode\b/,
|
|
2667
|
+
next: "after opcode keyword"
|
|
2668
|
+
}), {
|
|
2669
|
+
token: "keyword.other.csound",
|
|
2670
|
+
regex: /\bend(?:in|op)\b/
|
|
2671
|
+
}, {
|
|
2672
|
+
token: "variable.language.csound",
|
|
2673
|
+
regex: /\b(?:0dbfs|A4|k(?:r|smps)|nchnls(?:_i)?|sr)\b/
|
|
2674
|
+
}, this.numbers, {
|
|
2675
|
+
token: "keyword.operator.csound",
|
|
2676
|
+
regex: "\\+=|-=|\\*=|/=|<<|>>|<=|>=|==|!=|&&|\\|\\||[~¬]|[=!+\\-*/^%&|<>#?:]"
|
|
2677
|
+
}, this.pushRule({
|
|
2678
|
+
token: "punctuation.definition.string.begin.csound",
|
|
2679
|
+
regex: /"/,
|
|
2680
|
+
next: "quoted string"
|
|
2681
|
+
}), this.pushRule({
|
|
2682
|
+
token: "punctuation.definition.string.begin.csound",
|
|
2683
|
+
regex: /{{/,
|
|
2684
|
+
next: "braced string"
|
|
2685
|
+
}), {
|
|
2686
|
+
token: "keyword.control.csound",
|
|
2687
|
+
regex: /\b(?:do|else(?:if)?|end(?:if|until)|fi|i(?:f|then)|kthen|od|r(?:ir)?eturn|then|until|while)\b/
|
|
2688
|
+
}, this.pushRule({
|
|
2689
|
+
token: "keyword.control.csound",
|
|
2690
|
+
regex: /\b[ik]?goto\b/,
|
|
2691
|
+
next: "goto before label"
|
|
2692
|
+
}), this.pushRule({
|
|
2693
|
+
token: "keyword.control.csound",
|
|
2694
|
+
regex: /\b(?:r(?:einit|igoto)|tigoto)\b/,
|
|
2695
|
+
next: "goto before label"
|
|
2696
|
+
}), this.pushRule({
|
|
2697
|
+
token: "keyword.control.csound",
|
|
2698
|
+
regex: /\bc(?:g|in?|k|nk?)goto\b/,
|
|
2699
|
+
next: ["goto before label", "goto before argument"]
|
|
2700
|
+
}), this.pushRule({
|
|
2701
|
+
token: "keyword.control.csound",
|
|
2702
|
+
regex: /\btimout\b/,
|
|
2703
|
+
next: ["goto before label", "goto before argument", "goto before argument"]
|
|
2704
|
+
}), this.pushRule({
|
|
2705
|
+
token: "keyword.control.csound",
|
|
2706
|
+
regex: /\bloop_[gl][et]\b/,
|
|
2707
|
+
next: ["goto before label", "goto before argument", "goto before argument", "goto before argument"]
|
|
2708
|
+
}), this.pushRule({
|
|
2709
|
+
token: "support.function.csound",
|
|
2710
|
+
regex: /\b(?:readscore|scoreline(?:_i)?)\b/,
|
|
2711
|
+
next: "Csound score opcode"
|
|
2712
|
+
}), this.pushRule({
|
|
2713
|
+
token: "support.function.csound",
|
|
2714
|
+
regex: /\bpyl?run[it]?\b(?!$)/,
|
|
2715
|
+
next: "Python opcode"
|
|
2716
|
+
}), this.pushRule({
|
|
2717
|
+
token: "support.function.csound",
|
|
2718
|
+
regex: /\blua_(?:exec|opdef)\b(?!$)/,
|
|
2719
|
+
next: "Lua opcode"
|
|
2720
|
+
}), {
|
|
2721
|
+
token: "support.variable.csound",
|
|
2722
|
+
regex: /\bp\d+\b/
|
|
2723
|
+
}, {
|
|
2724
|
+
regex: /\b([A-Z_a-z]\w*)(?:(:)([A-Za-z]))?\b/, onMatch: function (value, currentState, stack, line) {
|
|
2725
|
+
var tokens = value.split(this.splitRegex);
|
|
2726
|
+
var name = tokens[1];
|
|
2727
|
+
var type;
|
|
2728
|
+
if (opcodes.hasOwnProperty(name))
|
|
2729
|
+
type = "support.function.csound";
|
|
2730
|
+
else if (deprecatedOpcodes.hasOwnProperty(name))
|
|
2731
|
+
type = "invalid.deprecated.csound";
|
|
2732
|
+
if (type) {
|
|
2733
|
+
if (tokens[2]) {
|
|
2734
|
+
return [
|
|
2735
|
+
{ type: type, value: name },
|
|
2736
|
+
{ type: "punctuation.type-annotation.csound", value: tokens[2] },
|
|
2737
|
+
{ type: "type-annotation.storage.type.csound", value: tokens[3] }
|
|
2738
|
+
];
|
|
2832
2739
|
}
|
|
2833
|
-
return
|
|
2740
|
+
return type;
|
|
2834
2741
|
}
|
|
2742
|
+
return "text.csound";
|
|
2835
2743
|
}
|
|
2836
|
-
);
|
|
2837
|
-
|
|
2744
|
+
});
|
|
2838
2745
|
this.$rules["macro parameter value list"].splice(2, 0, {
|
|
2839
|
-
token
|
|
2840
|
-
regex
|
|
2841
|
-
next
|
|
2746
|
+
token: "punctuation.definition.string.begin.csound",
|
|
2747
|
+
regex: /{{/,
|
|
2748
|
+
next: "macro parameter value braced string"
|
|
2842
2749
|
});
|
|
2843
|
-
|
|
2844
2750
|
var scoreHighlightRules = new CsoundScoreHighlightRules("csound-score-");
|
|
2845
|
-
|
|
2846
2751
|
this.addRules({
|
|
2847
2752
|
"macro parameter value braced string": [
|
|
2848
2753
|
{
|
|
2849
|
-
token
|
|
2850
|
-
regex
|
|
2754
|
+
token: "constant.character.escape.csound",
|
|
2755
|
+
regex: /\\[#'()]/
|
|
2851
2756
|
}, {
|
|
2852
|
-
token
|
|
2853
|
-
regex
|
|
2757
|
+
token: "invalid.illegal.csound.csound",
|
|
2758
|
+
regex: /[#'()]/
|
|
2854
2759
|
}, {
|
|
2855
|
-
token
|
|
2856
|
-
regex
|
|
2857
|
-
next
|
|
2760
|
+
token: "punctuation.definition.string.end.csound",
|
|
2761
|
+
regex: /}}/,
|
|
2762
|
+
next: "macro parameter value list"
|
|
2858
2763
|
}, {
|
|
2859
2764
|
defaultToken: "string.braced.csound"
|
|
2860
2765
|
}
|
|
2861
2766
|
],
|
|
2862
|
-
|
|
2863
2767
|
"instrument numbers and identifiers": [
|
|
2864
2768
|
this.comments,
|
|
2865
2769
|
{
|
|
2866
|
-
token
|
|
2867
|
-
regex
|
|
2770
|
+
token: "entity.name.function.csound",
|
|
2771
|
+
regex: /\d+|[A-Z_a-z]\w*/
|
|
2868
2772
|
}, this.popRule({
|
|
2869
|
-
token
|
|
2870
|
-
regex
|
|
2773
|
+
token: "empty",
|
|
2774
|
+
regex: /$/
|
|
2871
2775
|
})
|
|
2872
2776
|
],
|
|
2873
|
-
|
|
2874
2777
|
"after opcode keyword": [
|
|
2875
2778
|
this.comments,
|
|
2876
2779
|
this.popRule({
|
|
2877
|
-
token
|
|
2878
|
-
regex
|
|
2780
|
+
token: "empty",
|
|
2781
|
+
regex: /$/
|
|
2879
2782
|
}), this.popRule({
|
|
2880
|
-
token
|
|
2881
|
-
regex
|
|
2882
|
-
next
|
|
2783
|
+
token: "entity.name.function.opcode.csound",
|
|
2784
|
+
regex: /[A-Z_a-z]\w*/,
|
|
2785
|
+
next: "opcode type signatures"
|
|
2883
2786
|
})
|
|
2884
2787
|
],
|
|
2885
2788
|
"opcode type signatures": [
|
|
2886
2789
|
this.comments,
|
|
2887
2790
|
this.popRule({
|
|
2888
|
-
token
|
|
2889
|
-
regex
|
|
2791
|
+
token: "empty",
|
|
2792
|
+
regex: /$/
|
|
2890
2793
|
}), {
|
|
2891
|
-
token
|
|
2892
|
-
regex
|
|
2794
|
+
token: "storage.type.csound",
|
|
2795
|
+
regex: /\b(?:0|[afijkKoOpPStV\[\]]+)/
|
|
2893
2796
|
}
|
|
2894
2797
|
],
|
|
2895
|
-
|
|
2896
2798
|
"quoted string": [
|
|
2897
2799
|
this.popRule({
|
|
2898
|
-
token
|
|
2899
|
-
regex
|
|
2800
|
+
token: "punctuation.definition.string.end.csound",
|
|
2801
|
+
regex: /"/
|
|
2900
2802
|
}),
|
|
2901
2803
|
this.quotedStringContents,
|
|
2902
2804
|
{
|
|
@@ -2905,122 +2807,109 @@ var CsoundOrchestraHighlightRules = function(embeddedRulePrefix) {
|
|
|
2905
2807
|
],
|
|
2906
2808
|
"braced string": [
|
|
2907
2809
|
this.popRule({
|
|
2908
|
-
token
|
|
2909
|
-
regex
|
|
2810
|
+
token: "punctuation.definition.string.end.csound",
|
|
2811
|
+
regex: /}}/
|
|
2910
2812
|
}),
|
|
2911
2813
|
this.bracedStringContents,
|
|
2912
2814
|
{
|
|
2913
2815
|
defaultToken: "string.braced.csound"
|
|
2914
2816
|
}
|
|
2915
2817
|
],
|
|
2916
|
-
|
|
2917
2818
|
"goto before argument": [
|
|
2918
2819
|
this.popRule({
|
|
2919
|
-
token
|
|
2920
|
-
regex
|
|
2820
|
+
token: "text.csound",
|
|
2821
|
+
regex: /,/
|
|
2921
2822
|
}),
|
|
2922
2823
|
start
|
|
2923
2824
|
],
|
|
2924
2825
|
"goto before label": [
|
|
2925
2826
|
{
|
|
2926
|
-
token
|
|
2927
|
-
regex
|
|
2827
|
+
token: "text.csound",
|
|
2828
|
+
regex: /\s+/
|
|
2928
2829
|
},
|
|
2929
2830
|
this.comments,
|
|
2930
2831
|
this.popRule({
|
|
2931
|
-
token
|
|
2932
|
-
regex
|
|
2832
|
+
token: "entity.name.label.csound",
|
|
2833
|
+
regex: /\w+/
|
|
2933
2834
|
}), this.popRule({
|
|
2934
|
-
token
|
|
2935
|
-
regex
|
|
2835
|
+
token: "empty",
|
|
2836
|
+
regex: /(?!\w)/
|
|
2936
2837
|
})
|
|
2937
2838
|
],
|
|
2938
|
-
|
|
2939
2839
|
"Csound score opcode": [
|
|
2940
2840
|
this.comments,
|
|
2941
2841
|
{
|
|
2942
|
-
token
|
|
2943
|
-
regex
|
|
2944
|
-
next
|
|
2842
|
+
token: "punctuation.definition.string.begin.csound",
|
|
2843
|
+
regex: /{{/,
|
|
2844
|
+
next: scoreHighlightRules.embeddedRulePrefix + "start"
|
|
2945
2845
|
}, this.popRule({
|
|
2946
|
-
token
|
|
2947
|
-
regex
|
|
2846
|
+
token: "empty",
|
|
2847
|
+
regex: /$/
|
|
2948
2848
|
})
|
|
2949
2849
|
],
|
|
2950
|
-
|
|
2951
2850
|
"Python opcode": [
|
|
2952
2851
|
this.comments,
|
|
2953
2852
|
{
|
|
2954
|
-
token
|
|
2955
|
-
regex
|
|
2956
|
-
next
|
|
2853
|
+
token: "punctuation.definition.string.begin.csound",
|
|
2854
|
+
regex: /{{/,
|
|
2855
|
+
next: "python-start"
|
|
2957
2856
|
}, this.popRule({
|
|
2958
|
-
token
|
|
2959
|
-
regex
|
|
2857
|
+
token: "empty",
|
|
2858
|
+
regex: /$/
|
|
2960
2859
|
})
|
|
2961
2860
|
],
|
|
2962
|
-
|
|
2963
2861
|
"Lua opcode": [
|
|
2964
2862
|
this.comments,
|
|
2965
2863
|
{
|
|
2966
|
-
token
|
|
2967
|
-
regex
|
|
2968
|
-
next
|
|
2864
|
+
token: "punctuation.definition.string.begin.csound",
|
|
2865
|
+
regex: /{{/,
|
|
2866
|
+
next: "lua-start"
|
|
2969
2867
|
}, this.popRule({
|
|
2970
|
-
token
|
|
2971
|
-
regex
|
|
2868
|
+
token: "empty",
|
|
2869
|
+
regex: /$/
|
|
2972
2870
|
})
|
|
2973
2871
|
],
|
|
2974
|
-
|
|
2975
2872
|
"line continuation": [
|
|
2976
2873
|
this.popRule({
|
|
2977
|
-
token
|
|
2978
|
-
regex
|
|
2874
|
+
token: "empty",
|
|
2875
|
+
regex: /$/
|
|
2979
2876
|
}),
|
|
2980
2877
|
this.semicolonComments,
|
|
2981
2878
|
{
|
|
2982
|
-
token
|
|
2983
|
-
regex
|
|
2879
|
+
token: "invalid.illegal.csound",
|
|
2880
|
+
regex: /\S.*/
|
|
2984
2881
|
}
|
|
2985
2882
|
]
|
|
2986
2883
|
});
|
|
2987
|
-
|
|
2988
2884
|
var rules = [
|
|
2989
2885
|
this.popRule({
|
|
2990
|
-
token
|
|
2991
|
-
regex
|
|
2886
|
+
token: "punctuation.definition.string.end.csound",
|
|
2887
|
+
regex: /}}/
|
|
2992
2888
|
})
|
|
2993
2889
|
];
|
|
2994
2890
|
this.embedRules(scoreHighlightRules.getRules(), scoreHighlightRules.embeddedRulePrefix, rules);
|
|
2995
2891
|
this.embedRules(PythonHighlightRules, "python-", rules);
|
|
2996
2892
|
this.embedRules(LuaHighlightRules, "lua-", rules);
|
|
2997
|
-
|
|
2998
2893
|
this.normalizeRules();
|
|
2999
2894
|
};
|
|
3000
|
-
|
|
3001
2895
|
oop.inherits(CsoundOrchestraHighlightRules, CsoundPreprocessorHighlightRules);
|
|
3002
|
-
|
|
3003
2896
|
exports.CsoundOrchestraHighlightRules = CsoundOrchestraHighlightRules;
|
|
3004
|
-
});
|
|
3005
2897
|
|
|
3006
|
-
|
|
3007
|
-
"use strict";
|
|
2898
|
+
});
|
|
3008
2899
|
|
|
2900
|
+
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
3009
2901
|
var oop = require("../lib/oop");
|
|
3010
2902
|
var lang = require("../lib/lang");
|
|
3011
2903
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
3012
2904
|
var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
|
|
3013
2905
|
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
|
3014
|
-
var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
|
|
2906
|
+
var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
|
|
3015
2907
|
var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
|
|
3016
2908
|
var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
|
3017
|
-
|
|
3018
2909
|
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
|
|
3019
2910
|
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
|
3020
|
-
var pseudoClasses
|
|
3021
|
-
|
|
3022
|
-
var CssHighlightRules = function() {
|
|
3023
|
-
|
|
2911
|
+
var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
|
|
2912
|
+
var CssHighlightRules = function () {
|
|
3024
2913
|
var keywordMapper = this.createKeywordMapper({
|
|
3025
2914
|
"support.function": supportFunction,
|
|
3026
2915
|
"support.constant": supportConstant,
|
|
@@ -3028,263 +2917,317 @@ var CssHighlightRules = function() {
|
|
|
3028
2917
|
"support.constant.color": supportConstantColor,
|
|
3029
2918
|
"support.constant.fonts": supportConstantFonts
|
|
3030
2919
|
}, "text", true);
|
|
3031
|
-
|
|
3032
2920
|
this.$rules = {
|
|
3033
|
-
"start"
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
2921
|
+
"start": [{
|
|
2922
|
+
include: ["strings", "url", "comments"]
|
|
2923
|
+
}, {
|
|
2924
|
+
token: "paren.lparen",
|
|
2925
|
+
regex: "\\{",
|
|
2926
|
+
next: "ruleset"
|
|
2927
|
+
}, {
|
|
2928
|
+
token: "paren.rparen",
|
|
2929
|
+
regex: "\\}"
|
|
2930
|
+
}, {
|
|
2931
|
+
token: "string",
|
|
2932
|
+
regex: "@(?!viewport)",
|
|
2933
|
+
next: "media"
|
|
2934
|
+
}, {
|
|
2935
|
+
token: "keyword",
|
|
2936
|
+
regex: "#[a-z0-9-_]+"
|
|
2937
|
+
}, {
|
|
2938
|
+
token: "keyword",
|
|
2939
|
+
regex: "%"
|
|
2940
|
+
}, {
|
|
2941
|
+
token: "variable",
|
|
2942
|
+
regex: "\\.[a-z0-9-_]+"
|
|
2943
|
+
}, {
|
|
2944
|
+
token: "string",
|
|
2945
|
+
regex: ":[a-z0-9-_]+"
|
|
2946
|
+
}, {
|
|
2947
|
+
token: "constant.numeric",
|
|
2948
|
+
regex: numRe
|
|
2949
|
+
}, {
|
|
2950
|
+
token: "constant",
|
|
2951
|
+
regex: "[a-z0-9-_]+"
|
|
2952
|
+
}, {
|
|
2953
|
+
caseInsensitive: true
|
|
2954
|
+
}],
|
|
3068
2955
|
"media": [{
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
2956
|
+
include: ["strings", "url", "comments"]
|
|
2957
|
+
}, {
|
|
2958
|
+
token: "paren.lparen",
|
|
2959
|
+
regex: "\\{",
|
|
2960
|
+
next: "start"
|
|
2961
|
+
}, {
|
|
2962
|
+
token: "paren.rparen",
|
|
2963
|
+
regex: "\\}",
|
|
2964
|
+
next: "start"
|
|
2965
|
+
}, {
|
|
2966
|
+
token: "string",
|
|
2967
|
+
regex: ";",
|
|
2968
|
+
next: "start"
|
|
2969
|
+
}, {
|
|
2970
|
+
token: "keyword",
|
|
2971
|
+
regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
|
|
2972
|
+
+ "|page|font|keyframes|viewport|counter-style|font-feature-values"
|
|
2973
|
+
+ "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
|
|
2974
|
+
}],
|
|
2975
|
+
"comments": [{
|
|
2976
|
+
token: "comment",
|
|
2977
|
+
regex: "\\/\\*",
|
|
2978
|
+
push: [{
|
|
2979
|
+
token: "comment",
|
|
2980
|
+
regex: "\\*\\/",
|
|
2981
|
+
next: "pop"
|
|
2982
|
+
}, {
|
|
2983
|
+
defaultToken: "comment"
|
|
2984
|
+
}]
|
|
2985
|
+
}],
|
|
2986
|
+
"ruleset": [{
|
|
2987
|
+
regex: "-(webkit|ms|moz|o)-",
|
|
2988
|
+
token: "text"
|
|
2989
|
+
}, {
|
|
2990
|
+
token: "punctuation.operator",
|
|
2991
|
+
regex: "[:;]"
|
|
2992
|
+
}, {
|
|
2993
|
+
token: "paren.rparen",
|
|
2994
|
+
regex: "\\}",
|
|
2995
|
+
next: "start"
|
|
3096
2996
|
}, {
|
|
3097
|
-
|
|
3098
|
-
}]
|
|
3099
|
-
}],
|
|
3100
|
-
|
|
3101
|
-
"ruleset" : [{
|
|
3102
|
-
regex : "-(webkit|ms|moz|o)-",
|
|
3103
|
-
token : "text"
|
|
3104
|
-
}, {
|
|
3105
|
-
token : "punctuation.operator",
|
|
3106
|
-
regex : "[:;]"
|
|
3107
|
-
}, {
|
|
3108
|
-
token : "paren.rparen",
|
|
3109
|
-
regex : "\\}",
|
|
3110
|
-
next : "start"
|
|
3111
|
-
}, {
|
|
3112
|
-
include : ["strings", "url", "comments"]
|
|
3113
|
-
}, {
|
|
3114
|
-
token : ["constant.numeric", "keyword"],
|
|
3115
|
-
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
|
|
3116
|
-
}, {
|
|
3117
|
-
token : "constant.numeric",
|
|
3118
|
-
regex : numRe
|
|
3119
|
-
}, {
|
|
3120
|
-
token : "constant.numeric", // hex6 color
|
|
3121
|
-
regex : "#[a-f0-9]{6}"
|
|
3122
|
-
}, {
|
|
3123
|
-
token : "constant.numeric", // hex3 color
|
|
3124
|
-
regex : "#[a-f0-9]{3}"
|
|
3125
|
-
}, {
|
|
3126
|
-
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
|
3127
|
-
regex : pseudoElements
|
|
3128
|
-
}, {
|
|
3129
|
-
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
|
3130
|
-
regex : pseudoClasses
|
|
3131
|
-
}, {
|
|
3132
|
-
include: "url"
|
|
3133
|
-
}, {
|
|
3134
|
-
token : keywordMapper,
|
|
3135
|
-
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
|
3136
|
-
}, {
|
|
3137
|
-
caseInsensitive: true
|
|
3138
|
-
}],
|
|
3139
|
-
|
|
3140
|
-
url: [{
|
|
3141
|
-
token : "support.function",
|
|
3142
|
-
regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
|
|
3143
|
-
push: [{
|
|
3144
|
-
token : "support.function",
|
|
3145
|
-
regex : "\\)",
|
|
3146
|
-
next : "pop"
|
|
2997
|
+
include: ["strings", "url", "comments"]
|
|
3147
2998
|
}, {
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
}],
|
|
3151
|
-
|
|
3152
|
-
strings: [{
|
|
3153
|
-
token : "string.start",
|
|
3154
|
-
regex : "'",
|
|
3155
|
-
push : [{
|
|
3156
|
-
token : "string.end",
|
|
3157
|
-
regex : "'|$",
|
|
3158
|
-
next: "pop"
|
|
2999
|
+
token: ["constant.numeric", "keyword"],
|
|
3000
|
+
regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
|
|
3159
3001
|
}, {
|
|
3160
|
-
|
|
3002
|
+
token: "constant.numeric",
|
|
3003
|
+
regex: numRe
|
|
3161
3004
|
}, {
|
|
3162
|
-
token
|
|
3163
|
-
regex
|
|
3164
|
-
consumeLineEnd: true
|
|
3005
|
+
token: "constant.numeric",
|
|
3006
|
+
regex: "#[a-f0-9]{6}"
|
|
3165
3007
|
}, {
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
}, {
|
|
3169
|
-
token : "string.start",
|
|
3170
|
-
regex : '"',
|
|
3171
|
-
push : [{
|
|
3172
|
-
token : "string.end",
|
|
3173
|
-
regex : '"|$',
|
|
3174
|
-
next: "pop"
|
|
3008
|
+
token: "constant.numeric",
|
|
3009
|
+
regex: "#[a-f0-9]{3}"
|
|
3175
3010
|
}, {
|
|
3176
|
-
|
|
3011
|
+
token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
|
3012
|
+
regex: pseudoElements
|
|
3177
3013
|
}, {
|
|
3178
|
-
token
|
|
3179
|
-
regex
|
|
3180
|
-
consumeLineEnd: true
|
|
3014
|
+
token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
|
3015
|
+
regex: pseudoClasses
|
|
3181
3016
|
}, {
|
|
3182
|
-
|
|
3183
|
-
}
|
|
3184
|
-
|
|
3017
|
+
include: "url"
|
|
3018
|
+
}, {
|
|
3019
|
+
token: keywordMapper,
|
|
3020
|
+
regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
|
3021
|
+
}, {
|
|
3022
|
+
caseInsensitive: true
|
|
3023
|
+
}],
|
|
3024
|
+
url: [{
|
|
3025
|
+
token: "support.function",
|
|
3026
|
+
regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
|
|
3027
|
+
push: [{
|
|
3028
|
+
token: "support.function",
|
|
3029
|
+
regex: "\\)",
|
|
3030
|
+
next: "pop"
|
|
3031
|
+
}, {
|
|
3032
|
+
defaultToken: "string"
|
|
3033
|
+
}]
|
|
3034
|
+
}],
|
|
3035
|
+
strings: [{
|
|
3036
|
+
token: "string.start",
|
|
3037
|
+
regex: "'",
|
|
3038
|
+
push: [{
|
|
3039
|
+
token: "string.end",
|
|
3040
|
+
regex: "'|$",
|
|
3041
|
+
next: "pop"
|
|
3042
|
+
}, {
|
|
3043
|
+
include: "escapes"
|
|
3044
|
+
}, {
|
|
3045
|
+
token: "constant.language.escape",
|
|
3046
|
+
regex: /\\$/,
|
|
3047
|
+
consumeLineEnd: true
|
|
3048
|
+
}, {
|
|
3049
|
+
defaultToken: "string"
|
|
3050
|
+
}]
|
|
3051
|
+
}, {
|
|
3052
|
+
token: "string.start",
|
|
3053
|
+
regex: '"',
|
|
3054
|
+
push: [{
|
|
3055
|
+
token: "string.end",
|
|
3056
|
+
regex: '"|$',
|
|
3057
|
+
next: "pop"
|
|
3058
|
+
}, {
|
|
3059
|
+
include: "escapes"
|
|
3060
|
+
}, {
|
|
3061
|
+
token: "constant.language.escape",
|
|
3062
|
+
regex: /\\$/,
|
|
3063
|
+
consumeLineEnd: true
|
|
3064
|
+
}, {
|
|
3065
|
+
defaultToken: "string"
|
|
3066
|
+
}]
|
|
3067
|
+
}],
|
|
3185
3068
|
escapes: [{
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3069
|
+
token: "constant.language.escape",
|
|
3070
|
+
regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
|
|
3071
|
+
}]
|
|
3190
3072
|
};
|
|
3191
|
-
|
|
3192
3073
|
this.normalizeRules();
|
|
3193
3074
|
};
|
|
3194
|
-
|
|
3195
3075
|
oop.inherits(CssHighlightRules, TextHighlightRules);
|
|
3196
|
-
|
|
3197
3076
|
exports.CssHighlightRules = CssHighlightRules;
|
|
3198
3077
|
|
|
3199
3078
|
});
|
|
3200
3079
|
|
|
3201
|
-
ace.define("ace/mode/
|
|
3202
|
-
"use strict";
|
|
3203
|
-
|
|
3080
|
+
ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
3204
3081
|
var oop = require("../lib/oop");
|
|
3205
3082
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
3206
|
-
|
|
3207
|
-
var DocCommentHighlightRules = function() {
|
|
3083
|
+
var JsDocCommentHighlightRules = function () {
|
|
3208
3084
|
this.$rules = {
|
|
3209
|
-
"start"
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3085
|
+
"start": [
|
|
3086
|
+
{
|
|
3087
|
+
token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
|
|
3088
|
+
regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
|
|
3089
|
+
push: [
|
|
3090
|
+
{
|
|
3091
|
+
token: "lparen.doc",
|
|
3092
|
+
regex: "{",
|
|
3093
|
+
push: [
|
|
3094
|
+
{
|
|
3095
|
+
include: "doc-syntax"
|
|
3096
|
+
}, {
|
|
3097
|
+
token: "rparen.doc",
|
|
3098
|
+
regex: "}|(?=$)",
|
|
3099
|
+
next: "pop"
|
|
3100
|
+
}
|
|
3101
|
+
]
|
|
3102
|
+
}, {
|
|
3103
|
+
token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
|
|
3104
|
+
regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,
|
|
3105
|
+
next: "pop"
|
|
3106
|
+
}, {
|
|
3107
|
+
token: "rparen.doc",
|
|
3108
|
+
regex: "}|(?=$)",
|
|
3109
|
+
next: "pop"
|
|
3110
|
+
}, {
|
|
3111
|
+
include: "doc-syntax"
|
|
3112
|
+
}, {
|
|
3113
|
+
defaultToken: "text.doc"
|
|
3114
|
+
}
|
|
3115
|
+
]
|
|
3116
|
+
}, {
|
|
3117
|
+
token: ["comment.doc.tag", "text.doc", "lparen.doc"],
|
|
3118
|
+
regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
|
|
3119
|
+
+ "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
|
|
3120
|
+
push: [
|
|
3121
|
+
{
|
|
3122
|
+
token: "lparen.doc",
|
|
3123
|
+
regex: "{",
|
|
3124
|
+
push: [
|
|
3125
|
+
{
|
|
3126
|
+
include: "doc-syntax"
|
|
3127
|
+
}, {
|
|
3128
|
+
token: "rparen.doc",
|
|
3129
|
+
regex: "}|(?=$)",
|
|
3130
|
+
next: "pop"
|
|
3131
|
+
}
|
|
3132
|
+
]
|
|
3133
|
+
}, {
|
|
3134
|
+
token: "rparen.doc",
|
|
3135
|
+
regex: "}|(?=$)",
|
|
3136
|
+
next: "pop"
|
|
3137
|
+
}, {
|
|
3138
|
+
include: "doc-syntax"
|
|
3139
|
+
}, {
|
|
3140
|
+
defaultToken: "text.doc"
|
|
3141
|
+
}
|
|
3142
|
+
]
|
|
3143
|
+
}, {
|
|
3144
|
+
token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
|
|
3145
|
+
regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
|
|
3146
|
+
+ "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
|
|
3147
|
+
+ "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
|
|
3148
|
+
+ "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
|
|
3149
|
+
}, {
|
|
3150
|
+
token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
|
|
3151
|
+
regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
|
|
3152
|
+
}, {
|
|
3153
|
+
token: "comment.doc.tag",
|
|
3154
|
+
regex: "@access\\s+(?:private|public|protected)"
|
|
3155
|
+
}, {
|
|
3156
|
+
token: "comment.doc.tag",
|
|
3157
|
+
regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
|
|
3158
|
+
}, {
|
|
3159
|
+
token: "comment.doc.tag",
|
|
3160
|
+
regex: "@\\w+(?=\\s|$)"
|
|
3161
|
+
},
|
|
3162
|
+
JsDocCommentHighlightRules.getTagRule(),
|
|
3163
|
+
{
|
|
3164
|
+
defaultToken: "comment.doc",
|
|
3165
|
+
caseInsensitive: true
|
|
3166
|
+
}
|
|
3167
|
+
],
|
|
3168
|
+
"doc-syntax": [{
|
|
3169
|
+
token: "operator.doc",
|
|
3170
|
+
regex: /[|:]/
|
|
3171
|
+
}, {
|
|
3172
|
+
token: "paren.doc",
|
|
3173
|
+
regex: /[\[\]]/
|
|
3174
|
+
}]
|
|
3218
3175
|
};
|
|
3176
|
+
this.normalizeRules();
|
|
3219
3177
|
};
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
DocCommentHighlightRules.getTagRule = function(start) {
|
|
3178
|
+
oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
|
|
3179
|
+
JsDocCommentHighlightRules.getTagRule = function (start) {
|
|
3224
3180
|
return {
|
|
3225
|
-
token
|
|
3226
|
-
regex
|
|
3181
|
+
token: "comment.doc.tag.storage.type",
|
|
3182
|
+
regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
|
3227
3183
|
};
|
|
3228
3184
|
};
|
|
3229
|
-
|
|
3230
|
-
DocCommentHighlightRules.getStartRule = function(start) {
|
|
3185
|
+
JsDocCommentHighlightRules.getStartRule = function (start) {
|
|
3231
3186
|
return {
|
|
3232
|
-
token
|
|
3233
|
-
regex
|
|
3234
|
-
next
|
|
3187
|
+
token: "comment.doc",
|
|
3188
|
+
regex: "\\/\\*(?=\\*)",
|
|
3189
|
+
next: start
|
|
3235
3190
|
};
|
|
3236
3191
|
};
|
|
3237
|
-
|
|
3238
|
-
DocCommentHighlightRules.getEndRule = function (start) {
|
|
3192
|
+
JsDocCommentHighlightRules.getEndRule = function (start) {
|
|
3239
3193
|
return {
|
|
3240
|
-
token
|
|
3241
|
-
regex
|
|
3242
|
-
next
|
|
3194
|
+
token: "comment.doc",
|
|
3195
|
+
regex: "\\*\\/",
|
|
3196
|
+
next: start
|
|
3243
3197
|
};
|
|
3244
3198
|
};
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
|
3199
|
+
exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
|
|
3248
3200
|
|
|
3249
3201
|
});
|
|
3250
3202
|
|
|
3251
|
-
ace.define("ace/mode/javascript_highlight_rules",[], function(require, exports, module)
|
|
3252
|
-
"use strict";
|
|
3253
|
-
|
|
3203
|
+
ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
3254
3204
|
var oop = require("../lib/oop");
|
|
3255
|
-
var DocCommentHighlightRules = require("./
|
|
3205
|
+
var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
|
|
3256
3206
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
3257
3207
|
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
|
|
3258
|
-
|
|
3259
|
-
var JavaScriptHighlightRules = function(options) {
|
|
3208
|
+
var JavaScriptHighlightRules = function (options) {
|
|
3260
3209
|
var keywordMapper = this.createKeywordMapper({
|
|
3261
|
-
"variable.language":
|
|
3262
|
-
"
|
|
3263
|
-
"
|
|
3264
|
-
"
|
|
3265
|
-
"
|
|
3266
|
-
"
|
|
3267
|
-
"SyntaxError|TypeError|URIError|" +
|
|
3210
|
+
"variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
|
|
3211
|
+
"Namespace|QName|XML|XMLList|" + // E4X
|
|
3212
|
+
"ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
|
|
3213
|
+
"Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
|
|
3214
|
+
"Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
|
|
3215
|
+
"SyntaxError|TypeError|URIError|" +
|
|
3268
3216
|
"decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
|
|
3269
|
-
"isNaN|parseFloat|parseInt|"
|
|
3270
|
-
"JSON|Math|"
|
|
3271
|
-
"this|arguments|prototype|window|document"
|
|
3272
|
-
"keyword":
|
|
3273
|
-
"const|yield|import|get|set|async|await|" +
|
|
3217
|
+
"isNaN|parseFloat|parseInt|" +
|
|
3218
|
+
"JSON|Math|" + // Other
|
|
3219
|
+
"this|arguments|prototype|window|document",
|
|
3220
|
+
"keyword": "const|yield|import|get|set|async|await|" +
|
|
3274
3221
|
"break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
|
3275
3222
|
"if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
|
|
3276
3223
|
"__parent__|__count__|escape|unescape|with|__proto__|" +
|
|
3277
|
-
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
|
3278
|
-
"storage.type":
|
|
3279
|
-
|
|
3280
|
-
"
|
|
3281
|
-
"null|Infinity|NaN|undefined",
|
|
3282
|
-
"support.function":
|
|
3283
|
-
"alert",
|
|
3224
|
+
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
|
|
3225
|
+
"storage.type": "const|let|var|function",
|
|
3226
|
+
"constant.language": "null|Infinity|NaN|undefined",
|
|
3227
|
+
"support.function": "alert",
|
|
3284
3228
|
"constant.language.boolean": "true|false"
|
|
3285
3229
|
}, "identifier");
|
|
3286
3230
|
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
|
|
3287
|
-
|
|
3288
3231
|
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
|
3289
3232
|
"u[0-9a-fA-F]{4}|" + // unicode
|
|
3290
3233
|
"u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
|
|
@@ -3292,143 +3235,142 @@ var JavaScriptHighlightRules = function(options) {
|
|
|
3292
3235
|
"3[0-7][0-7]?|" + // oct
|
|
3293
3236
|
"[4-7][0-7]?|" + //oct
|
|
3294
3237
|
".)";
|
|
3295
|
-
|
|
3296
3238
|
this.$rules = {
|
|
3297
|
-
"no_regex"
|
|
3239
|
+
"no_regex": [
|
|
3298
3240
|
DocCommentHighlightRules.getStartRule("doc-start"),
|
|
3299
3241
|
comments("no_regex"),
|
|
3300
3242
|
{
|
|
3301
|
-
token
|
|
3302
|
-
regex
|
|
3303
|
-
next
|
|
3243
|
+
token: "string",
|
|
3244
|
+
regex: "'(?=.)",
|
|
3245
|
+
next: "qstring"
|
|
3304
3246
|
}, {
|
|
3305
|
-
token
|
|
3306
|
-
regex
|
|
3307
|
-
next
|
|
3247
|
+
token: "string",
|
|
3248
|
+
regex: '"(?=.)',
|
|
3249
|
+
next: "qqstring"
|
|
3308
3250
|
}, {
|
|
3309
|
-
token
|
|
3310
|
-
regex
|
|
3251
|
+
token: "constant.numeric",
|
|
3252
|
+
regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
|
|
3311
3253
|
}, {
|
|
3312
|
-
token
|
|
3313
|
-
regex
|
|
3254
|
+
token: "constant.numeric",
|
|
3255
|
+
regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
|
|
3314
3256
|
}, {
|
|
3315
|
-
token
|
|
3257
|
+
token: [
|
|
3316
3258
|
"storage.type", "punctuation.operator", "support.function",
|
|
3317
|
-
"punctuation.operator", "entity.name.function", "text","keyword.operator"
|
|
3259
|
+
"punctuation.operator", "entity.name.function", "text", "keyword.operator"
|
|
3318
3260
|
],
|
|
3319
|
-
regex
|
|
3261
|
+
regex: "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe + ")(\\s*)(=)",
|
|
3320
3262
|
next: "function_arguments"
|
|
3321
3263
|
}, {
|
|
3322
|
-
token
|
|
3264
|
+
token: [
|
|
3323
3265
|
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
|
3324
3266
|
"keyword.operator", "text", "storage.type", "text", "paren.lparen"
|
|
3325
3267
|
],
|
|
3326
|
-
regex
|
|
3268
|
+
regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",
|
|
3327
3269
|
next: "function_arguments"
|
|
3328
3270
|
}, {
|
|
3329
|
-
token
|
|
3271
|
+
token: [
|
|
3330
3272
|
"entity.name.function", "text", "keyword.operator", "text", "storage.type",
|
|
3331
3273
|
"text", "paren.lparen"
|
|
3332
3274
|
],
|
|
3333
|
-
regex
|
|
3275
|
+
regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",
|
|
3334
3276
|
next: "function_arguments"
|
|
3335
3277
|
}, {
|
|
3336
|
-
token
|
|
3278
|
+
token: [
|
|
3337
3279
|
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
|
3338
3280
|
"keyword.operator", "text",
|
|
3339
3281
|
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
|
3340
3282
|
],
|
|
3341
|
-
regex
|
|
3283
|
+
regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",
|
|
3342
3284
|
next: "function_arguments"
|
|
3343
3285
|
}, {
|
|
3344
|
-
token
|
|
3286
|
+
token: [
|
|
3345
3287
|
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
|
3346
3288
|
],
|
|
3347
|
-
regex
|
|
3289
|
+
regex: "(function\\*?)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
|
|
3348
3290
|
next: "function_arguments"
|
|
3349
3291
|
}, {
|
|
3350
|
-
token
|
|
3292
|
+
token: [
|
|
3351
3293
|
"entity.name.function", "text", "punctuation.operator",
|
|
3352
3294
|
"text", "storage.type", "text", "paren.lparen"
|
|
3353
3295
|
],
|
|
3354
|
-
regex
|
|
3296
|
+
regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",
|
|
3355
3297
|
next: "function_arguments"
|
|
3356
3298
|
}, {
|
|
3357
|
-
token
|
|
3299
|
+
token: [
|
|
3358
3300
|
"text", "text", "storage.type", "text", "paren.lparen"
|
|
3359
3301
|
],
|
|
3360
|
-
regex
|
|
3302
|
+
regex: "(:)(\\s*)(function\\*?)(\\s*)(\\()",
|
|
3361
3303
|
next: "function_arguments"
|
|
3362
3304
|
}, {
|
|
3363
|
-
token
|
|
3364
|
-
regex
|
|
3305
|
+
token: "keyword",
|
|
3306
|
+
regex: "from(?=\\s*('|\"))"
|
|
3365
3307
|
}, {
|
|
3366
|
-
token
|
|
3367
|
-
regex
|
|
3368
|
-
next
|
|
3308
|
+
token: "keyword",
|
|
3309
|
+
regex: "(?:" + kwBeforeRe + ")\\b",
|
|
3310
|
+
next: "start"
|
|
3369
3311
|
}, {
|
|
3370
|
-
token
|
|
3371
|
-
regex
|
|
3312
|
+
token: "support.constant",
|
|
3313
|
+
regex: /that\b/
|
|
3372
3314
|
}, {
|
|
3373
|
-
token
|
|
3374
|
-
regex
|
|
3315
|
+
token: ["storage.type", "punctuation.operator", "support.function.firebug"],
|
|
3316
|
+
regex: /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
|
|
3375
3317
|
}, {
|
|
3376
|
-
token
|
|
3377
|
-
regex
|
|
3318
|
+
token: keywordMapper,
|
|
3319
|
+
regex: identifierRe
|
|
3378
3320
|
}, {
|
|
3379
|
-
token
|
|
3380
|
-
regex
|
|
3381
|
-
next
|
|
3321
|
+
token: "punctuation.operator",
|
|
3322
|
+
regex: /[.](?![.])/,
|
|
3323
|
+
next: "property"
|
|
3382
3324
|
}, {
|
|
3383
|
-
token
|
|
3384
|
-
regex
|
|
3385
|
-
next
|
|
3325
|
+
token: "storage.type",
|
|
3326
|
+
regex: /=>/,
|
|
3327
|
+
next: "start"
|
|
3386
3328
|
}, {
|
|
3387
|
-
token
|
|
3388
|
-
regex
|
|
3389
|
-
next
|
|
3329
|
+
token: "keyword.operator",
|
|
3330
|
+
regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
|
3331
|
+
next: "start"
|
|
3390
3332
|
}, {
|
|
3391
|
-
token
|
|
3392
|
-
regex
|
|
3393
|
-
next
|
|
3333
|
+
token: "punctuation.operator",
|
|
3334
|
+
regex: /[?:,;.]/,
|
|
3335
|
+
next: "start"
|
|
3394
3336
|
}, {
|
|
3395
|
-
token
|
|
3396
|
-
regex
|
|
3397
|
-
next
|
|
3337
|
+
token: "paren.lparen",
|
|
3338
|
+
regex: /[\[({]/,
|
|
3339
|
+
next: "start"
|
|
3398
3340
|
}, {
|
|
3399
|
-
token
|
|
3400
|
-
regex
|
|
3341
|
+
token: "paren.rparen",
|
|
3342
|
+
regex: /[\])}]/
|
|
3401
3343
|
}, {
|
|
3402
3344
|
token: "comment",
|
|
3403
3345
|
regex: /^#!.*$/
|
|
3404
3346
|
}
|
|
3405
3347
|
],
|
|
3406
3348
|
property: [{
|
|
3407
|
-
token
|
|
3408
|
-
regex
|
|
3349
|
+
token: "text",
|
|
3350
|
+
regex: "\\s+"
|
|
3409
3351
|
}, {
|
|
3410
|
-
token
|
|
3352
|
+
token: [
|
|
3411
3353
|
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
|
3412
3354
|
"keyword.operator", "text",
|
|
3413
3355
|
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
|
3414
3356
|
],
|
|
3415
|
-
regex
|
|
3357
|
+
regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",
|
|
3416
3358
|
next: "function_arguments"
|
|
3417
3359
|
}, {
|
|
3418
|
-
token
|
|
3419
|
-
regex
|
|
3360
|
+
token: "punctuation.operator",
|
|
3361
|
+
regex: /[.](?![.])/
|
|
3420
3362
|
}, {
|
|
3421
|
-
token
|
|
3422
|
-
regex
|
|
3363
|
+
token: "support.function",
|
|
3364
|
+
regex: /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
|
|
3423
3365
|
}, {
|
|
3424
|
-
token
|
|
3425
|
-
regex
|
|
3366
|
+
token: "support.function.dom",
|
|
3367
|
+
regex: /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
|
3426
3368
|
}, {
|
|
3427
|
-
token
|
|
3428
|
-
regex
|
|
3369
|
+
token: "support.constant",
|
|
3370
|
+
regex: /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
|
3429
3371
|
}, {
|
|
3430
|
-
token
|
|
3431
|
-
regex
|
|
3372
|
+
token: "identifier",
|
|
3373
|
+
regex: identifierRe
|
|
3432
3374
|
}, {
|
|
3433
3375
|
regex: "",
|
|
3434
3376
|
token: "empty",
|
|
@@ -3443,9 +3385,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
|
3443
3385
|
regex: "\\/",
|
|
3444
3386
|
next: "regex"
|
|
3445
3387
|
}, {
|
|
3446
|
-
token
|
|
3447
|
-
regex
|
|
3448
|
-
next
|
|
3388
|
+
token: "text",
|
|
3389
|
+
regex: "\\s+|^$",
|
|
3390
|
+
next: "start"
|
|
3449
3391
|
}, {
|
|
3450
3392
|
token: "empty",
|
|
3451
3393
|
regex: "",
|
|
@@ -3461,13 +3403,13 @@ var JavaScriptHighlightRules = function(options) {
|
|
|
3461
3403
|
regex: "/[sxngimy]*",
|
|
3462
3404
|
next: "no_regex"
|
|
3463
3405
|
}, {
|
|
3464
|
-
token
|
|
3406
|
+
token: "invalid",
|
|
3465
3407
|
regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
|
|
3466
3408
|
}, {
|
|
3467
|
-
token
|
|
3409
|
+
token: "constant.language.escape",
|
|
3468
3410
|
regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
|
|
3469
3411
|
}, {
|
|
3470
|
-
token
|
|
3412
|
+
token: "constant.language.delimiter",
|
|
3471
3413
|
regex: /\|/
|
|
3472
3414
|
}, {
|
|
3473
3415
|
token: "constant.language.escape",
|
|
@@ -3500,13 +3442,67 @@ var JavaScriptHighlightRules = function(options) {
|
|
|
3500
3442
|
defaultToken: "string.regexp.charachterclass"
|
|
3501
3443
|
}
|
|
3502
3444
|
],
|
|
3445
|
+
"default_parameter": [
|
|
3446
|
+
{
|
|
3447
|
+
token: "string",
|
|
3448
|
+
regex: "'(?=.)",
|
|
3449
|
+
push: [
|
|
3450
|
+
{
|
|
3451
|
+
token: "string",
|
|
3452
|
+
regex: "'|$",
|
|
3453
|
+
next: "pop"
|
|
3454
|
+
}, {
|
|
3455
|
+
include: "qstring"
|
|
3456
|
+
}
|
|
3457
|
+
]
|
|
3458
|
+
}, {
|
|
3459
|
+
token: "string",
|
|
3460
|
+
regex: '"(?=.)',
|
|
3461
|
+
push: [
|
|
3462
|
+
{
|
|
3463
|
+
token: "string",
|
|
3464
|
+
regex: '"|$',
|
|
3465
|
+
next: "pop"
|
|
3466
|
+
}, {
|
|
3467
|
+
include: "qqstring"
|
|
3468
|
+
}
|
|
3469
|
+
]
|
|
3470
|
+
}, {
|
|
3471
|
+
token: "constant.language",
|
|
3472
|
+
regex: "null|Infinity|NaN|undefined"
|
|
3473
|
+
}, {
|
|
3474
|
+
token: "constant.numeric",
|
|
3475
|
+
regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
|
|
3476
|
+
}, {
|
|
3477
|
+
token: "constant.numeric",
|
|
3478
|
+
regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
|
|
3479
|
+
}, {
|
|
3480
|
+
token: "punctuation.operator",
|
|
3481
|
+
regex: ",",
|
|
3482
|
+
next: "function_arguments"
|
|
3483
|
+
}, {
|
|
3484
|
+
token: "text",
|
|
3485
|
+
regex: "\\s+"
|
|
3486
|
+
}, {
|
|
3487
|
+
token: "punctuation.operator",
|
|
3488
|
+
regex: "$"
|
|
3489
|
+
}, {
|
|
3490
|
+
token: "empty",
|
|
3491
|
+
regex: "",
|
|
3492
|
+
next: "no_regex"
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3503
3495
|
"function_arguments": [
|
|
3496
|
+
comments("function_arguments"),
|
|
3504
3497
|
{
|
|
3505
3498
|
token: "variable.parameter",
|
|
3506
3499
|
regex: identifierRe
|
|
3507
3500
|
}, {
|
|
3508
3501
|
token: "punctuation.operator",
|
|
3509
|
-
regex: "
|
|
3502
|
+
regex: ","
|
|
3503
|
+
}, {
|
|
3504
|
+
token: "text",
|
|
3505
|
+
regex: "\\s+"
|
|
3510
3506
|
}, {
|
|
3511
3507
|
token: "punctuation.operator",
|
|
3512
3508
|
regex: "$"
|
|
@@ -3516,44 +3512,42 @@ var JavaScriptHighlightRules = function(options) {
|
|
|
3516
3512
|
next: "no_regex"
|
|
3517
3513
|
}
|
|
3518
3514
|
],
|
|
3519
|
-
"qqstring"
|
|
3515
|
+
"qqstring": [
|
|
3520
3516
|
{
|
|
3521
|
-
token
|
|
3522
|
-
regex
|
|
3517
|
+
token: "constant.language.escape",
|
|
3518
|
+
regex: escapedRe
|
|
3523
3519
|
}, {
|
|
3524
|
-
token
|
|
3525
|
-
regex
|
|
3526
|
-
consumeLineEnd
|
|
3520
|
+
token: "string",
|
|
3521
|
+
regex: "\\\\$",
|
|
3522
|
+
consumeLineEnd: true
|
|
3527
3523
|
}, {
|
|
3528
|
-
token
|
|
3529
|
-
regex
|
|
3530
|
-
next
|
|
3524
|
+
token: "string",
|
|
3525
|
+
regex: '"|$',
|
|
3526
|
+
next: "no_regex"
|
|
3531
3527
|
}, {
|
|
3532
3528
|
defaultToken: "string"
|
|
3533
3529
|
}
|
|
3534
3530
|
],
|
|
3535
|
-
"qstring"
|
|
3531
|
+
"qstring": [
|
|
3536
3532
|
{
|
|
3537
|
-
token
|
|
3538
|
-
regex
|
|
3533
|
+
token: "constant.language.escape",
|
|
3534
|
+
regex: escapedRe
|
|
3539
3535
|
}, {
|
|
3540
|
-
token
|
|
3541
|
-
regex
|
|
3542
|
-
consumeLineEnd
|
|
3536
|
+
token: "string",
|
|
3537
|
+
regex: "\\\\$",
|
|
3538
|
+
consumeLineEnd: true
|
|
3543
3539
|
}, {
|
|
3544
|
-
token
|
|
3545
|
-
regex
|
|
3546
|
-
next
|
|
3540
|
+
token: "string",
|
|
3541
|
+
regex: "'|$",
|
|
3542
|
+
next: "no_regex"
|
|
3547
3543
|
}, {
|
|
3548
3544
|
defaultToken: "string"
|
|
3549
3545
|
}
|
|
3550
3546
|
]
|
|
3551
3547
|
};
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
3548
|
if (!options || !options.noES6) {
|
|
3555
3549
|
this.$rules.no_regex.unshift({
|
|
3556
|
-
regex: "[{}]", onMatch: function(val, state, stack) {
|
|
3550
|
+
regex: "[{}]", onMatch: function (val, state, stack) {
|
|
3557
3551
|
this.next = val == "{" ? this.nextState : "";
|
|
3558
3552
|
if (val == "{" && stack.length) {
|
|
3559
3553
|
stack.unshift("start", state);
|
|
@@ -3568,40 +3562,60 @@ var JavaScriptHighlightRules = function(options) {
|
|
|
3568
3562
|
},
|
|
3569
3563
|
nextState: "start"
|
|
3570
3564
|
}, {
|
|
3571
|
-
token
|
|
3572
|
-
regex
|
|
3573
|
-
push
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3565
|
+
token: "string.quasi.start",
|
|
3566
|
+
regex: /`/,
|
|
3567
|
+
push: [{
|
|
3568
|
+
token: "constant.language.escape",
|
|
3569
|
+
regex: escapedRe
|
|
3570
|
+
}, {
|
|
3571
|
+
token: "paren.quasi.start",
|
|
3572
|
+
regex: /\${/,
|
|
3573
|
+
push: "start"
|
|
3574
|
+
}, {
|
|
3575
|
+
token: "string.quasi.end",
|
|
3576
|
+
regex: /`/,
|
|
3577
|
+
next: "pop"
|
|
3578
|
+
}, {
|
|
3579
|
+
defaultToken: "string.quasi"
|
|
3580
|
+
}]
|
|
3581
|
+
}, {
|
|
3582
|
+
token: ["variable.parameter", "text"],
|
|
3583
|
+
regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
|
|
3584
|
+
}, {
|
|
3585
|
+
token: "paren.lparen",
|
|
3586
|
+
regex: "(\\()(?=.+\\s*=>)",
|
|
3587
|
+
next: "function_arguments"
|
|
3588
|
+
}, {
|
|
3589
|
+
token: "variable.language",
|
|
3590
|
+
regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
|
|
3591
|
+
});
|
|
3592
|
+
this.$rules["function_arguments"].unshift({
|
|
3593
|
+
token: "keyword.operator",
|
|
3594
|
+
regex: "=",
|
|
3595
|
+
next: "default_parameter"
|
|
3596
|
+
}, {
|
|
3597
|
+
token: "keyword.operator",
|
|
3598
|
+
regex: "\\.{3}"
|
|
3599
|
+
});
|
|
3600
|
+
this.$rules["property"].unshift({
|
|
3601
|
+
token: "support.function",
|
|
3602
|
+
regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
|
|
3603
|
+
+ "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
|
|
3604
|
+
}, {
|
|
3605
|
+
token: "constant.language",
|
|
3606
|
+
regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
|
|
3587
3607
|
});
|
|
3588
|
-
|
|
3589
3608
|
if (!options || options.jsx != false)
|
|
3590
3609
|
JSX.call(this);
|
|
3591
3610
|
}
|
|
3592
|
-
|
|
3593
|
-
this.embedRules(DocCommentHighlightRules, "doc-",
|
|
3594
|
-
[ DocCommentHighlightRules.getEndRule("no_regex") ]);
|
|
3595
|
-
|
|
3611
|
+
this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
|
|
3596
3612
|
this.normalizeRules();
|
|
3597
3613
|
};
|
|
3598
|
-
|
|
3599
3614
|
oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
|
|
3600
|
-
|
|
3601
3615
|
function JSX() {
|
|
3602
3616
|
var tagRegex = identifierRe.replace("\\d", "\\d\\-");
|
|
3603
3617
|
var jsxTag = {
|
|
3604
|
-
onMatch
|
|
3618
|
+
onMatch: function (val, state, stack) {
|
|
3605
3619
|
var offset = val.charAt(1) == "/" ? 2 : 1;
|
|
3606
3620
|
if (offset == 1) {
|
|
3607
3621
|
if (state != this.nextState)
|
|
@@ -3609,7 +3623,8 @@ function JSX() {
|
|
|
3609
3623
|
else
|
|
3610
3624
|
stack.unshift(this.next);
|
|
3611
3625
|
stack[2]++;
|
|
3612
|
-
}
|
|
3626
|
+
}
|
|
3627
|
+
else if (offset == 2) {
|
|
3613
3628
|
if (state == this.nextState) {
|
|
3614
3629
|
stack[1]--;
|
|
3615
3630
|
if (!stack[1] || stack[1] < 0) {
|
|
@@ -3619,14 +3634,14 @@ function JSX() {
|
|
|
3619
3634
|
}
|
|
3620
3635
|
}
|
|
3621
3636
|
return [{
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3637
|
+
type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
|
|
3638
|
+
value: val.slice(0, offset)
|
|
3639
|
+
}, {
|
|
3640
|
+
type: "meta.tag.tag-name.xml",
|
|
3641
|
+
value: val.substr(offset)
|
|
3642
|
+
}];
|
|
3628
3643
|
},
|
|
3629
|
-
regex
|
|
3644
|
+
regex: "</?" + tagRegex + "",
|
|
3630
3645
|
next: "jsxAttributes",
|
|
3631
3646
|
nextState: "jsx"
|
|
3632
3647
|
};
|
|
@@ -3639,462 +3654,417 @@ function JSX() {
|
|
|
3639
3654
|
this.$rules.jsx = [
|
|
3640
3655
|
jsxJsRule,
|
|
3641
3656
|
jsxTag,
|
|
3642
|
-
{include
|
|
3643
|
-
{defaultToken: "string"}
|
|
3657
|
+
{ include: "reference" },
|
|
3658
|
+
{ defaultToken: "string" }
|
|
3644
3659
|
];
|
|
3645
3660
|
this.$rules.jsxAttributes = [{
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3661
|
+
token: "meta.tag.punctuation.tag-close.xml",
|
|
3662
|
+
regex: "/?>",
|
|
3663
|
+
onMatch: function (value, currentState, stack) {
|
|
3664
|
+
if (currentState == stack[0])
|
|
3665
|
+
stack.shift();
|
|
3666
|
+
if (value.length == 2) {
|
|
3667
|
+
if (stack[0] == this.nextState)
|
|
3668
|
+
stack[1]--;
|
|
3669
|
+
if (!stack[1] || stack[1] < 0) {
|
|
3670
|
+
stack.splice(0, 2);
|
|
3671
|
+
}
|
|
3656
3672
|
}
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3673
|
+
this.next = stack[0] || "start";
|
|
3674
|
+
return [{ type: this.token, value: value }];
|
|
3675
|
+
},
|
|
3676
|
+
nextState: "jsx"
|
|
3660
3677
|
},
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
},
|
|
3693
|
-
jsxTag
|
|
3678
|
+
jsxJsRule,
|
|
3679
|
+
comments("jsxAttributes"),
|
|
3680
|
+
{
|
|
3681
|
+
token: "entity.other.attribute-name.xml",
|
|
3682
|
+
regex: tagRegex
|
|
3683
|
+
}, {
|
|
3684
|
+
token: "keyword.operator.attribute-equals.xml",
|
|
3685
|
+
regex: "="
|
|
3686
|
+
}, {
|
|
3687
|
+
token: "text.tag-whitespace.xml",
|
|
3688
|
+
regex: "\\s+"
|
|
3689
|
+
}, {
|
|
3690
|
+
token: "string.attribute-value.xml",
|
|
3691
|
+
regex: "'",
|
|
3692
|
+
stateName: "jsx_attr_q",
|
|
3693
|
+
push: [
|
|
3694
|
+
{ token: "string.attribute-value.xml", regex: "'", next: "pop" },
|
|
3695
|
+
{ include: "reference" },
|
|
3696
|
+
{ defaultToken: "string.attribute-value.xml" }
|
|
3697
|
+
]
|
|
3698
|
+
}, {
|
|
3699
|
+
token: "string.attribute-value.xml",
|
|
3700
|
+
regex: '"',
|
|
3701
|
+
stateName: "jsx_attr_qq",
|
|
3702
|
+
push: [
|
|
3703
|
+
{ token: "string.attribute-value.xml", regex: '"', next: "pop" },
|
|
3704
|
+
{ include: "reference" },
|
|
3705
|
+
{ defaultToken: "string.attribute-value.xml" }
|
|
3706
|
+
]
|
|
3707
|
+
},
|
|
3708
|
+
jsxTag
|
|
3694
3709
|
];
|
|
3695
3710
|
this.$rules.reference = [{
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3711
|
+
token: "constant.language.escape.reference.xml",
|
|
3712
|
+
regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
|
3713
|
+
}];
|
|
3699
3714
|
}
|
|
3700
|
-
|
|
3701
3715
|
function comments(next) {
|
|
3702
3716
|
return [
|
|
3703
3717
|
{
|
|
3704
|
-
token
|
|
3705
|
-
regex
|
|
3718
|
+
token: "comment",
|
|
3719
|
+
regex: /\/\*/,
|
|
3706
3720
|
next: [
|
|
3707
3721
|
DocCommentHighlightRules.getTagRule(),
|
|
3708
|
-
{token
|
|
3709
|
-
{defaultToken
|
|
3722
|
+
{ token: "comment", regex: "\\*\\/", next: next || "pop" },
|
|
3723
|
+
{ defaultToken: "comment", caseInsensitive: true }
|
|
3710
3724
|
]
|
|
3711
3725
|
}, {
|
|
3712
|
-
token
|
|
3713
|
-
regex
|
|
3726
|
+
token: "comment",
|
|
3727
|
+
regex: "\\/\\/",
|
|
3714
3728
|
next: [
|
|
3715
3729
|
DocCommentHighlightRules.getTagRule(),
|
|
3716
|
-
{token
|
|
3717
|
-
{defaultToken
|
|
3730
|
+
{ token: "comment", regex: "$|^", next: next || "pop" },
|
|
3731
|
+
{ defaultToken: "comment", caseInsensitive: true }
|
|
3718
3732
|
]
|
|
3719
3733
|
}
|
|
3720
3734
|
];
|
|
3721
3735
|
}
|
|
3722
3736
|
exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
|
|
3723
|
-
});
|
|
3724
3737
|
|
|
3725
|
-
|
|
3726
|
-
"use strict";
|
|
3738
|
+
});
|
|
3727
3739
|
|
|
3740
|
+
ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
3728
3741
|
var oop = require("../lib/oop");
|
|
3729
3742
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
3730
|
-
|
|
3731
|
-
var XmlHighlightRules = function(normalize) {
|
|
3743
|
+
var XmlHighlightRules = function (normalize) {
|
|
3732
3744
|
var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
|
|
3733
|
-
|
|
3734
3745
|
this.$rules = {
|
|
3735
|
-
start
|
|
3736
|
-
{token
|
|
3746
|
+
start: [
|
|
3747
|
+
{ token: "string.cdata.xml", regex: "<\\!\\[CDATA\\[", next: "cdata" },
|
|
3737
3748
|
{
|
|
3738
|
-
token
|
|
3739
|
-
regex
|
|
3749
|
+
token: ["punctuation.instruction.xml", "keyword.instruction.xml"],
|
|
3750
|
+
regex: "(<\\?)(" + tagRegex + ")", next: "processing_instruction"
|
|
3740
3751
|
},
|
|
3741
|
-
{token
|
|
3752
|
+
{ token: "comment.start.xml", regex: "<\\!--", next: "comment" },
|
|
3742
3753
|
{
|
|
3743
|
-
token
|
|
3744
|
-
regex
|
|
3754
|
+
token: ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
|
|
3755
|
+
regex: "(<\\!)(DOCTYPE)(?=[\\s])", next: "doctype", caseInsensitive: true
|
|
3745
3756
|
},
|
|
3746
|
-
{include
|
|
3747
|
-
{token
|
|
3748
|
-
{token
|
|
3749
|
-
{include
|
|
3750
|
-
{defaultToken
|
|
3757
|
+
{ include: "tag" },
|
|
3758
|
+
{ token: "text.end-tag-open.xml", regex: "</" },
|
|
3759
|
+
{ token: "text.tag-open.xml", regex: "<" },
|
|
3760
|
+
{ include: "reference" },
|
|
3761
|
+
{ defaultToken: "text.xml" }
|
|
3751
3762
|
],
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
{
|
|
3771
|
-
{
|
|
3772
|
-
{token
|
|
3773
|
-
{token : "xml-pe.xml", regex : "[-_a-zA-Z0-9:]+"},
|
|
3774
|
-
{token : "punctuation.int-subset", regex : "\\[", push : "int_subset"}
|
|
3763
|
+
processing_instruction: [{
|
|
3764
|
+
token: "entity.other.attribute-name.decl-attribute-name.xml",
|
|
3765
|
+
regex: tagRegex
|
|
3766
|
+
}, {
|
|
3767
|
+
token: "keyword.operator.decl-attribute-equals.xml",
|
|
3768
|
+
regex: "="
|
|
3769
|
+
}, {
|
|
3770
|
+
include: "whitespace"
|
|
3771
|
+
}, {
|
|
3772
|
+
include: "string"
|
|
3773
|
+
}, {
|
|
3774
|
+
token: "punctuation.xml-decl.xml",
|
|
3775
|
+
regex: "\\?>",
|
|
3776
|
+
next: "start"
|
|
3777
|
+
}],
|
|
3778
|
+
doctype: [
|
|
3779
|
+
{ include: "whitespace" },
|
|
3780
|
+
{ include: "string" },
|
|
3781
|
+
{ token: "xml-pe.doctype.xml", regex: ">", next: "start" },
|
|
3782
|
+
{ token: "xml-pe.xml", regex: "[-_a-zA-Z0-9:]+" },
|
|
3783
|
+
{ token: "punctuation.int-subset", regex: "\\[", push: "int_subset" }
|
|
3775
3784
|
],
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
{token
|
|
3801
|
-
{token : "text.xml", regex : "\\s+"},
|
|
3802
|
-
{token : "text.xml", regex : "(?:[^\\]]|\\](?!\\]>))+"}
|
|
3785
|
+
int_subset: [{
|
|
3786
|
+
token: "text.xml",
|
|
3787
|
+
regex: "\\s+"
|
|
3788
|
+
}, {
|
|
3789
|
+
token: "punctuation.int-subset.xml",
|
|
3790
|
+
regex: "]",
|
|
3791
|
+
next: "pop"
|
|
3792
|
+
}, {
|
|
3793
|
+
token: ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
|
|
3794
|
+
regex: "(<\\!)(" + tagRegex + ")",
|
|
3795
|
+
push: [{
|
|
3796
|
+
token: "text",
|
|
3797
|
+
regex: "\\s+"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
token: "punctuation.markup-decl.xml",
|
|
3801
|
+
regex: ">",
|
|
3802
|
+
next: "pop"
|
|
3803
|
+
},
|
|
3804
|
+
{ include: "string" }]
|
|
3805
|
+
}],
|
|
3806
|
+
cdata: [
|
|
3807
|
+
{ token: "string.cdata.xml", regex: "\\]\\]>", next: "start" },
|
|
3808
|
+
{ token: "text.xml", regex: "\\s+" },
|
|
3809
|
+
{ token: "text.xml", regex: "(?:[^\\]]|\\](?!\\]>))+" }
|
|
3803
3810
|
],
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
{
|
|
3807
|
-
{defaultToken : "comment.xml"}
|
|
3811
|
+
comment: [
|
|
3812
|
+
{ token: "comment.end.xml", regex: "-->", next: "start" },
|
|
3813
|
+
{ defaultToken: "comment.xml" }
|
|
3808
3814
|
],
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
}],
|
|
3828
|
-
|
|
3829
|
-
tag_whitespace : [
|
|
3830
|
-
{token : "text.tag-whitespace.xml", regex : "\\s+"}
|
|
3815
|
+
reference: [{
|
|
3816
|
+
token: "constant.language.escape.reference.xml",
|
|
3817
|
+
regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
|
3818
|
+
}],
|
|
3819
|
+
attr_reference: [{
|
|
3820
|
+
token: "constant.language.escape.reference.attribute-value.xml",
|
|
3821
|
+
regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
|
3822
|
+
}],
|
|
3823
|
+
tag: [{
|
|
3824
|
+
token: ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
|
|
3825
|
+
regex: "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
|
|
3826
|
+
next: [
|
|
3827
|
+
{ include: "attributes" },
|
|
3828
|
+
{ token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
|
|
3829
|
+
]
|
|
3830
|
+
}],
|
|
3831
|
+
tag_whitespace: [
|
|
3832
|
+
{ token: "text.tag-whitespace.xml", regex: "\\s+" }
|
|
3831
3833
|
],
|
|
3832
|
-
whitespace
|
|
3833
|
-
{token
|
|
3834
|
+
whitespace: [
|
|
3835
|
+
{ token: "text.whitespace.xml", regex: "\\s+" }
|
|
3834
3836
|
],
|
|
3835
3837
|
string: [{
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3838
|
+
token: "string.xml",
|
|
3839
|
+
regex: "'",
|
|
3840
|
+
push: [
|
|
3841
|
+
{ token: "string.xml", regex: "'", next: "pop" },
|
|
3842
|
+
{ defaultToken: "string.xml" }
|
|
3843
|
+
]
|
|
3844
|
+
}, {
|
|
3845
|
+
token: "string.xml",
|
|
3846
|
+
regex: '"',
|
|
3847
|
+
push: [
|
|
3848
|
+
{ token: "string.xml", regex: '"', next: "pop" },
|
|
3849
|
+
{ defaultToken: "string.xml" }
|
|
3850
|
+
]
|
|
3851
|
+
}],
|
|
3851
3852
|
attributes: [{
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3853
|
+
token: "entity.other.attribute-name.xml",
|
|
3854
|
+
regex: tagRegex
|
|
3855
|
+
}, {
|
|
3856
|
+
token: "keyword.operator.attribute-equals.xml",
|
|
3857
|
+
regex: "="
|
|
3858
|
+
}, {
|
|
3859
|
+
include: "tag_whitespace"
|
|
3860
|
+
}, {
|
|
3861
|
+
include: "attribute_value"
|
|
3862
|
+
}],
|
|
3863
3863
|
attribute_value: [{
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3864
|
+
token: "string.attribute-value.xml",
|
|
3865
|
+
regex: "'",
|
|
3866
|
+
push: [
|
|
3867
|
+
{ token: "string.attribute-value.xml", regex: "'", next: "pop" },
|
|
3868
|
+
{ include: "attr_reference" },
|
|
3869
|
+
{ defaultToken: "string.attribute-value.xml" }
|
|
3870
|
+
]
|
|
3871
|
+
}, {
|
|
3872
|
+
token: "string.attribute-value.xml",
|
|
3873
|
+
regex: '"',
|
|
3874
|
+
push: [
|
|
3875
|
+
{ token: "string.attribute-value.xml", regex: '"', next: "pop" },
|
|
3876
|
+
{ include: "attr_reference" },
|
|
3877
|
+
{ defaultToken: "string.attribute-value.xml" }
|
|
3878
|
+
]
|
|
3879
|
+
}]
|
|
3880
3880
|
};
|
|
3881
|
-
|
|
3882
3881
|
if (this.constructor === XmlHighlightRules)
|
|
3883
3882
|
this.normalizeRules();
|
|
3884
3883
|
};
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
(function() {
|
|
3888
|
-
|
|
3889
|
-
this.embedTagRules = function(HighlightRules, prefix, tag){
|
|
3884
|
+
(function () {
|
|
3885
|
+
this.embedTagRules = function (HighlightRules, prefix, tag) {
|
|
3890
3886
|
this.$rules.tag.unshift({
|
|
3891
|
-
token
|
|
3892
|
-
regex
|
|
3887
|
+
token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
|
3888
|
+
regex: "(<)(" + tag + "(?=\\s|>|$))",
|
|
3893
3889
|
next: [
|
|
3894
|
-
{include
|
|
3895
|
-
{token
|
|
3890
|
+
{ include: "attributes" },
|
|
3891
|
+
{ token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: prefix + "start" }
|
|
3896
3892
|
]
|
|
3897
3893
|
});
|
|
3898
|
-
|
|
3899
3894
|
this.$rules[tag + "-end"] = [
|
|
3900
|
-
{include
|
|
3901
|
-
{token
|
|
3902
|
-
onMatch
|
|
3895
|
+
{ include: "attributes" },
|
|
3896
|
+
{ token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start",
|
|
3897
|
+
onMatch: function (value, currentState, stack) {
|
|
3903
3898
|
stack.splice(0);
|
|
3904
3899
|
return this.token;
|
|
3905
|
-
|
|
3900
|
+
} }
|
|
3906
3901
|
];
|
|
3907
|
-
|
|
3908
3902
|
this.embedRules(HighlightRules, prefix, [{
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3903
|
+
token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
|
|
3904
|
+
regex: "(</)(" + tag + "(?=\\s|>|$))",
|
|
3905
|
+
next: tag + "-end"
|
|
3906
|
+
}, {
|
|
3907
|
+
token: "string.cdata.xml",
|
|
3908
|
+
regex: "<\\!\\[CDATA\\["
|
|
3909
|
+
}, {
|
|
3910
|
+
token: "string.cdata.xml",
|
|
3911
|
+
regex: "\\]\\]>"
|
|
3912
|
+
}]);
|
|
3919
3913
|
};
|
|
3920
|
-
|
|
3921
3914
|
}).call(TextHighlightRules.prototype);
|
|
3922
|
-
|
|
3923
3915
|
oop.inherits(XmlHighlightRules, TextHighlightRules);
|
|
3924
|
-
|
|
3925
3916
|
exports.XmlHighlightRules = XmlHighlightRules;
|
|
3926
|
-
});
|
|
3927
3917
|
|
|
3928
|
-
|
|
3929
|
-
"use strict";
|
|
3918
|
+
});
|
|
3930
3919
|
|
|
3920
|
+
ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module){"use strict";
|
|
3931
3921
|
var oop = require("../lib/oop");
|
|
3932
3922
|
var lang = require("../lib/lang");
|
|
3933
3923
|
var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
|
|
3934
3924
|
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
|
3935
3925
|
var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
|
|
3936
|
-
|
|
3937
3926
|
var tagMap = lang.createMap({
|
|
3938
|
-
a
|
|
3939
|
-
button
|
|
3940
|
-
form
|
|
3941
|
-
img
|
|
3942
|
-
input
|
|
3943
|
-
label
|
|
3944
|
-
option
|
|
3945
|
-
script
|
|
3946
|
-
select
|
|
3947
|
-
textarea
|
|
3948
|
-
style
|
|
3949
|
-
table
|
|
3950
|
-
tbody
|
|
3951
|
-
td
|
|
3952
|
-
tfoot
|
|
3953
|
-
th
|
|
3954
|
-
tr
|
|
3927
|
+
a: 'anchor',
|
|
3928
|
+
button: 'form',
|
|
3929
|
+
form: 'form',
|
|
3930
|
+
img: 'image',
|
|
3931
|
+
input: 'form',
|
|
3932
|
+
label: 'form',
|
|
3933
|
+
option: 'form',
|
|
3934
|
+
script: 'script',
|
|
3935
|
+
select: 'form',
|
|
3936
|
+
textarea: 'form',
|
|
3937
|
+
style: 'style',
|
|
3938
|
+
table: 'table',
|
|
3939
|
+
tbody: 'table',
|
|
3940
|
+
td: 'table',
|
|
3941
|
+
tfoot: 'table',
|
|
3942
|
+
th: 'table',
|
|
3943
|
+
tr: 'table'
|
|
3955
3944
|
});
|
|
3956
|
-
|
|
3957
|
-
var HtmlHighlightRules = function() {
|
|
3945
|
+
var HtmlHighlightRules = function () {
|
|
3958
3946
|
XmlHighlightRules.call(this);
|
|
3959
|
-
|
|
3960
3947
|
this.addRules({
|
|
3961
3948
|
attributes: [{
|
|
3962
|
-
include : "tag_whitespace"
|
|
3963
|
-
}, {
|
|
3964
|
-
token : "entity.other.attribute-name.xml",
|
|
3965
|
-
regex : "[-_a-zA-Z0-9:.]+"
|
|
3966
|
-
}, {
|
|
3967
|
-
token : "keyword.operator.attribute-equals.xml",
|
|
3968
|
-
regex : "=",
|
|
3969
|
-
push : [{
|
|
3970
3949
|
include: "tag_whitespace"
|
|
3971
3950
|
}, {
|
|
3972
|
-
token
|
|
3973
|
-
regex
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3951
|
+
token: "entity.other.attribute-name.xml",
|
|
3952
|
+
regex: "[-_a-zA-Z0-9:.]+"
|
|
3953
|
+
}, {
|
|
3954
|
+
token: "keyword.operator.attribute-equals.xml",
|
|
3955
|
+
regex: "=",
|
|
3956
|
+
push: [{
|
|
3957
|
+
include: "tag_whitespace"
|
|
3958
|
+
}, {
|
|
3959
|
+
token: "string.unquoted.attribute-value.html",
|
|
3960
|
+
regex: "[^<>='\"`\\s]+",
|
|
3961
|
+
next: "pop"
|
|
3962
|
+
}, {
|
|
3963
|
+
token: "empty",
|
|
3964
|
+
regex: "",
|
|
3965
|
+
next: "pop"
|
|
3966
|
+
}]
|
|
3967
|
+
}, {
|
|
3968
|
+
include: "attribute_value"
|
|
3969
|
+
}],
|
|
3983
3970
|
tag: [{
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3971
|
+
token: function (start, tag) {
|
|
3972
|
+
var group = tagMap[tag];
|
|
3973
|
+
return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
|
|
3974
|
+
"meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
|
|
3975
|
+
},
|
|
3976
|
+
regex: "(</?)([-_a-zA-Z0-9:.]+)",
|
|
3977
|
+
next: "tag_stuff"
|
|
3978
|
+
}],
|
|
3992
3979
|
tag_stuff: [
|
|
3993
|
-
{include
|
|
3994
|
-
{token
|
|
3980
|
+
{ include: "attributes" },
|
|
3981
|
+
{ token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
|
|
3995
3982
|
]
|
|
3996
3983
|
});
|
|
3997
|
-
|
|
3998
3984
|
this.embedTagRules(CssHighlightRules, "css-", "style");
|
|
3999
|
-
this.embedTagRules(new JavaScriptHighlightRules({jsx: false}).getRules(), "js-", "script");
|
|
4000
|
-
|
|
3985
|
+
this.embedTagRules(new JavaScriptHighlightRules({ jsx: false }).getRules(), "js-", "script");
|
|
4001
3986
|
if (this.constructor === HtmlHighlightRules)
|
|
4002
3987
|
this.normalizeRules();
|
|
4003
3988
|
};
|
|
4004
|
-
|
|
4005
3989
|
oop.inherits(HtmlHighlightRules, XmlHighlightRules);
|
|
4006
|
-
|
|
4007
3990
|
exports.HtmlHighlightRules = HtmlHighlightRules;
|
|
4008
|
-
});
|
|
4009
3991
|
|
|
4010
|
-
|
|
4011
|
-
"use strict";
|
|
3992
|
+
});
|
|
4012
3993
|
|
|
3994
|
+
ace.define("ace/mode/csound_document_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/csound_orchestra_highlight_rules","ace/mode/csound_score_highlight_rules","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
4013
3995
|
var oop = require("../lib/oop");
|
|
4014
|
-
|
|
4015
3996
|
var CsoundOrchestraHighlightRules = require("./csound_orchestra_highlight_rules").CsoundOrchestraHighlightRules;
|
|
4016
3997
|
var CsoundScoreHighlightRules = require("./csound_score_highlight_rules").CsoundScoreHighlightRules;
|
|
4017
3998
|
var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
|
|
4018
3999
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
4019
|
-
|
|
4020
|
-
var CsoundDocumentHighlightRules = function() {
|
|
4021
|
-
|
|
4000
|
+
var CsoundDocumentHighlightRules = function () {
|
|
4022
4001
|
var orchestraHighlightRules = new CsoundOrchestraHighlightRules("csound-");
|
|
4023
4002
|
var scoreHighlightRules = new CsoundScoreHighlightRules("csound-score-");
|
|
4024
|
-
|
|
4025
4003
|
this.$rules = {
|
|
4026
4004
|
"start": [
|
|
4027
4005
|
{
|
|
4028
|
-
token
|
|
4029
|
-
regex
|
|
4030
|
-
next
|
|
4006
|
+
token: ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4007
|
+
regex: /(<)(CsoundSynthesi[sz]er)(>)/,
|
|
4008
|
+
next: "synthesizer"
|
|
4031
4009
|
},
|
|
4032
|
-
{defaultToken
|
|
4010
|
+
{ defaultToken: "text.csound-document" }
|
|
4033
4011
|
],
|
|
4034
|
-
|
|
4035
4012
|
"synthesizer": [
|
|
4036
4013
|
{
|
|
4037
|
-
token
|
|
4038
|
-
regex
|
|
4039
|
-
next
|
|
4014
|
+
token: ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4015
|
+
regex: "(</)(CsoundSynthesi[sz]er)(>)",
|
|
4016
|
+
next: "start"
|
|
4040
4017
|
}, {
|
|
4041
|
-
token
|
|
4042
|
-
regex
|
|
4043
|
-
next
|
|
4018
|
+
token: ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4019
|
+
regex: "(<)(CsInstruments)(>)",
|
|
4020
|
+
next: orchestraHighlightRules.embeddedRulePrefix + "start"
|
|
4044
4021
|
}, {
|
|
4045
|
-
token
|
|
4046
|
-
regex
|
|
4047
|
-
next
|
|
4022
|
+
token: ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4023
|
+
regex: "(<)(CsScore)(>)",
|
|
4024
|
+
next: scoreHighlightRules.embeddedRulePrefix + "start"
|
|
4048
4025
|
}, {
|
|
4049
|
-
token
|
|
4050
|
-
regex
|
|
4051
|
-
next
|
|
4026
|
+
token: ["meta.tag.punctuation.tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4027
|
+
regex: "(<)([Hh][Tt][Mm][Ll])(>)",
|
|
4028
|
+
next: "html-start"
|
|
4052
4029
|
}
|
|
4053
4030
|
]
|
|
4054
4031
|
};
|
|
4055
|
-
|
|
4056
4032
|
this.embedRules(orchestraHighlightRules.getRules(), orchestraHighlightRules.embeddedRulePrefix, [{
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4033
|
+
token: ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4034
|
+
regex: "(</)(CsInstruments)(>)",
|
|
4035
|
+
next: "synthesizer"
|
|
4036
|
+
}]);
|
|
4061
4037
|
this.embedRules(scoreHighlightRules.getRules(), scoreHighlightRules.embeddedRulePrefix, [{
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4038
|
+
token: ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4039
|
+
regex: "(</)(CsScore)(>)",
|
|
4040
|
+
next: "synthesizer"
|
|
4041
|
+
}]);
|
|
4066
4042
|
this.embedRules(HtmlHighlightRules, "html-", [{
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4043
|
+
token: ["meta.tag.punctuation.end-tag-open.csound-document", "entity.name.tag.begin.csound-document", "meta.tag.punctuation.tag-close.csound-document"],
|
|
4044
|
+
regex: "(</)([Hh][Tt][Mm][Ll])(>)",
|
|
4045
|
+
next: "synthesizer"
|
|
4046
|
+
}]);
|
|
4072
4047
|
this.normalizeRules();
|
|
4073
4048
|
};
|
|
4074
|
-
|
|
4075
4049
|
oop.inherits(CsoundDocumentHighlightRules, TextHighlightRules);
|
|
4076
|
-
|
|
4077
4050
|
exports.CsoundDocumentHighlightRules = CsoundDocumentHighlightRules;
|
|
4078
|
-
});
|
|
4079
4051
|
|
|
4080
|
-
|
|
4081
|
-
"use strict";
|
|
4052
|
+
});
|
|
4082
4053
|
|
|
4054
|
+
ace.define("ace/mode/csound_document",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/csound_document_highlight_rules"], function(require, exports, module){"use strict";
|
|
4083
4055
|
var oop = require("../lib/oop");
|
|
4084
4056
|
var TextMode = require("./text").Mode;
|
|
4085
4057
|
var CsoundDocumentHighlightRules = require("./csound_document_highlight_rules").CsoundDocumentHighlightRules;
|
|
4086
|
-
|
|
4087
|
-
var Mode = function() {
|
|
4058
|
+
var Mode = function () {
|
|
4088
4059
|
this.HighlightRules = CsoundDocumentHighlightRules;
|
|
4089
4060
|
};
|
|
4090
4061
|
oop.inherits(Mode, TextMode);
|
|
4091
|
-
|
|
4092
|
-
(function() {
|
|
4062
|
+
(function () {
|
|
4093
4063
|
this.$id = "ace/mode/csound_document";
|
|
4094
4064
|
this.snippetFileId = "ace/snippets/csound_document";
|
|
4095
4065
|
}).call(Mode.prototype);
|
|
4096
|
-
|
|
4097
4066
|
exports.Mode = Mode;
|
|
4067
|
+
|
|
4098
4068
|
}); (function() {
|
|
4099
4069
|
ace.require(["ace/mode/csound_document"], function(m) {
|
|
4100
4070
|
if (typeof module == "object" && typeof exports == "object" && module) {
|