@harmoniclabs/monaco-editor 0.52.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/.azure-pipelines/publish-nightly.yml +90 -0
- package/.azure-pipelines/publish-stable.yml +89 -0
- package/.devcontainer/devcontainer.json +8 -0
- package/.gitattributes +1 -0
- package/.github/ISSUE_TEMPLATE/1_bug_report.yaml +57 -0
- package/.github/ISSUE_TEMPLATE/2_feature_request.yaml +38 -0
- package/.github/ISSUE_TEMPLATE/3_other.md +4 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/publish-failure-issue-template.md +7 -0
- package/.github/workflows/ci.yml +76 -0
- package/.github/workflows/website.yml +66 -0
- package/.husky/pre-commit +4 -0
- package/.mocharc.json +4 -0
- package/.nvmrc +1 -0
- package/.prettierignore +17 -0
- package/.prettierrc +8 -0
- package/.vscode/launch.json +68 -0
- package/.vscode/settings.json +16 -0
- package/.vscode/tasks.json +30 -0
- package/CHANGELOG.md +1655 -0
- package/CONTRIBUTING.md +125 -0
- package/LICENSE.txt +21 -0
- package/MAINTAINING.md +55 -0
- package/README.md +122 -0
- package/SECURITY.md +41 -0
- package/ThirdPartyNotices.txt +392 -0
- package/build/build-languages.ts +212 -0
- package/build/build-monaco-editor.ts +463 -0
- package/build/check-samples.ts +53 -0
- package/build/fillers/vscode-nls.ts +46 -0
- package/build/fs.ts +80 -0
- package/build/importTypescript.ts +192 -0
- package/build/npm/installAll.ts +44 -0
- package/build/npm/removeAll.ts +20 -0
- package/build/postinstall.ts +23 -0
- package/build/releaseMetadata.ts +280 -0
- package/build/simpleserver.ts +69 -0
- package/build/tsconfig.json +8 -0
- package/build/utils.ts +291 -0
- package/docs/code-structure.dio.svg +275 -0
- package/docs/debugging-core.gif +0 -0
- package/docs/debugging-languages.gif +0 -0
- package/docs/integrate-amd.md +28 -0
- package/docs/integrate-esm.md +229 -0
- package/docs/launch config.png +0 -0
- package/docs/out-folders.dio.svg +347 -0
- package/editor.code-workspace +13 -0
- package/gulpfile.js +9 -0
- package/package.json +80 -0
- package/samples/README.md +36 -0
- package/samples/browser-amd-diff-editor/index.html +62 -0
- package/samples/browser-amd-diff-editor/modified.txt +74 -0
- package/samples/browser-amd-diff-editor/original.txt +61 -0
- package/samples/browser-amd-editor/index.html +24 -0
- package/samples/browser-amd-iframe/index.html +70 -0
- package/samples/browser-amd-iframe/inner.html +34 -0
- package/samples/browser-amd-localized/index.html +30 -0
- package/samples/browser-amd-monarch/index.html +105 -0
- package/samples/browser-amd-requirejs/index.html +26 -0
- package/samples/browser-amd-shadow-dom/index.html +50 -0
- package/samples/browser-amd-shared-model/index.html +29 -0
- package/samples/browser-amd-trusted-types/index.html +42 -0
- package/samples/browser-esm-esbuild/build.js +96 -0
- package/samples/browser-esm-esbuild/index.html +18 -0
- package/samples/browser-esm-esbuild/index.js +24 -0
- package/samples/browser-esm-esbuild/package.json +6 -0
- package/samples/browser-esm-parcel/index.html +19 -0
- package/samples/browser-esm-parcel/package-lock.json +3953 -0
- package/samples/browser-esm-parcel/package.json +10 -0
- package/samples/browser-esm-parcel/src/index.html +11 -0
- package/samples/browser-esm-parcel/src/index.js +29 -0
- package/samples/browser-esm-vite-react/index.html +12 -0
- package/samples/browser-esm-vite-react/package-lock.json +2341 -0
- package/samples/browser-esm-vite-react/package.json +20 -0
- package/samples/browser-esm-vite-react/src/components/Editor.module.css +4 -0
- package/samples/browser-esm-vite-react/src/components/Editor.tsx +25 -0
- package/samples/browser-esm-vite-react/src/main.tsx +11 -0
- package/samples/browser-esm-vite-react/src/userWorker.ts +27 -0
- package/samples/browser-esm-vite-react/src/vite-env.d.ts +1 -0
- package/samples/browser-esm-vite-react/tsconfig.json +11 -0
- package/samples/browser-esm-vite-react/vite.config.ts +7 -0
- package/samples/browser-esm-webpack/index.html +20 -0
- package/samples/browser-esm-webpack/index.js +24 -0
- package/samples/browser-esm-webpack/package.json +6 -0
- package/samples/browser-esm-webpack/webpack.config.js +30 -0
- package/samples/browser-esm-webpack-monaco-plugin/index.html +20 -0
- package/samples/browser-esm-webpack-monaco-plugin/index.js +16 -0
- package/samples/browser-esm-webpack-monaco-plugin/package.json +6 -0
- package/samples/browser-esm-webpack-monaco-plugin/webpack.config.js +28 -0
- package/samples/browser-esm-webpack-small/generate-imports.js +140 -0
- package/samples/browser-esm-webpack-small/index.html +26 -0
- package/samples/browser-esm-webpack-small/index.js +168 -0
- package/samples/browser-esm-webpack-small/package.json +7 -0
- package/samples/browser-esm-webpack-small/webpack.config.js +35 -0
- package/samples/browser-esm-webpack-typescript/package.json +7 -0
- package/samples/browser-esm-webpack-typescript/src/index.css +5 -0
- package/samples/browser-esm-webpack-typescript/src/index.ts +26 -0
- package/samples/browser-esm-webpack-typescript/tsconfig.json +16 -0
- package/samples/browser-esm-webpack-typescript/webpack.config.js +44 -0
- package/samples/browser-esm-webpack-typescript-react/package-lock.json +6183 -0
- package/samples/browser-esm-webpack-typescript-react/package.json +21 -0
- package/samples/browser-esm-webpack-typescript-react/src/components/Editor.tsx +38 -0
- package/samples/browser-esm-webpack-typescript-react/src/index.css +5 -0
- package/samples/browser-esm-webpack-typescript-react/src/index.html +10 -0
- package/samples/browser-esm-webpack-typescript-react/src/index.tsx +12 -0
- package/samples/browser-esm-webpack-typescript-react/tsconfig.json +18 -0
- package/samples/browser-esm-webpack-typescript-react/webpack.config.js +59 -0
- package/samples/browser-script-editor/index.html +28 -0
- package/samples/electron-amd/electron-index.html +37 -0
- package/samples/electron-amd/index.html +18 -0
- package/samples/electron-amd/main.js +32 -0
- package/samples/electron-amd/package.json +7 -0
- package/samples/electron-amd-nodeIntegration/electron-index.html +46 -0
- package/samples/electron-amd-nodeIntegration/index.html +18 -0
- package/samples/electron-amd-nodeIntegration/main.js +37 -0
- package/samples/electron-amd-nodeIntegration/package.json +7 -0
- package/samples/electron-esm-webpack/index.js +24 -0
- package/samples/electron-esm-webpack/main.js +32 -0
- package/samples/electron-esm-webpack/package.json +8 -0
- package/samples/electron-esm-webpack/webpack.config.js +29 -0
- package/samples/nwjs-amd/index.html +48 -0
- package/samples/nwjs-amd-v2/index.html +57 -0
- package/samples/package-lock.json +7808 -0
- package/samples/package.json +32 -0
- package/scripts/ci/env.ts +15 -0
- package/scripts/ci/monaco-editor-core-prepare.ts +81 -0
- package/scripts/ci/monaco-editor-core.sh +34 -0
- package/scripts/ci/monaco-editor-prepare.ts +75 -0
- package/scripts/ci/monaco-editor.sh +29 -0
- package/scripts/lib/index.ts +95 -0
- package/src/basic-languages/_.contribution.ts +80 -0
- package/src/basic-languages/abap/abap.contribution.ts +24 -0
- package/src/basic-languages/abap/abap.test.ts +360 -0
- package/src/basic-languages/abap/abap.ts +1390 -0
- package/src/basic-languages/apex/apex.contribution.ts +25 -0
- package/src/basic-languages/apex/apex.test.ts +700 -0
- package/src/basic-languages/apex/apex.ts +355 -0
- package/src/basic-languages/azcli/azcli.contribution.ts +24 -0
- package/src/basic-languages/azcli/azcli.test.ts +172 -0
- package/src/basic-languages/azcli/azcli.ts +77 -0
- package/src/basic-languages/bat/bat.contribution.ts +24 -0
- package/src/basic-languages/bat/bat.test.ts +397 -0
- package/src/basic-languages/bat/bat.ts +121 -0
- package/src/basic-languages/bicep/bicep.contribution.ts +24 -0
- package/src/basic-languages/bicep/bicep.test.ts +1063 -0
- package/src/basic-languages/bicep/bicep.ts +129 -0
- package/src/basic-languages/cameligo/cameligo.contribution.ts +24 -0
- package/src/basic-languages/cameligo/cameligo.test.ts +144 -0
- package/src/basic-languages/cameligo/cameligo.ts +193 -0
- package/src/basic-languages/clojure/clojure.contribution.ts +24 -0
- package/src/basic-languages/clojure/clojure.test.ts +943 -0
- package/src/basic-languages/clojure/clojure.ts +792 -0
- package/src/basic-languages/coffee/coffee.contribution.ts +25 -0
- package/src/basic-languages/coffee/coffee.test.ts +2363 -0
- package/src/basic-languages/coffee/coffee.ts +258 -0
- package/src/basic-languages/cpp/cpp.contribution.ts +38 -0
- package/src/basic-languages/cpp/cpp.test.ts +979 -0
- package/src/basic-languages/cpp/cpp.ts +416 -0
- package/src/basic-languages/csharp/csharp.contribution.ts +24 -0
- package/src/basic-languages/csharp/csharp.test.ts +976 -0
- package/src/basic-languages/csharp/csharp.ts +352 -0
- package/src/basic-languages/csp/csp.contribution.ts +24 -0
- package/src/basic-languages/csp/csp.test.ts +8 -0
- package/src/basic-languages/csp/csp.ts +58 -0
- package/src/basic-languages/css/css.contribution.ts +25 -0
- package/src/basic-languages/css/css.test.ts +591 -0
- package/src/basic-languages/css/css.ts +215 -0
- package/src/basic-languages/cypher/cypher.contribution.ts +24 -0
- package/src/basic-languages/cypher/cypher.test.ts +327 -0
- package/src/basic-languages/cypher/cypher.ts +274 -0
- package/src/basic-languages/dart/dart.contribution.ts +25 -0
- package/src/basic-languages/dart/dart.test.ts +558 -0
- package/src/basic-languages/dart/dart.ts +305 -0
- package/src/basic-languages/dockerfile/dockerfile.contribution.ts +25 -0
- package/src/basic-languages/dockerfile/dockerfile.test.ts +238 -0
- package/src/basic-languages/dockerfile/dockerfile.ts +145 -0
- package/src/basic-languages/ecl/ecl.contribution.ts +24 -0
- package/src/basic-languages/ecl/ecl.test.ts +8 -0
- package/src/basic-languages/ecl/ecl.ts +481 -0
- package/src/basic-languages/elixir/elixir.contribution.ts +24 -0
- package/src/basic-languages/elixir/elixir.test.ts +447 -0
- package/src/basic-languages/elixir/elixir.ts +656 -0
- package/src/basic-languages/flow9/flow9.contribution.ts +24 -0
- package/src/basic-languages/flow9/flow9.test.ts +148 -0
- package/src/basic-languages/flow9/flow9.ts +160 -0
- package/src/basic-languages/freemarker2/freemarker2-angle-bracket.test.ts +3099 -0
- package/src/basic-languages/freemarker2/freemarker2-angle-dollar.test.ts +3099 -0
- package/src/basic-languages/freemarker2/freemarker2-auto-bracket.test.ts +5358 -0
- package/src/basic-languages/freemarker2/freemarker2-auto-dollar.test.ts +5361 -0
- package/src/basic-languages/freemarker2/freemarker2-bracket-bracket.test.ts +3086 -0
- package/src/basic-languages/freemarker2/freemarker2-bracket-dollar.test.ts +3086 -0
- package/src/basic-languages/freemarker2/freemarker2.contribution.ts +111 -0
- package/src/basic-languages/freemarker2/freemarker2.ts +1230 -0
- package/src/basic-languages/fsharp/fsharp.contribution.ts +24 -0
- package/src/basic-languages/fsharp/fsharp.test.ts +491 -0
- package/src/basic-languages/fsharp/fsharp.ts +237 -0
- package/src/basic-languages/go/go.contribution.ts +24 -0
- package/src/basic-languages/go/go.test.ts +1492 -0
- package/src/basic-languages/go/go.ts +238 -0
- package/src/basic-languages/graphql/graphql.contribution.ts +25 -0
- package/src/basic-languages/graphql/graphql.test.ts +138 -0
- package/src/basic-languages/graphql/graphql.ts +174 -0
- package/src/basic-languages/handlebars/handlebars.contribution.ts +25 -0
- package/src/basic-languages/handlebars/handlebars.test.ts +354 -0
- package/src/basic-languages/handlebars/handlebars.ts +432 -0
- package/src/basic-languages/hcl/hcl.contribution.ts +24 -0
- package/src/basic-languages/hcl/hcl.test.ts +1228 -0
- package/src/basic-languages/hcl/hcl.ts +189 -0
- package/src/basic-languages/html/html.contribution.ts +25 -0
- package/src/basic-languages/html/html.test.ts +743 -0
- package/src/basic-languages/html/html.ts +355 -0
- package/src/basic-languages/ini/ini.contribution.ts +25 -0
- package/src/basic-languages/ini/ini.ts +82 -0
- package/src/basic-languages/java/java.contribution.ts +25 -0
- package/src/basic-languages/java/java.test.ts +878 -0
- package/src/basic-languages/java/java.ts +252 -0
- package/src/basic-languages/javascript/javascript.contribution.ts +27 -0
- package/src/basic-languages/javascript/javascript.test.ts +924 -0
- package/src/basic-languages/javascript/javascript.ts +77 -0
- package/src/basic-languages/julia/julia.contribution.ts +24 -0
- package/src/basic-languages/julia/julia.test.ts +38 -0
- package/src/basic-languages/julia/julia.ts +550 -0
- package/src/basic-languages/kotlin/kotlin.contribution.ts +25 -0
- package/src/basic-languages/kotlin/kotlin.test.ts +753 -0
- package/src/basic-languages/kotlin/kotlin.ts +273 -0
- package/src/basic-languages/less/less.contribution.ts +25 -0
- package/src/basic-languages/less/less.test.ts +1560 -0
- package/src/basic-languages/less/less.ts +198 -0
- package/src/basic-languages/lexon/lexon.contribution.ts +24 -0
- package/src/basic-languages/lexon/lexon.test.ts +145 -0
- package/src/basic-languages/lexon/lexon.ts +179 -0
- package/src/basic-languages/liquid/liquid.contribution.ts +25 -0
- package/src/basic-languages/liquid/liquid.test.ts +209 -0
- package/src/basic-languages/liquid/liquid.ts +251 -0
- package/src/basic-languages/lua/lua.contribution.ts +24 -0
- package/src/basic-languages/lua/lua.test.ts +86 -0
- package/src/basic-languages/lua/lua.ts +178 -0
- package/src/basic-languages/m3/m3.contribution.ts +24 -0
- package/src/basic-languages/m3/m3.test.ts +119 -0
- package/src/basic-languages/m3/m3.ts +226 -0
- package/src/basic-languages/markdown/markdown.contribution.ts +24 -0
- package/src/basic-languages/markdown/markdown.test.ts +95 -0
- package/src/basic-languages/markdown/markdown.ts +256 -0
- package/src/basic-languages/mdx/mdx.contribution.ts +24 -0
- package/src/basic-languages/mdx/mdx.test.ts +171 -0
- package/src/basic-languages/mdx/mdx.ts +163 -0
- package/src/basic-languages/mips/mips.contribution.ts +25 -0
- package/src/basic-languages/mips/mips.test.ts +239 -0
- package/src/basic-languages/mips/mips.ts +223 -0
- package/src/basic-languages/monaco.contribution.ts +87 -0
- package/src/basic-languages/msdax/msdax.contribution.ts +24 -0
- package/src/basic-languages/msdax/msdax.test.ts +444 -0
- package/src/basic-languages/msdax/msdax.ts +382 -0
- package/src/basic-languages/mysql/keywords.js +32 -0
- package/src/basic-languages/mysql/keywords.mysql.txt +750 -0
- package/src/basic-languages/mysql/mysql.contribution.ts +24 -0
- package/src/basic-languages/mysql/mysql.test.ts +561 -0
- package/src/basic-languages/mysql/mysql.ts +885 -0
- package/src/basic-languages/objective-c/objective-c.contribution.ts +24 -0
- package/src/basic-languages/objective-c/objective-c.test.ts +368 -0
- package/src/basic-languages/objective-c/objective-c.ts +219 -0
- package/src/basic-languages/pascal/pascal.contribution.ts +25 -0
- package/src/basic-languages/pascal/pascal.test.ts +151 -0
- package/src/basic-languages/pascal/pascal.ts +270 -0
- package/src/basic-languages/pascaligo/pascaligo.contribution.ts +24 -0
- package/src/basic-languages/pascaligo/pascaligo.test.ts +143 -0
- package/src/basic-languages/pascaligo/pascaligo.ts +183 -0
- package/src/basic-languages/pebble/pebble.contribution.ts +24 -0
- package/src/basic-languages/pebble/pebble.test.ts +178 -0
- package/src/basic-languages/pebble/pebble.ts +457 -0
- package/src/basic-languages/perl/perl.contribution.ts +24 -0
- package/src/basic-languages/perl/perl.test.ts +475 -0
- package/src/basic-languages/perl/perl.ts +664 -0
- package/src/basic-languages/pgsql/keywords.js +30 -0
- package/src/basic-languages/pgsql/keywords.postgresql.txt +827 -0
- package/src/basic-languages/pgsql/pgsql.contribution.ts +24 -0
- package/src/basic-languages/pgsql/pgsql.test.ts +595 -0
- package/src/basic-languages/pgsql/pgsql.ts +858 -0
- package/src/basic-languages/php/php.contribution.ts +25 -0
- package/src/basic-languages/php/php.test.ts +2409 -0
- package/src/basic-languages/php/php.ts +636 -0
- package/src/basic-languages/pla/pla.contribution.ts +23 -0
- package/src/basic-languages/pla/pla.test.ts +598 -0
- package/src/basic-languages/pla/pla.ts +157 -0
- package/src/basic-languages/postiats/postiats.contribution.ts +24 -0
- package/src/basic-languages/postiats/postiats.test.ts +1050 -0
- package/src/basic-languages/postiats/postiats.ts +748 -0
- package/src/basic-languages/powerquery/powerquery.contribution.ts +24 -0
- package/src/basic-languages/powerquery/powerquery.test.ts +416 -0
- package/src/basic-languages/powerquery/powerquery.ts +917 -0
- package/src/basic-languages/powershell/powershell.contribution.ts +24 -0
- package/src/basic-languages/powershell/powershell.test.ts +884 -0
- package/src/basic-languages/powershell/powershell.ts +263 -0
- package/src/basic-languages/protobuf/protobuf.contribution.ts +24 -0
- package/src/basic-languages/protobuf/protobuf.test.ts +2073 -0
- package/src/basic-languages/protobuf/protobuf.ts +463 -0
- package/src/basic-languages/pug/pug.contribution.ts +24 -0
- package/src/basic-languages/pug/pug.test.ts +473 -0
- package/src/basic-languages/pug/pug.ts +434 -0
- package/src/basic-languages/python/python.contribution.ts +25 -0
- package/src/basic-languages/python/python.test.ts +257 -0
- package/src/basic-languages/python/python.ts +296 -0
- package/src/basic-languages/qsharp/qsharp.contribution.ts +24 -0
- package/src/basic-languages/qsharp/qsharp.test.ts +186 -0
- package/src/basic-languages/qsharp/qsharp.ts +325 -0
- package/src/basic-languages/r/r.contribution.ts +24 -0
- package/src/basic-languages/r/r.test.ts +600 -0
- package/src/basic-languages/r/r.ts +263 -0
- package/src/basic-languages/razor/razor.contribution.ts +25 -0
- package/src/basic-languages/razor/razor.test.ts +175 -0
- package/src/basic-languages/razor/razor.ts +571 -0
- package/src/basic-languages/redis/redis.contribution.ts +24 -0
- package/src/basic-languages/redis/redis.test.ts +306 -0
- package/src/basic-languages/redis/redis.ts +309 -0
- package/src/basic-languages/redshift/redshift.contribution.ts +24 -0
- package/src/basic-languages/redshift/redshift.test.ts +595 -0
- package/src/basic-languages/redshift/redshift.ts +815 -0
- package/src/basic-languages/restructuredtext/restructuredtext.contribution.ts +24 -0
- package/src/basic-languages/restructuredtext/restructuredtext.test.ts +454 -0
- package/src/basic-languages/restructuredtext/restructuredtext.ts +198 -0
- package/src/basic-languages/ruby/ruby.contribution.ts +25 -0
- package/src/basic-languages/ruby/ruby.test.ts +158 -0
- package/src/basic-languages/ruby/ruby.ts +590 -0
- package/src/basic-languages/rust/rust.contribution.ts +24 -0
- package/src/basic-languages/rust/rust.test.ts +208 -0
- package/src/basic-languages/rust/rust.ts +361 -0
- package/src/basic-languages/sb/sb.contribution.ts +24 -0
- package/src/basic-languages/sb/sb.test.ts +320 -0
- package/src/basic-languages/sb/sb.ts +134 -0
- package/src/basic-languages/scala/scala.contribution.ts +25 -0
- package/src/basic-languages/scala/scala.test.ts +727 -0
- package/src/basic-languages/scala/scala.ts +413 -0
- package/src/basic-languages/scheme/scheme.contribution.ts +24 -0
- package/src/basic-languages/scheme/scheme.test.ts +89 -0
- package/src/basic-languages/scheme/scheme.ts +128 -0
- package/src/basic-languages/scss/scss.contribution.ts +25 -0
- package/src/basic-languages/scss/scss.test.ts +2422 -0
- package/src/basic-languages/scss/scss.ts +284 -0
- package/src/basic-languages/shell/shell.contribution.ts +24 -0
- package/src/basic-languages/shell/shell.test.ts +345 -0
- package/src/basic-languages/shell/shell.ts +246 -0
- package/src/basic-languages/solidity/solidity.contribution.ts +24 -0
- package/src/basic-languages/solidity/solidity.test.ts +272 -0
- package/src/basic-languages/solidity/solidity.ts +1388 -0
- package/src/basic-languages/sophia/sophia.contribution.ts +24 -0
- package/src/basic-languages/sophia/sophia.test.ts +302 -0
- package/src/basic-languages/sophia/sophia.ts +220 -0
- package/src/basic-languages/sparql/sparql.contribution.ts +24 -0
- package/src/basic-languages/sparql/sparql.test.ts +187 -0
- package/src/basic-languages/sparql/sparql.ts +219 -0
- package/src/basic-languages/sql/keywords.js +612 -0
- package/src/basic-languages/sql/sql.contribution.ts +24 -0
- package/src/basic-languages/sql/sql.test.ts +692 -0
- package/src/basic-languages/sql/sql.ts +860 -0
- package/src/basic-languages/st/st.contribution.ts +24 -0
- package/src/basic-languages/st/st.test.ts +139 -0
- package/src/basic-languages/st/st.ts +441 -0
- package/src/basic-languages/swift/swift.contribution.ts +25 -0
- package/src/basic-languages/swift/swift.test.ts +254 -0
- package/src/basic-languages/swift/swift.ts +335 -0
- package/src/basic-languages/systemverilog/systemverilog.contribution.ts +39 -0
- package/src/basic-languages/systemverilog/systemverilog.test.ts +1267 -0
- package/src/basic-languages/systemverilog/systemverilog.ts +606 -0
- package/src/basic-languages/tcl/tcl.contribution.ts +24 -0
- package/src/basic-languages/tcl/tcl.test.ts +107 -0
- package/src/basic-languages/tcl/tcl.ts +259 -0
- package/src/basic-languages/test/testRunner.ts +63 -0
- package/src/basic-languages/twig/twig.contribution.ts +25 -0
- package/src/basic-languages/twig/twig.test.ts +1047 -0
- package/src/basic-languages/twig/twig.ts +417 -0
- package/src/basic-languages/typescript/typescript.contribution.ts +25 -0
- package/src/basic-languages/typescript/typescript.test.ts +973 -0
- package/src/basic-languages/typescript/typescript.ts +364 -0
- package/src/basic-languages/typespec/typespec.contribution.ts +24 -0
- package/src/basic-languages/typespec/typespec.test.ts +500 -0
- package/src/basic-languages/typespec/typespec.ts +130 -0
- package/src/basic-languages/vb/vb.contribution.ts +24 -0
- package/src/basic-languages/vb/vb.test.ts +598 -0
- package/src/basic-languages/vb/vb.ts +394 -0
- package/src/basic-languages/wgsl/wgsl.contribution.ts +24 -0
- package/src/basic-languages/wgsl/wgsl.test.ts +3915 -0
- package/src/basic-languages/wgsl/wgsl.ts +485 -0
- package/src/basic-languages/xml/xml.contribution.ts +44 -0
- package/src/basic-languages/xml/xml.test.ts +706 -0
- package/src/basic-languages/xml/xml.ts +106 -0
- package/src/basic-languages/yaml/yaml.contribution.ts +25 -0
- package/src/basic-languages/yaml/yaml.test.ts +670 -0
- package/src/basic-languages/yaml/yaml.ts +236 -0
- package/src/fillers/editor.api.d.ts +4 -0
- package/src/fillers/monaco-editor-core-amd.ts +11 -0
- package/src/fillers/monaco-editor-core.ts +6 -0
- package/src/language/common/lspLanguageFeatures.ts +1027 -0
- package/src/language/css/css.worker.ts +14 -0
- package/src/language/css/cssMode.ts +145 -0
- package/src/language/css/cssWorker.ts +239 -0
- package/src/language/css/monaco.contribution.ts +362 -0
- package/src/language/css/workerManager.ts +90 -0
- package/src/language/html/html.worker.ts +14 -0
- package/src/language/html/htmlMode.ts +171 -0
- package/src/language/html/htmlWorker.ts +164 -0
- package/src/language/html/monaco.contribution.ts +329 -0
- package/src/language/html/workerManager.ts +90 -0
- package/src/language/json/json.worker.ts +14 -0
- package/src/language/json/jsonMode.ts +185 -0
- package/src/language/json/jsonWorker.ts +235 -0
- package/src/language/json/monaco.contribution.ts +372 -0
- package/src/language/json/tokenization.ts +273 -0
- package/src/language/json/workerManager.ts +91 -0
- package/src/language/typescript/languageFeatures.ts +1269 -0
- package/src/language/typescript/lib/editor.worker.d.ts +8 -0
- package/src/language/typescript/lib/lib.index.ts +97 -0
- package/src/language/typescript/lib/lib.ts +97 -0
- package/src/language/typescript/lib/typescriptServices.d.ts +11717 -0
- package/src/language/typescript/lib/typescriptServices.js +190876 -0
- package/src/language/typescript/lib/typescriptServicesMetadata.ts +5 -0
- package/src/language/typescript/monaco.contribution.ts +815 -0
- package/src/language/typescript/ts.worker.ts +19 -0
- package/src/language/typescript/tsMode.ts +176 -0
- package/src/language/typescript/tsWorker.ts +525 -0
- package/src/language/typescript/workerManager.ts +101 -0
- package/src/nls-fix.js +39 -0
- package/src/tsconfig.json +14 -0
- package/test/manual/cross-origin.html +26 -0
- package/test/manual/dev-setup.js +218 -0
- package/test/manual/diff.html +20 -0
- package/test/manual/diff.js +451 -0
- package/test/manual/iframe-inner.html +29 -0
- package/test/manual/iframe.html +23 -0
- package/test/manual/index.css +14 -0
- package/test/manual/index.html +44 -0
- package/test/manual/index.js +421 -0
- package/test/manual/mouse-fixed.html +31 -0
- package/test/manual/mouse-scrollable-body.html +286 -0
- package/test/manual/mouse-scrollable-element.html +204 -0
- package/test/manual/samples/run-editor-failing-js.txt +44 -0
- package/test/manual/samples/run-editor-intellisense-js.txt +33 -0
- package/test/manual/samples/run-editor-jquery-min-js.txt +30 -0
- package/test/manual/samples/run-editor-korean.txt +10 -0
- package/test/manual/samples/run-editor-sample-big-css.txt +1 -0
- package/test/manual/samples/run-editor-sample-bom-cs.txt +493 -0
- package/test/manual/samples/run-editor-sample-cr-ps1.txt +12 -0
- package/test/manual/samples/run-editor-sample-dynamic.txt +50 -0
- package/test/manual/samples/run-editor-sample-f12-css.txt +31764 -0
- package/test/manual/samples/run-editor-sample-html.txt +23 -0
- package/test/manual/samples/run-editor-sample-js.txt +222 -0
- package/test/manual/samples/run-editor-sample-msn-js.txt +1 -0
- package/test/manual/samples.js +287 -0
- package/test/manual/shadow-dom.html +56 -0
- package/test/manual/transform.html +29 -0
- package/test/manual/typescript/custom-worker.html +210 -0
- package/test/manual/typescript/custom-worker.js +59 -0
- package/test/manual/typescript/index.html +179 -0
- package/test/smoke/amd/index.html +21 -0
- package/test/smoke/common.js +11 -0
- package/test/smoke/esbuild/index.html +11 -0
- package/test/smoke/esbuild/index.js +26 -0
- package/test/smoke/package-esbuild.ts +60 -0
- package/test/smoke/package-vite.ts +19 -0
- package/test/smoke/package-webpack.ts +56 -0
- package/test/smoke/parcel/index.html +11 -0
- package/test/smoke/parcel/index.js +41 -0
- package/test/smoke/parcel/package.json +6 -0
- package/test/smoke/runner.js +94 -0
- package/test/smoke/smoke.test.js +215 -0
- package/test/smoke/vite/index.html +10 -0
- package/test/smoke/vite/index.js +31 -0
- package/test/smoke/webpack/index.html +10 -0
- package/test/smoke/webpack/index.js +4 -0
- package/test/unit/all.js +70 -0
- package/test/unit/setup.js +34 -0
- package/webpack-plugin/LICENSE +21 -0
- package/webpack-plugin/README.md +116 -0
- package/webpack-plugin/package-lock.json +3132 -0
- package/webpack-plugin/package.json +45 -0
- package/webpack-plugin/tsconfig.json +11 -0
- package/website/.prettierrc.json +6 -0
- package/website/index/samples/sample.mdx.txt +92 -0
- package/website/package.json +60 -0
- package/website/scripts/check-playground-samples-js.ts +58 -0
- package/website/src/monaco-loader.ts +111 -0
- package/website/src/runner/debug.ts +75 -0
- package/website/src/runner/index.ts +104 -0
- package/website/src/runner/style.scss +35 -0
- package/website/src/shared.ts +37 -0
- package/website/src/tsconfig.json +19 -0
- package/website/src/types.d.ts +13 -0
- package/website/src/website/bootstrap.scss +6 -0
- package/website/src/website/code-oss.svg +1 -0
- package/website/src/website/components/Loader.tsx +40 -0
- package/website/src/website/components/Nav.tsx +75 -0
- package/website/src/website/components/Page.tsx +11 -0
- package/website/src/website/components/Radio.tsx +23 -0
- package/website/src/website/components/Select.tsx +75 -0
- package/website/src/website/components/TextBox.tsx +21 -0
- package/website/src/website/components/bootstrap.tsx +32 -0
- package/website/src/website/components/monaco/MonacoEditor.tsx +275 -0
- package/website/src/website/components/monaco/MonacoLoader.tsx +39 -0
- package/website/src/website/data/diff-sample/modified.txt +212 -0
- package/website/src/website/data/diff-sample/original.txt +215 -0
- package/website/src/website/data/home-samples/sample.abap.txt +29 -0
- package/website/src/website/data/home-samples/sample.aes.txt +38 -0
- package/website/src/website/data/home-samples/sample.apex.txt +7 -0
- package/website/src/website/data/home-samples/sample.azcli.txt +5 -0
- package/website/src/website/data/home-samples/sample.bat.txt +13 -0
- package/website/src/website/data/home-samples/sample.bicep.txt +29 -0
- package/website/src/website/data/home-samples/sample.c.txt +3463 -0
- package/website/src/website/data/home-samples/sample.cameligo.txt +17 -0
- package/website/src/website/data/home-samples/sample.clojure.txt +54 -0
- package/website/src/website/data/home-samples/sample.coffeescript.txt +28 -0
- package/website/src/website/data/home-samples/sample.cpp.txt +246 -0
- package/website/src/website/data/home-samples/sample.csharp.txt +38 -0
- package/website/src/website/data/home-samples/sample.csp.txt +1 -0
- package/website/src/website/data/home-samples/sample.css.txt +828 -0
- package/website/src/website/data/home-samples/sample.cypher.txt +3 -0
- package/website/src/website/data/home-samples/sample.dart.txt +45 -0
- package/website/src/website/data/home-samples/sample.dockerfile.txt +32 -0
- package/website/src/website/data/home-samples/sample.ecl.txt +7 -0
- package/website/src/website/data/home-samples/sample.elixir.txt +80 -0
- package/website/src/website/data/home-samples/sample.flow9.txt +14 -0
- package/website/src/website/data/home-samples/sample.freemarker2.tag-angle.interpolation-bracket.txt +61 -0
- package/website/src/website/data/home-samples/sample.freemarker2.tag-angle.interpolation-dollar.txt +61 -0
- package/website/src/website/data/home-samples/sample.freemarker2.tag-auto.interpolation-bracket.txt +65 -0
- package/website/src/website/data/home-samples/sample.freemarker2.tag-auto.interpolation-dollar.txt +65 -0
- package/website/src/website/data/home-samples/sample.freemarker2.tag-bracket.interpolation-bracket.txt +61 -0
- package/website/src/website/data/home-samples/sample.freemarker2.tag-bracket.interpolation-dollar.txt +61 -0
- package/website/src/website/data/home-samples/sample.freemarker2.txt +61 -0
- package/website/src/website/data/home-samples/sample.fsharp.txt +8 -0
- package/website/src/website/data/home-samples/sample.go.txt +111 -0
- package/website/src/website/data/home-samples/sample.graphql.txt +263 -0
- package/website/src/website/data/home-samples/sample.handlebars.txt +31 -0
- package/website/src/website/data/home-samples/sample.hcl.txt +48 -0
- package/website/src/website/data/home-samples/sample.html.txt +100 -0
- package/website/src/website/data/home-samples/sample.ini.txt +15 -0
- package/website/src/website/data/home-samples/sample.java.txt +54 -0
- package/website/src/website/data/home-samples/sample.javascript.txt +214 -0
- package/website/src/website/data/home-samples/sample.json.txt +68 -0
- package/website/src/website/data/home-samples/sample.julia.txt +23 -0
- package/website/src/website/data/home-samples/sample.kotlin.txt +28 -0
- package/website/src/website/data/home-samples/sample.less.txt +46 -0
- package/website/src/website/data/home-samples/sample.lex.txt +21 -0
- package/website/src/website/data/home-samples/sample.lexon.txt +17 -0
- package/website/src/website/data/home-samples/sample.liquid.txt +16 -0
- package/website/src/website/data/home-samples/sample.lua.txt +12 -0
- package/website/src/website/data/home-samples/sample.m3.txt +5 -0
- package/website/src/website/data/home-samples/sample.markdown.txt +104 -0
- package/website/src/website/data/home-samples/sample.mdx.txt +91 -0
- package/website/src/website/data/home-samples/sample.mips.txt +13 -0
- package/website/src/website/data/home-samples/sample.msdax.txt +1 -0
- package/website/src/website/data/home-samples/sample.mysql.txt +8 -0
- package/website/src/website/data/home-samples/sample.objective-c.txt +52 -0
- package/website/src/website/data/home-samples/sample.pascal.txt +28 -0
- package/website/src/website/data/home-samples/sample.pascaligo.txt +20 -0
- package/website/src/website/data/home-samples/sample.pebble.txt +54 -0
- package/website/src/website/data/home-samples/sample.perl.txt +18 -0
- package/website/src/website/data/home-samples/sample.pgsql.txt +8 -0
- package/website/src/website/data/home-samples/sample.php.txt +82 -0
- package/website/src/website/data/home-samples/sample.pla.txt +4 -0
- package/website/src/website/data/home-samples/sample.plaintext.txt +9 -0
- package/website/src/website/data/home-samples/sample.postiats.txt +64 -0
- package/website/src/website/data/home-samples/sample.powerquery.txt +12 -0
- package/website/src/website/data/home-samples/sample.powershell.txt +30 -0
- package/website/src/website/data/home-samples/sample.proto.txt +11 -0
- package/website/src/website/data/home-samples/sample.pug.txt +18 -0
- package/website/src/website/data/home-samples/sample.python.txt +13 -0
- package/website/src/website/data/home-samples/sample.qsharp.txt +45 -0
- package/website/src/website/data/home-samples/sample.r.txt +41 -0
- package/website/src/website/data/home-samples/sample.razor.txt +46 -0
- package/website/src/website/data/home-samples/sample.redis.txt +4 -0
- package/website/src/website/data/home-samples/sample.redshift.txt +9 -0
- package/website/src/website/data/home-samples/sample.restructuredtext.txt +26 -0
- package/website/src/website/data/home-samples/sample.ruby.txt +21 -0
- package/website/src/website/data/home-samples/sample.rust.txt +29 -0
- package/website/src/website/data/home-samples/sample.sb.txt +10 -0
- package/website/src/website/data/home-samples/sample.scala.txt +53 -0
- package/website/src/website/data/home-samples/sample.scheme.txt +105 -0
- package/website/src/website/data/home-samples/sample.scss.txt +37 -0
- package/website/src/website/data/home-samples/sample.shell.txt +42 -0
- package/website/src/website/data/home-samples/sample.sol.txt +139 -0
- package/website/src/website/data/home-samples/sample.sparql.txt +7 -0
- package/website/src/website/data/home-samples/sample.sql.txt +52 -0
- package/website/src/website/data/home-samples/sample.st.txt +34 -0
- package/website/src/website/data/home-samples/sample.swift.txt +50 -0
- package/website/src/website/data/home-samples/sample.systemverilog.txt +28 -0
- package/website/src/website/data/home-samples/sample.tcl.txt +18 -0
- package/website/src/website/data/home-samples/sample.twig.txt +12 -0
- package/website/src/website/data/home-samples/sample.typescript.txt +124 -0
- package/website/src/website/data/home-samples/sample.typespec.txt +71 -0
- package/website/src/website/data/home-samples/sample.vb.txt +59 -0
- package/website/src/website/data/home-samples/sample.verilog.txt +35 -0
- package/website/src/website/data/home-samples/sample.wgsl.txt +48 -0
- package/website/src/website/data/home-samples/sample.xml.txt +14 -0
- package/website/src/website/data/home-samples/sample.yaml.txt +14 -0
- package/website/src/website/data/playground-samples/all.js +196 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/chapter.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/hello-diff-world/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/hello-diff-world/sample.html +1 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/hello-diff-world/sample.js +20 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/hello-diff-world/sample.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/inline-diff-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/inline-diff-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/inline-diff-example/sample.js +23 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/inline-diff-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/multi-line-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/multi-line-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/multi-line-example/sample.js +20 -0
- package/website/src/website/data/playground-samples/creating-the-diffeditor/multi-line-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-editor/chapter.json +4 -0
- package/website/src/website/data/playground-samples/creating-the-editor/editor-basic-options/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-editor/editor-basic-options/sample.html +1 -0
- package/website/src/website/data/playground-samples/creating-the-editor/editor-basic-options/sample.js +19 -0
- package/website/src/website/data/playground-samples/creating-the-editor/editor-basic-options/sample.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hard-wrapping/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hard-wrapping/sample.html +1 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hard-wrapping/sample.js +13 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hard-wrapping/sample.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hello-world/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hello-world/sample.html +1 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hello-world/sample.js +10 -0
- package/website/src/website/data/playground-samples/creating-the-editor/hello-world/sample.json +4 -0
- package/website/src/website/data/playground-samples/creating-the-editor/syntax-highlighting-for-html-elements/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-editor/syntax-highlighting-for-html-elements/sample.html +35 -0
- package/website/src/website/data/playground-samples/creating-the-editor/syntax-highlighting-for-html-elements/sample.js +4 -0
- package/website/src/website/data/playground-samples/creating-the-editor/syntax-highlighting-for-html-elements/sample.json +3 -0
- package/website/src/website/data/playground-samples/creating-the-editor/web-component/sample.css +0 -0
- package/website/src/website/data/playground-samples/creating-the-editor/web-component/sample.html +8 -0
- package/website/src/website/data/playground-samples/creating-the-editor/web-component/sample.js +35 -0
- package/website/src/website/data/playground-samples/creating-the-editor/web-component/sample.json +4 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/chapter.json +3 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/exposed-colors/sample.css +0 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/exposed-colors/sample.html +1 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/exposed-colors/sample.js +150 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/exposed-colors/sample.json +3 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/scrollbars/sample.css +13 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/scrollbars/sample.html +1 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/scrollbars/sample.js +32 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/scrollbars/sample.json +3 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/tokens-and-colors/sample.css +0 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/tokens-and-colors/sample.html +1 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/tokens-and-colors/sample.js +40 -0
- package/website/src/website/data/playground-samples/customizing-the-appearence/tokens-and-colors/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/chapter.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/codelens-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/codelens-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/codelens-provider-example/sample.js +39 -0
- package/website/src/website/data/playground-samples/extending-language-services/codelens-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/color-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/color-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/color-provider-example/sample.js +71 -0
- package/website/src/website/data/playground-samples/extending-language-services/color-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/completion-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/completion-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/completion-provider-example/sample.js +69 -0
- package/website/src/website/data/playground-samples/extending-language-services/completion-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-javascript-defaults/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-javascript-defaults/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-javascript-defaults/sample.js +46 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-javascript-defaults/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.js +42 -0
- package/website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/custom-languages/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/custom-languages/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/custom-languages/sample.js +137 -0
- package/website/src/website/data/playground-samples/extending-language-services/custom-languages/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/folding-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/folding-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/folding-provider-example/sample.js +74 -0
- package/website/src/website/data/playground-samples/extending-language-services/folding-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/hover-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/hover-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/hover-provider-example/sample.js +62 -0
- package/website/src/website/data/playground-samples/extending-language-services/hover-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.js +47 -0
- package/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.js +50 -0
- package/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/semantic-tokens-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/semantic-tokens-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/semantic-tokens-provider-example/sample.js +168 -0
- package/website/src/website/data/playground-samples/extending-language-services/semantic-tokens-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/extending-language-services/symbols-provider-example/sample.css +0 -0
- package/website/src/website/data/playground-samples/extending-language-services/symbols-provider-example/sample.html +1 -0
- package/website/src/website/data/playground-samples/extending-language-services/symbols-provider-example/sample.js +480 -0
- package/website/src/website/data/playground-samples/extending-language-services/symbols-provider-example/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.css +0 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.js +43 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-keybinding-to-an-existing-command/sample.css +0 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-keybinding-to-an-existing-command/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-keybinding-to-an-existing-command/sample.js +49 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-keybinding-to-an-existing-command/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-an-action-to-an-editor-instance/sample.css +0 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-an-action-to-an-editor-instance/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-an-action-to-an-editor-instance/sample.js +52 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/adding-an-action-to-an-editor-instance/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/chapter.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.css +0 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.js +37 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.css +13 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.js +30 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.css +0 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.js +11 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.css +6 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.html +5 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.js +114 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.css +7 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.js +30 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.json +3 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.css +0 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.html +1 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.js +41 -0
- package/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.json +3 -0
- package/website/src/website/index.tsx +10 -0
- package/website/src/website/monaco-loader-chunk.ts +15 -0
- package/website/src/website/monacoEditorVersion.ts +8 -0
- package/website/src/website/pages/App.tsx +21 -0
- package/website/src/website/pages/DocsPage.tsx +103 -0
- package/website/src/website/pages/MonarchPage.tsx +16 -0
- package/website/src/website/pages/home/Home.tsx +249 -0
- package/website/src/website/pages/playground/BisectModel.ts +161 -0
- package/website/src/website/pages/playground/LocationModel.ts +216 -0
- package/website/src/website/pages/playground/PlaygroundModel.ts +355 -0
- package/website/src/website/pages/playground/PlaygroundPage.tsx +31 -0
- package/website/src/website/pages/playground/PlaygroundPageContent.tsx +587 -0
- package/website/src/website/pages/playground/Preview.tsx +129 -0
- package/website/src/website/pages/playground/SettingsDialog.tsx +412 -0
- package/website/src/website/pages/playground/SettingsModel.ts +198 -0
- package/website/src/website/pages/playground/Source.ts +107 -0
- package/website/src/website/pages/playground/getNpmVersionsSync.ts +450 -0
- package/website/src/website/pages/playground/playgroundExamples.tsx +88 -0
- package/website/src/website/pages/playground/utils.ts +28 -0
- package/website/src/website/pages/routes.ts +28 -0
- package/website/src/website/style.scss +96 -0
- package/website/src/website/utils/Debouncer.ts +28 -0
- package/website/src/website/utils/ObservableHistory.ts +89 -0
- package/website/src/website/utils/ObservablePromise.ts +49 -0
- package/website/src/website/utils/hotComponent.tsx +49 -0
- package/website/src/website/utils/lzmaCompressor.ts +39 -0
- package/website/src/website/utils/ref.ts +39 -0
- package/website/src/website/utils/types.d.ts +28 -0
- package/website/src/website/utils/utils.ts +58 -0
- package/website/static/monarch/monarch-34px.png +0 -0
- package/website/static/monarch/monarch.css +297 -0
- package/website/static/monarch/monarch.js +178 -0
- package/website/static/monarch-static.html +5345 -0
- package/website/tsconfig.json +16 -0
- package/website/tslint.json +6 -0
- package/website/typedoc/tsconfig.json +8 -0
- package/website/typedoc/typedoc.json +11 -0
- package/website/vscode-web-editors.tgz +0 -0
- package/website/webpack.config.ts +151 -0
- package/website/yarn.lock +3612 -0
|
@@ -0,0 +1,1063 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/* To generate an initial baseline from a .bicep file, uncomment:
|
|
7
|
+
|
|
8
|
+
import { testTokenization } from '../test/testRunner';
|
|
9
|
+
import { readFileSync } from 'fs';
|
|
10
|
+
|
|
11
|
+
const lines = readFileSync('/Users/ant/Code/bicep/src/monarch/test/baselines/basic.bicep', { encoding: 'utf-8' }).split(/\r?\n/);
|
|
12
|
+
|
|
13
|
+
testTokenization('bicep', [
|
|
14
|
+
lines.map(line => ({
|
|
15
|
+
line,
|
|
16
|
+
tokens: [],
|
|
17
|
+
}))
|
|
18
|
+
]);
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { testTokenization } from '../test/testRunner';
|
|
22
|
+
|
|
23
|
+
testTokenization('bicep', [
|
|
24
|
+
[
|
|
25
|
+
// https://github.com/Azure/bicep/blob/bc9fc9ce09d1d8da21144d84db01655e042e74bf/src/monarch/test/baselines/comments.bicep
|
|
26
|
+
{
|
|
27
|
+
line: '',
|
|
28
|
+
tokens: []
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
line: "resource test 'Microsoft.AAD/domainServices@2021-03-01' = {",
|
|
32
|
+
tokens: [
|
|
33
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
34
|
+
{ startIndex: 8, type: '' },
|
|
35
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
36
|
+
{ startIndex: 13, type: '' },
|
|
37
|
+
{ startIndex: 14, type: 'string.quote.bicep' },
|
|
38
|
+
{ startIndex: 15, type: 'string.bicep' },
|
|
39
|
+
{ startIndex: 55, type: '' }
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
line: " name: 'asdfsdf'",
|
|
44
|
+
tokens: [
|
|
45
|
+
{ startIndex: 0, type: '' },
|
|
46
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
47
|
+
{ startIndex: 6, type: '' },
|
|
48
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
49
|
+
{ startIndex: 9, type: 'string.bicep' }
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
line: ' // this is a comment',
|
|
54
|
+
tokens: [
|
|
55
|
+
{ startIndex: 0, type: '' },
|
|
56
|
+
{ startIndex: 2, type: 'comment.bicep' }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
line: ' properties: {/*comment*/',
|
|
61
|
+
tokens: [
|
|
62
|
+
{ startIndex: 0, type: '' },
|
|
63
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
64
|
+
{ startIndex: 12, type: '' },
|
|
65
|
+
{ startIndex: 15, type: 'comment.bicep' }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
line: " domainConfigurationType/*comment*/:/*comment*/'as//notacomment!d/* also not a comment */fsdf'// test!/*",
|
|
70
|
+
tokens: [
|
|
71
|
+
{ startIndex: 0, type: '' },
|
|
72
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
73
|
+
{ startIndex: 27, type: 'comment.bicep' },
|
|
74
|
+
{ startIndex: 38, type: '' },
|
|
75
|
+
{ startIndex: 39, type: 'comment.bicep' },
|
|
76
|
+
{ startIndex: 50, type: 'string.quote.bicep' },
|
|
77
|
+
{ startIndex: 51, type: 'string.bicep' },
|
|
78
|
+
{ startIndex: 97, type: 'comment.bicep' }
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
line: ' /* multi',
|
|
83
|
+
tokens: [
|
|
84
|
+
{ startIndex: 0, type: '' },
|
|
85
|
+
{ startIndex: 4, type: 'comment.bicep' }
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
line: ' line',
|
|
90
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
line: ' comment */ domainName: /*',
|
|
94
|
+
tokens: [
|
|
95
|
+
{ startIndex: 0, type: 'comment.bicep' },
|
|
96
|
+
{ startIndex: 14, type: '' },
|
|
97
|
+
{ startIndex: 15, type: 'identifier.bicep' },
|
|
98
|
+
{ startIndex: 25, type: '' },
|
|
99
|
+
{ startIndex: 27, type: 'comment.bicep' }
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
line: " asdf*/'test'",
|
|
104
|
+
tokens: [
|
|
105
|
+
{ startIndex: 0, type: 'comment.bicep' },
|
|
106
|
+
{ startIndex: 10, type: 'string.quote.bicep' },
|
|
107
|
+
{ startIndex: 11, type: 'string.bicep' }
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
line: ' // comment',
|
|
112
|
+
tokens: [
|
|
113
|
+
{ startIndex: 0, type: '' },
|
|
114
|
+
{ startIndex: 4, type: 'comment.bicep' }
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
line: ' }',
|
|
119
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
line: '}',
|
|
123
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
line: '',
|
|
127
|
+
tokens: []
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
// https://github.com/Azure/bicep/blob/bc9fc9ce09d1d8da21144d84db01655e042e74bf/src/monarch/test/baselines/basic.bicep
|
|
132
|
+
{
|
|
133
|
+
line: '// test',
|
|
134
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
line: '/* test 2 */',
|
|
138
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
line: "targetScope = 'resourceGroup'",
|
|
142
|
+
tokens: [
|
|
143
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
144
|
+
{ startIndex: 11, type: '' },
|
|
145
|
+
{ startIndex: 14, type: 'string.quote.bicep' },
|
|
146
|
+
{ startIndex: 15, type: 'string.bicep' }
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
line: '',
|
|
151
|
+
tokens: []
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
line: "resource avcsdd 'Microsoft.Cache/redis@2020-06-01' = { // line comment",
|
|
155
|
+
tokens: [
|
|
156
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
157
|
+
{ startIndex: 8, type: '' },
|
|
158
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
159
|
+
{ startIndex: 15, type: '' },
|
|
160
|
+
{ startIndex: 16, type: 'string.quote.bicep' },
|
|
161
|
+
{ startIndex: 17, type: 'string.bicep' },
|
|
162
|
+
{ startIndex: 50, type: '' },
|
|
163
|
+
{ startIndex: 55, type: 'comment.bicep' }
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
line: " name: 'def' /* block",
|
|
168
|
+
tokens: [
|
|
169
|
+
{ startIndex: 0, type: '' },
|
|
170
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
171
|
+
{ startIndex: 6, type: '' },
|
|
172
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
173
|
+
{ startIndex: 9, type: 'string.bicep' },
|
|
174
|
+
{ startIndex: 13, type: '' },
|
|
175
|
+
{ startIndex: 14, type: 'comment.bicep' }
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
line: ' comment */',
|
|
180
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
line: " location: 'somewhere'",
|
|
184
|
+
tokens: [
|
|
185
|
+
{ startIndex: 0, type: '' },
|
|
186
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
187
|
+
{ startIndex: 10, type: '' },
|
|
188
|
+
{ startIndex: 12, type: 'string.quote.bicep' },
|
|
189
|
+
{ startIndex: 13, type: 'string.bicep' }
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
line: ' properties: {',
|
|
194
|
+
tokens: [
|
|
195
|
+
{ startIndex: 0, type: '' },
|
|
196
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
197
|
+
{ startIndex: 12, type: '' }
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
line: ' sku: {',
|
|
202
|
+
tokens: [
|
|
203
|
+
{ startIndex: 0, type: '' },
|
|
204
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
205
|
+
{ startIndex: 7, type: '' }
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
line: ' capacity: 123',
|
|
210
|
+
tokens: [
|
|
211
|
+
{ startIndex: 0, type: '' },
|
|
212
|
+
{ startIndex: 6, type: 'identifier.bicep' },
|
|
213
|
+
{ startIndex: 14, type: '' },
|
|
214
|
+
{ startIndex: 16, type: 'number.bicep' }
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
line: " family: 'C'",
|
|
219
|
+
tokens: [
|
|
220
|
+
{ startIndex: 0, type: '' },
|
|
221
|
+
{ startIndex: 6, type: 'identifier.bicep' },
|
|
222
|
+
{ startIndex: 12, type: '' },
|
|
223
|
+
{ startIndex: 14, type: 'string.quote.bicep' },
|
|
224
|
+
{ startIndex: 15, type: 'string.bicep' }
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
line: " name: 'Basic'",
|
|
229
|
+
tokens: [
|
|
230
|
+
{ startIndex: 0, type: '' },
|
|
231
|
+
{ startIndex: 6, type: 'identifier.bicep' },
|
|
232
|
+
{ startIndex: 10, type: '' },
|
|
233
|
+
{ startIndex: 12, type: 'string.quote.bicep' },
|
|
234
|
+
{ startIndex: 13, type: 'string.bicep' }
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
line: ' }',
|
|
239
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
line: ' }',
|
|
243
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
line: '}',
|
|
247
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
line: '',
|
|
251
|
+
tokens: []
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
line: 'var secretsObject = {',
|
|
255
|
+
tokens: [
|
|
256
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
257
|
+
{ startIndex: 3, type: '' },
|
|
258
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
259
|
+
{ startIndex: 17, type: '' }
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
line: ' secrets: [',
|
|
264
|
+
tokens: [
|
|
265
|
+
{ startIndex: 0, type: '' },
|
|
266
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
267
|
+
{ startIndex: 9, type: '' }
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
line: " 'abc'",
|
|
272
|
+
tokens: [
|
|
273
|
+
{ startIndex: 0, type: '' },
|
|
274
|
+
{ startIndex: 4, type: 'string.quote.bicep' },
|
|
275
|
+
{ startIndex: 5, type: 'string.bicep' }
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
line: " 'def'",
|
|
280
|
+
tokens: [
|
|
281
|
+
{ startIndex: 0, type: '' },
|
|
282
|
+
{ startIndex: 4, type: 'string.quote.bicep' },
|
|
283
|
+
{ startIndex: 5, type: 'string.bicep' }
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
line: ' ]',
|
|
288
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
line: '}',
|
|
292
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
line: '',
|
|
296
|
+
tokens: []
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
line: "var parent = 'abc'",
|
|
300
|
+
tokens: [
|
|
301
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
302
|
+
{ startIndex: 3, type: '' },
|
|
303
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
304
|
+
{ startIndex: 10, type: '' },
|
|
305
|
+
{ startIndex: 13, type: 'string.quote.bicep' },
|
|
306
|
+
{ startIndex: 14, type: 'string.bicep' }
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
line: '',
|
|
311
|
+
tokens: []
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
line: "resource secrets0 'Microsoft.KeyVault/vaults/secrets@2018-02-14' = {",
|
|
315
|
+
tokens: [
|
|
316
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
317
|
+
{ startIndex: 8, type: '' },
|
|
318
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
319
|
+
{ startIndex: 17, type: '' },
|
|
320
|
+
{ startIndex: 18, type: 'string.quote.bicep' },
|
|
321
|
+
{ startIndex: 19, type: 'string.bicep' },
|
|
322
|
+
{ startIndex: 64, type: '' }
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
line: " name: '${parent}/child'",
|
|
327
|
+
tokens: [
|
|
328
|
+
{ startIndex: 0, type: '' },
|
|
329
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
330
|
+
{ startIndex: 6, type: '' },
|
|
331
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
332
|
+
{ startIndex: 9, type: 'delimiter.bracket.bicep' },
|
|
333
|
+
{ startIndex: 11, type: 'identifier.bicep' },
|
|
334
|
+
{ startIndex: 17, type: 'delimiter.bracket.bicep' },
|
|
335
|
+
{ startIndex: 18, type: 'string.bicep' }
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
line: ' properties: {',
|
|
340
|
+
tokens: [
|
|
341
|
+
{ startIndex: 0, type: '' },
|
|
342
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
343
|
+
{ startIndex: 12, type: '' }
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
line: ' attributes: {',
|
|
348
|
+
tokens: [
|
|
349
|
+
{ startIndex: 0, type: '' },
|
|
350
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
351
|
+
{ startIndex: 14, type: '' }
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
line: ' enabled: true',
|
|
356
|
+
tokens: [
|
|
357
|
+
{ startIndex: 0, type: '' },
|
|
358
|
+
{ startIndex: 6, type: 'identifier.bicep' },
|
|
359
|
+
{ startIndex: 13, type: '' },
|
|
360
|
+
{ startIndex: 15, type: 'keyword.bicep' }
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
line: ' }',
|
|
365
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
line: ' }',
|
|
369
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
line: '}',
|
|
373
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
line: "resource secrets1 'Microsoft.KeyVault/vaults/secrets@2018-02-14' = if (secrets0.id == '') {",
|
|
377
|
+
tokens: [
|
|
378
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
379
|
+
{ startIndex: 8, type: '' },
|
|
380
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
381
|
+
{ startIndex: 17, type: '' },
|
|
382
|
+
{ startIndex: 18, type: 'string.quote.bicep' },
|
|
383
|
+
{ startIndex: 19, type: 'string.bicep' },
|
|
384
|
+
{ startIndex: 64, type: '' },
|
|
385
|
+
{ startIndex: 67, type: 'keyword.bicep' },
|
|
386
|
+
{ startIndex: 69, type: '' },
|
|
387
|
+
{ startIndex: 71, type: 'identifier.bicep' },
|
|
388
|
+
{ startIndex: 79, type: '' },
|
|
389
|
+
{ startIndex: 80, type: 'identifier.bicep' },
|
|
390
|
+
{ startIndex: 82, type: '' },
|
|
391
|
+
{ startIndex: 86, type: 'string.quote.bicep' },
|
|
392
|
+
{ startIndex: 87, type: 'string.bicep' },
|
|
393
|
+
{ startIndex: 88, type: '' }
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
line: " name: '${parent}/child1'",
|
|
398
|
+
tokens: [
|
|
399
|
+
{ startIndex: 0, type: '' },
|
|
400
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
401
|
+
{ startIndex: 6, type: '' },
|
|
402
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
403
|
+
{ startIndex: 9, type: 'delimiter.bracket.bicep' },
|
|
404
|
+
{ startIndex: 11, type: 'identifier.bicep' },
|
|
405
|
+
{ startIndex: 17, type: 'delimiter.bracket.bicep' },
|
|
406
|
+
{ startIndex: 18, type: 'string.bicep' }
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
line: ' properties: {',
|
|
411
|
+
tokens: [
|
|
412
|
+
{ startIndex: 0, type: '' },
|
|
413
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
414
|
+
{ startIndex: 12, type: '' }
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
line: ' }',
|
|
419
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
line: '}',
|
|
423
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
line: '',
|
|
427
|
+
tokens: []
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
line: "resource secrets2 'Microsoft.KeyVault/vaults/secrets@2018-02-14' = [for secret in secretsObject.secrets: {",
|
|
431
|
+
tokens: [
|
|
432
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
433
|
+
{ startIndex: 8, type: '' },
|
|
434
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
435
|
+
{ startIndex: 17, type: '' },
|
|
436
|
+
{ startIndex: 18, type: 'string.quote.bicep' },
|
|
437
|
+
{ startIndex: 19, type: 'string.bicep' },
|
|
438
|
+
{ startIndex: 64, type: '' },
|
|
439
|
+
{ startIndex: 68, type: 'keyword.bicep' },
|
|
440
|
+
{ startIndex: 71, type: '' },
|
|
441
|
+
{ startIndex: 72, type: 'identifier.bicep' },
|
|
442
|
+
{ startIndex: 78, type: '' },
|
|
443
|
+
{ startIndex: 79, type: 'keyword.bicep' },
|
|
444
|
+
{ startIndex: 81, type: '' },
|
|
445
|
+
{ startIndex: 82, type: 'identifier.bicep' },
|
|
446
|
+
{ startIndex: 95, type: '' },
|
|
447
|
+
{ startIndex: 96, type: 'identifier.bicep' },
|
|
448
|
+
{ startIndex: 103, type: '' }
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
line: " name: 'asdfsd/forloop'",
|
|
453
|
+
tokens: [
|
|
454
|
+
{ startIndex: 0, type: '' },
|
|
455
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
456
|
+
{ startIndex: 6, type: '' },
|
|
457
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
458
|
+
{ startIndex: 9, type: 'string.bicep' }
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
line: ' properties: {}',
|
|
463
|
+
tokens: [
|
|
464
|
+
{ startIndex: 0, type: '' },
|
|
465
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
466
|
+
{ startIndex: 12, type: '' }
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
line: '}]',
|
|
471
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
line: '',
|
|
475
|
+
tokens: []
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
line: "resource secrets3 'Microsoft.KeyVault/vaults/secrets@2018-02-14' = [for secret in secretsObject.secrets: {",
|
|
479
|
+
tokens: [
|
|
480
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
481
|
+
{ startIndex: 8, type: '' },
|
|
482
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
483
|
+
{ startIndex: 17, type: '' },
|
|
484
|
+
{ startIndex: 18, type: 'string.quote.bicep' },
|
|
485
|
+
{ startIndex: 19, type: 'string.bicep' },
|
|
486
|
+
{ startIndex: 64, type: '' },
|
|
487
|
+
{ startIndex: 68, type: 'keyword.bicep' },
|
|
488
|
+
{ startIndex: 71, type: '' },
|
|
489
|
+
{ startIndex: 72, type: 'identifier.bicep' },
|
|
490
|
+
{ startIndex: 78, type: '' },
|
|
491
|
+
{ startIndex: 79, type: 'keyword.bicep' },
|
|
492
|
+
{ startIndex: 81, type: '' },
|
|
493
|
+
{ startIndex: 82, type: 'identifier.bicep' },
|
|
494
|
+
{ startIndex: 95, type: '' },
|
|
495
|
+
{ startIndex: 96, type: 'identifier.bicep' },
|
|
496
|
+
{ startIndex: 103, type: '' }
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
line: " name: 'jk${true}asdf${23}.\\${SDF${secretsObject['secrets'][1]}'",
|
|
501
|
+
tokens: [
|
|
502
|
+
{ startIndex: 0, type: '' },
|
|
503
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
504
|
+
{ startIndex: 6, type: '' },
|
|
505
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
506
|
+
{ startIndex: 9, type: 'string.bicep' },
|
|
507
|
+
{ startIndex: 11, type: 'delimiter.bracket.bicep' },
|
|
508
|
+
{ startIndex: 13, type: 'keyword.bicep' },
|
|
509
|
+
{ startIndex: 17, type: 'delimiter.bracket.bicep' },
|
|
510
|
+
{ startIndex: 18, type: 'string.bicep' },
|
|
511
|
+
{ startIndex: 22, type: 'delimiter.bracket.bicep' },
|
|
512
|
+
{ startIndex: 24, type: 'number.bicep' },
|
|
513
|
+
{ startIndex: 26, type: 'delimiter.bracket.bicep' },
|
|
514
|
+
{ startIndex: 27, type: 'string.bicep' },
|
|
515
|
+
{ startIndex: 28, type: 'string.escape.bicep' },
|
|
516
|
+
{ startIndex: 31, type: 'string.bicep' },
|
|
517
|
+
{ startIndex: 34, type: 'delimiter.bracket.bicep' },
|
|
518
|
+
{ startIndex: 36, type: 'identifier.bicep' },
|
|
519
|
+
{ startIndex: 49, type: '' },
|
|
520
|
+
{ startIndex: 50, type: 'string.quote.bicep' },
|
|
521
|
+
{ startIndex: 51, type: 'string.bicep' },
|
|
522
|
+
{ startIndex: 59, type: '' },
|
|
523
|
+
{ startIndex: 61, type: 'number.bicep' },
|
|
524
|
+
{ startIndex: 62, type: '' },
|
|
525
|
+
{ startIndex: 63, type: 'delimiter.bracket.bicep' },
|
|
526
|
+
{ startIndex: 64, type: 'string.bicep' }
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
line: ' properties: {',
|
|
531
|
+
tokens: [
|
|
532
|
+
{ startIndex: 0, type: '' },
|
|
533
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
534
|
+
{ startIndex: 12, type: '' }
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
line: ' }',
|
|
539
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
line: '}]',
|
|
543
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
line: '',
|
|
547
|
+
tokens: []
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
line: "resource secrets4 'Microsoft.KeyVault/vaults/secrets@2018-02-14' = [for secret in secretsObject.secrets: if (true) {",
|
|
551
|
+
tokens: [
|
|
552
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
553
|
+
{ startIndex: 8, type: '' },
|
|
554
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
555
|
+
{ startIndex: 17, type: '' },
|
|
556
|
+
{ startIndex: 18, type: 'string.quote.bicep' },
|
|
557
|
+
{ startIndex: 19, type: 'string.bicep' },
|
|
558
|
+
{ startIndex: 64, type: '' },
|
|
559
|
+
{ startIndex: 68, type: 'keyword.bicep' },
|
|
560
|
+
{ startIndex: 71, type: '' },
|
|
561
|
+
{ startIndex: 72, type: 'identifier.bicep' },
|
|
562
|
+
{ startIndex: 78, type: '' },
|
|
563
|
+
{ startIndex: 79, type: 'keyword.bicep' },
|
|
564
|
+
{ startIndex: 81, type: '' },
|
|
565
|
+
{ startIndex: 82, type: 'identifier.bicep' },
|
|
566
|
+
{ startIndex: 95, type: '' },
|
|
567
|
+
{ startIndex: 96, type: 'identifier.bicep' },
|
|
568
|
+
{ startIndex: 103, type: '' },
|
|
569
|
+
{ startIndex: 105, type: 'keyword.bicep' },
|
|
570
|
+
{ startIndex: 107, type: '' },
|
|
571
|
+
{ startIndex: 109, type: 'keyword.bicep' },
|
|
572
|
+
{ startIndex: 113, type: '' }
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
line: " 'name': 'test'",
|
|
577
|
+
tokens: [
|
|
578
|
+
{ startIndex: 0, type: '' },
|
|
579
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
580
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
581
|
+
{ startIndex: 8, type: '' },
|
|
582
|
+
{ startIndex: 10, type: 'string.quote.bicep' },
|
|
583
|
+
{ startIndex: 11, type: 'string.bicep' }
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
line: ' properties:{',
|
|
588
|
+
tokens: [
|
|
589
|
+
{ startIndex: 0, type: '' },
|
|
590
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
591
|
+
{ startIndex: 12, type: '' }
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
line: ' }',
|
|
596
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
line: '}]',
|
|
600
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
line: '',
|
|
604
|
+
tokens: []
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
line: "resource virtualNetwork 'Microsoft.Network/virtualNetworks@2020-08-01' existing = {",
|
|
608
|
+
tokens: [
|
|
609
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
610
|
+
{ startIndex: 8, type: '' },
|
|
611
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
612
|
+
{ startIndex: 23, type: '' },
|
|
613
|
+
{ startIndex: 24, type: 'string.quote.bicep' },
|
|
614
|
+
{ startIndex: 25, type: 'string.bicep' },
|
|
615
|
+
{ startIndex: 70, type: '' },
|
|
616
|
+
{ startIndex: 71, type: 'keyword.bicep' },
|
|
617
|
+
{ startIndex: 79, type: '' }
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
line: " name: 'myVnet'",
|
|
622
|
+
tokens: [
|
|
623
|
+
{ startIndex: 0, type: '' },
|
|
624
|
+
{ startIndex: 2, type: 'identifier.bicep' },
|
|
625
|
+
{ startIndex: 6, type: '' },
|
|
626
|
+
{ startIndex: 8, type: 'string.quote.bicep' },
|
|
627
|
+
{ startIndex: 9, type: 'string.bicep' }
|
|
628
|
+
]
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
line: '}',
|
|
632
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
line: '',
|
|
636
|
+
tokens: []
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
line: "var multi = ''''''",
|
|
640
|
+
tokens: [
|
|
641
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
642
|
+
{ startIndex: 3, type: '' },
|
|
643
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
644
|
+
{ startIndex: 9, type: '' },
|
|
645
|
+
{ startIndex: 12, type: 'string.quote.bicep' }
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
line: "var multi2 = '''",
|
|
650
|
+
tokens: [
|
|
651
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
652
|
+
{ startIndex: 3, type: '' },
|
|
653
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
654
|
+
{ startIndex: 10, type: '' },
|
|
655
|
+
{ startIndex: 13, type: 'string.quote.bicep' }
|
|
656
|
+
]
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
line: ' hello!',
|
|
660
|
+
tokens: [{ startIndex: 0, type: 'string.bicep' }]
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
line: "'''",
|
|
664
|
+
tokens: [{ startIndex: 0, type: 'string.quote.bicep' }]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
line: '',
|
|
668
|
+
tokens: []
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
line: 'var func = resourceGroup().location',
|
|
672
|
+
tokens: [
|
|
673
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
674
|
+
{ startIndex: 3, type: '' },
|
|
675
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
676
|
+
{ startIndex: 8, type: '' },
|
|
677
|
+
{ startIndex: 11, type: 'identifier.bicep' },
|
|
678
|
+
{ startIndex: 24, type: '' },
|
|
679
|
+
{ startIndex: 27, type: 'identifier.bicep' }
|
|
680
|
+
]
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
line: "var func2 = reference('Microsoft.KeyVault/vaults/secrets', func)",
|
|
684
|
+
tokens: [
|
|
685
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
686
|
+
{ startIndex: 3, type: '' },
|
|
687
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
688
|
+
{ startIndex: 9, type: '' },
|
|
689
|
+
{ startIndex: 12, type: 'identifier.bicep' },
|
|
690
|
+
{ startIndex: 21, type: '' },
|
|
691
|
+
{ startIndex: 22, type: 'string.quote.bicep' },
|
|
692
|
+
{ startIndex: 23, type: 'string.bicep' },
|
|
693
|
+
{ startIndex: 57, type: '' },
|
|
694
|
+
{ startIndex: 59, type: 'identifier.bicep' },
|
|
695
|
+
{ startIndex: 63, type: '' }
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
line: 'var func3 = union({',
|
|
700
|
+
tokens: [
|
|
701
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
702
|
+
{ startIndex: 3, type: '' },
|
|
703
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
704
|
+
{ startIndex: 9, type: '' },
|
|
705
|
+
{ startIndex: 12, type: 'identifier.bicep' },
|
|
706
|
+
{ startIndex: 17, type: '' }
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
line: " 'abc': resourceGroup().id",
|
|
711
|
+
tokens: [
|
|
712
|
+
{ startIndex: 0, type: '' },
|
|
713
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
714
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
715
|
+
{ startIndex: 7, type: '' },
|
|
716
|
+
{ startIndex: 9, type: 'identifier.bicep' },
|
|
717
|
+
{ startIndex: 22, type: '' },
|
|
718
|
+
{ startIndex: 25, type: 'identifier.bicep' }
|
|
719
|
+
]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
line: '}, {',
|
|
723
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
line: " 'def': 'test'",
|
|
727
|
+
tokens: [
|
|
728
|
+
{ startIndex: 0, type: '' },
|
|
729
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
730
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
731
|
+
{ startIndex: 7, type: '' },
|
|
732
|
+
{ startIndex: 9, type: 'string.quote.bicep' },
|
|
733
|
+
{ startIndex: 10, type: 'string.bicep' }
|
|
734
|
+
]
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
line: '})',
|
|
738
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
line: '',
|
|
742
|
+
tokens: []
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
line: '@allowed([',
|
|
746
|
+
tokens: [
|
|
747
|
+
{ startIndex: 0, type: '' },
|
|
748
|
+
{ startIndex: 1, type: 'identifier.bicep' },
|
|
749
|
+
{ startIndex: 8, type: '' }
|
|
750
|
+
]
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
line: " 'hello!'",
|
|
754
|
+
tokens: [
|
|
755
|
+
{ startIndex: 0, type: '' },
|
|
756
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
757
|
+
{ startIndex: 3, type: 'string.bicep' }
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
line: " 'hi!'",
|
|
762
|
+
tokens: [
|
|
763
|
+
{ startIndex: 0, type: '' },
|
|
764
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
765
|
+
{ startIndex: 3, type: 'string.bicep' }
|
|
766
|
+
]
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
line: '])',
|
|
770
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
line: '@secure()',
|
|
774
|
+
tokens: [
|
|
775
|
+
{ startIndex: 0, type: '' },
|
|
776
|
+
{ startIndex: 1, type: 'identifier.bicep' },
|
|
777
|
+
{ startIndex: 7, type: '' }
|
|
778
|
+
]
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
line: "param secureParam string = 'hello!'",
|
|
782
|
+
tokens: [
|
|
783
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
784
|
+
{ startIndex: 5, type: '' },
|
|
785
|
+
{ startIndex: 6, type: 'identifier.bicep' },
|
|
786
|
+
{ startIndex: 17, type: '' },
|
|
787
|
+
{ startIndex: 18, type: 'identifier.bicep' },
|
|
788
|
+
{ startIndex: 24, type: '' },
|
|
789
|
+
{ startIndex: 27, type: 'string.quote.bicep' },
|
|
790
|
+
{ startIndex: 28, type: 'string.bicep' }
|
|
791
|
+
]
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
line: '',
|
|
795
|
+
tokens: []
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
line: "var emojis = '💪😊😈🍕☕'",
|
|
799
|
+
tokens: [
|
|
800
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
801
|
+
{ startIndex: 3, type: '' },
|
|
802
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
803
|
+
{ startIndex: 10, type: '' },
|
|
804
|
+
{ startIndex: 13, type: 'string.quote.bicep' },
|
|
805
|
+
{ startIndex: 14, type: 'string.bicep' }
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
line: "var ninjaCat = '🐱👤'",
|
|
810
|
+
tokens: [
|
|
811
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
812
|
+
{ startIndex: 3, type: '' },
|
|
813
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
814
|
+
{ startIndex: 12, type: '' },
|
|
815
|
+
{ startIndex: 15, type: 'string.quote.bicep' },
|
|
816
|
+
{ startIndex: 16, type: 'string.bicep' }
|
|
817
|
+
]
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
line: '',
|
|
821
|
+
tokens: []
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
line: '/* block */',
|
|
825
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
line: '',
|
|
829
|
+
tokens: []
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
line: '/*',
|
|
833
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
line: '朝辞白帝彩云间',
|
|
837
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
line: '千里江陵一日还',
|
|
841
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
line: '两岸猿声啼不住',
|
|
845
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
line: '轻舟已过万重山',
|
|
849
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
line: '*/',
|
|
853
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
line: '',
|
|
857
|
+
tokens: []
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
line: '// greek letters in comment: Π π Φ φ plus emoji 😎',
|
|
861
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
line: 'var variousAlphabets = {',
|
|
865
|
+
tokens: [
|
|
866
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
867
|
+
{ startIndex: 3, type: '' },
|
|
868
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
869
|
+
{ startIndex: 20, type: '' }
|
|
870
|
+
]
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
line: " 'α': 'α'",
|
|
874
|
+
tokens: [
|
|
875
|
+
{ startIndex: 0, type: '' },
|
|
876
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
877
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
878
|
+
{ startIndex: 5, type: '' },
|
|
879
|
+
{ startIndex: 7, type: 'string.quote.bicep' },
|
|
880
|
+
{ startIndex: 8, type: 'string.bicep' }
|
|
881
|
+
]
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
line: " 'Ωω': [",
|
|
885
|
+
tokens: [
|
|
886
|
+
{ startIndex: 0, type: '' },
|
|
887
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
888
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
889
|
+
{ startIndex: 6, type: '' }
|
|
890
|
+
]
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
line: " 'Θμ'",
|
|
894
|
+
tokens: [
|
|
895
|
+
{ startIndex: 0, type: '' },
|
|
896
|
+
{ startIndex: 4, type: 'string.quote.bicep' },
|
|
897
|
+
{ startIndex: 5, type: 'string.bicep' }
|
|
898
|
+
]
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
line: ' ]',
|
|
902
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
line: " 'ążźćłóę': 'Cześć!'",
|
|
906
|
+
tokens: [
|
|
907
|
+
{ startIndex: 0, type: '' },
|
|
908
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
909
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
910
|
+
{ startIndex: 11, type: '' },
|
|
911
|
+
{ startIndex: 13, type: 'string.quote.bicep' },
|
|
912
|
+
{ startIndex: 14, type: 'string.bicep' }
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
line: " 'áéóúñü': '¡Hola!'",
|
|
917
|
+
tokens: [
|
|
918
|
+
{ startIndex: 0, type: '' },
|
|
919
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
920
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
921
|
+
{ startIndex: 10, type: '' },
|
|
922
|
+
{ startIndex: 12, type: 'string.quote.bicep' },
|
|
923
|
+
{ startIndex: 13, type: 'string.bicep' }
|
|
924
|
+
]
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
line: '',
|
|
928
|
+
tokens: []
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
line: " '二头肌': '二头肌'",
|
|
932
|
+
tokens: [
|
|
933
|
+
{ startIndex: 0, type: '' },
|
|
934
|
+
{ startIndex: 2, type: 'string.quote.bicep' },
|
|
935
|
+
{ startIndex: 3, type: 'string.bicep' },
|
|
936
|
+
{ startIndex: 7, type: '' },
|
|
937
|
+
{ startIndex: 9, type: 'string.quote.bicep' },
|
|
938
|
+
{ startIndex: 10, type: 'string.bicep' }
|
|
939
|
+
]
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
line: '}',
|
|
943
|
+
tokens: [{ startIndex: 0, type: '' }]
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
line: '',
|
|
947
|
+
tokens: []
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
line: "output concatUnicodeStrings string = concat('Θμ', '二头肌', 'α')",
|
|
951
|
+
tokens: [
|
|
952
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
953
|
+
{ startIndex: 6, type: '' },
|
|
954
|
+
{ startIndex: 7, type: 'identifier.bicep' },
|
|
955
|
+
{ startIndex: 27, type: '' },
|
|
956
|
+
{ startIndex: 28, type: 'identifier.bicep' },
|
|
957
|
+
{ startIndex: 34, type: '' },
|
|
958
|
+
{ startIndex: 37, type: 'identifier.bicep' },
|
|
959
|
+
{ startIndex: 43, type: '' },
|
|
960
|
+
{ startIndex: 44, type: 'string.quote.bicep' },
|
|
961
|
+
{ startIndex: 45, type: 'string.bicep' },
|
|
962
|
+
{ startIndex: 48, type: '' },
|
|
963
|
+
{ startIndex: 50, type: 'string.quote.bicep' },
|
|
964
|
+
{ startIndex: 51, type: 'string.bicep' },
|
|
965
|
+
{ startIndex: 55, type: '' },
|
|
966
|
+
{ startIndex: 57, type: 'string.quote.bicep' },
|
|
967
|
+
{ startIndex: 58, type: 'string.bicep' },
|
|
968
|
+
{ startIndex: 60, type: '' }
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
line: "output interpolateUnicodeStrings string = 'Θμ二${emojis}头肌${ninjaCat}α'",
|
|
973
|
+
tokens: [
|
|
974
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
975
|
+
{ startIndex: 6, type: '' },
|
|
976
|
+
{ startIndex: 7, type: 'identifier.bicep' },
|
|
977
|
+
{ startIndex: 32, type: '' },
|
|
978
|
+
{ startIndex: 33, type: 'identifier.bicep' },
|
|
979
|
+
{ startIndex: 39, type: '' },
|
|
980
|
+
{ startIndex: 42, type: 'string.quote.bicep' },
|
|
981
|
+
{ startIndex: 43, type: 'string.bicep' },
|
|
982
|
+
{ startIndex: 46, type: 'delimiter.bracket.bicep' },
|
|
983
|
+
{ startIndex: 48, type: 'identifier.bicep' },
|
|
984
|
+
{ startIndex: 54, type: 'delimiter.bracket.bicep' },
|
|
985
|
+
{ startIndex: 55, type: 'string.bicep' },
|
|
986
|
+
{ startIndex: 57, type: 'delimiter.bracket.bicep' },
|
|
987
|
+
{ startIndex: 59, type: 'identifier.bicep' },
|
|
988
|
+
{ startIndex: 67, type: 'delimiter.bracket.bicep' },
|
|
989
|
+
{ startIndex: 68, type: 'string.bicep' }
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
line: '',
|
|
994
|
+
tokens: []
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
line: '// all of these should produce the same string',
|
|
998
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
line: "var surrogate_char = '𐐷'",
|
|
1002
|
+
tokens: [
|
|
1003
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
1004
|
+
{ startIndex: 3, type: '' },
|
|
1005
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
1006
|
+
{ startIndex: 18, type: '' },
|
|
1007
|
+
{ startIndex: 26, type: 'string.quote.bicep' },
|
|
1008
|
+
{ startIndex: 27, type: 'string.bicep' }
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
line: "var surrogate_codepoint = '\\u{10437}'",
|
|
1013
|
+
tokens: [
|
|
1014
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
1015
|
+
{ startIndex: 3, type: '' },
|
|
1016
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
1017
|
+
{ startIndex: 23, type: '' },
|
|
1018
|
+
{ startIndex: 26, type: 'string.quote.bicep' },
|
|
1019
|
+
{ startIndex: 27, type: 'string.escape.bicep' },
|
|
1020
|
+
{ startIndex: 36, type: 'string.bicep' }
|
|
1021
|
+
]
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
line: "var surrogate_pairs = '\\u{D801}\\u{DC37}'",
|
|
1025
|
+
tokens: [
|
|
1026
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
1027
|
+
{ startIndex: 3, type: '' },
|
|
1028
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
1029
|
+
{ startIndex: 19, type: '' },
|
|
1030
|
+
{ startIndex: 26, type: 'string.quote.bicep' },
|
|
1031
|
+
{ startIndex: 27, type: 'string.escape.bicep' },
|
|
1032
|
+
{ startIndex: 43, type: 'string.bicep' }
|
|
1033
|
+
]
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
line: '',
|
|
1037
|
+
tokens: []
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
line: '// ascii escapes',
|
|
1041
|
+
tokens: [{ startIndex: 0, type: 'comment.bicep' }]
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
line: "var hello = '❆ Hello\\u{20}World\\u{21} ❁'",
|
|
1045
|
+
tokens: [
|
|
1046
|
+
{ startIndex: 0, type: 'keyword.bicep' },
|
|
1047
|
+
{ startIndex: 3, type: '' },
|
|
1048
|
+
{ startIndex: 4, type: 'identifier.bicep' },
|
|
1049
|
+
{ startIndex: 9, type: '' },
|
|
1050
|
+
{ startIndex: 12, type: 'string.quote.bicep' },
|
|
1051
|
+
{ startIndex: 13, type: 'string.bicep' },
|
|
1052
|
+
{ startIndex: 20, type: 'string.escape.bicep' },
|
|
1053
|
+
{ startIndex: 26, type: 'string.bicep' },
|
|
1054
|
+
{ startIndex: 31, type: 'string.escape.bicep' },
|
|
1055
|
+
{ startIndex: 37, type: 'string.bicep' }
|
|
1056
|
+
]
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
line: '',
|
|
1060
|
+
tokens: []
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
]);
|