@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,1390 @@
|
|
|
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
|
+
/*---------------------------------------------------------------------------------------------
|
|
7
|
+
* ABAP Language
|
|
8
|
+
*
|
|
9
|
+
* Based on SAP ABAP Application Server 7.55
|
|
10
|
+
*
|
|
11
|
+
* Reference:
|
|
12
|
+
* https://help.sap.com/doc/abapdocu_755_index_htm/7.55/en-US/index.htm?file=abenabap_words.htm
|
|
13
|
+
* https://help.sap.com/doc/abapdocu_755_index_htm/7.55/en-US/index.htm?file=abenabap_index.htm
|
|
14
|
+
*
|
|
15
|
+
*--------------------------------------------------------------------------------------------*/
|
|
16
|
+
|
|
17
|
+
import type { languages } from '../../fillers/monaco-editor-core';
|
|
18
|
+
|
|
19
|
+
export const conf: languages.LanguageConfiguration = {
|
|
20
|
+
comments: {
|
|
21
|
+
lineComment: '*'
|
|
22
|
+
},
|
|
23
|
+
brackets: [
|
|
24
|
+
['[', ']'],
|
|
25
|
+
['(', ')']
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const language = <languages.IMonarchLanguage>{
|
|
30
|
+
defaultToken: 'invalid',
|
|
31
|
+
ignoreCase: true,
|
|
32
|
+
tokenPostfix: '.abap',
|
|
33
|
+
|
|
34
|
+
keywords: [
|
|
35
|
+
'abap-source',
|
|
36
|
+
'abbreviated',
|
|
37
|
+
'abstract',
|
|
38
|
+
'accept',
|
|
39
|
+
'accepting',
|
|
40
|
+
'according',
|
|
41
|
+
'activation',
|
|
42
|
+
'actual',
|
|
43
|
+
'add',
|
|
44
|
+
'add-corresponding',
|
|
45
|
+
'adjacent',
|
|
46
|
+
'after',
|
|
47
|
+
'alias',
|
|
48
|
+
'aliases',
|
|
49
|
+
'align',
|
|
50
|
+
'all',
|
|
51
|
+
'allocate',
|
|
52
|
+
'alpha',
|
|
53
|
+
'analysis',
|
|
54
|
+
'analyzer',
|
|
55
|
+
'and', // also an operator
|
|
56
|
+
'append',
|
|
57
|
+
'appendage',
|
|
58
|
+
'appending',
|
|
59
|
+
'application',
|
|
60
|
+
'archive',
|
|
61
|
+
'area',
|
|
62
|
+
'arithmetic',
|
|
63
|
+
'as',
|
|
64
|
+
'ascending',
|
|
65
|
+
'aspect',
|
|
66
|
+
'assert',
|
|
67
|
+
'assign',
|
|
68
|
+
'assigned',
|
|
69
|
+
'assigning',
|
|
70
|
+
'association',
|
|
71
|
+
'asynchronous',
|
|
72
|
+
'at',
|
|
73
|
+
'attributes',
|
|
74
|
+
'authority',
|
|
75
|
+
'authority-check',
|
|
76
|
+
'avg',
|
|
77
|
+
'back',
|
|
78
|
+
'background',
|
|
79
|
+
'backup',
|
|
80
|
+
'backward',
|
|
81
|
+
'badi',
|
|
82
|
+
'base',
|
|
83
|
+
'before',
|
|
84
|
+
'begin',
|
|
85
|
+
'between', // also an operator
|
|
86
|
+
'big',
|
|
87
|
+
'binary',
|
|
88
|
+
'bintohex',
|
|
89
|
+
'bit',
|
|
90
|
+
'black',
|
|
91
|
+
'blank',
|
|
92
|
+
'blanks',
|
|
93
|
+
'blob',
|
|
94
|
+
'block',
|
|
95
|
+
'blocks',
|
|
96
|
+
'blue',
|
|
97
|
+
'bound',
|
|
98
|
+
'boundaries',
|
|
99
|
+
'bounds',
|
|
100
|
+
'boxed',
|
|
101
|
+
'break-point',
|
|
102
|
+
'buffer',
|
|
103
|
+
'by',
|
|
104
|
+
'bypassing',
|
|
105
|
+
'byte',
|
|
106
|
+
'byte-order',
|
|
107
|
+
'call',
|
|
108
|
+
'calling',
|
|
109
|
+
'case',
|
|
110
|
+
'cast',
|
|
111
|
+
'casting',
|
|
112
|
+
'catch',
|
|
113
|
+
'center',
|
|
114
|
+
'centered',
|
|
115
|
+
'chain',
|
|
116
|
+
'chain-input',
|
|
117
|
+
'chain-request',
|
|
118
|
+
'change',
|
|
119
|
+
'changing',
|
|
120
|
+
'channels',
|
|
121
|
+
'character',
|
|
122
|
+
'char-to-hex',
|
|
123
|
+
'check',
|
|
124
|
+
'checkbox',
|
|
125
|
+
'ci_',
|
|
126
|
+
'circular',
|
|
127
|
+
'class',
|
|
128
|
+
'class-coding',
|
|
129
|
+
'class-data',
|
|
130
|
+
'class-events',
|
|
131
|
+
'class-methods',
|
|
132
|
+
'class-pool',
|
|
133
|
+
'cleanup',
|
|
134
|
+
'clear',
|
|
135
|
+
'client',
|
|
136
|
+
'clob',
|
|
137
|
+
'clock',
|
|
138
|
+
'close',
|
|
139
|
+
'coalesce',
|
|
140
|
+
'code',
|
|
141
|
+
'coding',
|
|
142
|
+
'col_background',
|
|
143
|
+
'col_group',
|
|
144
|
+
'col_heading',
|
|
145
|
+
'col_key',
|
|
146
|
+
'col_negative',
|
|
147
|
+
'col_normal',
|
|
148
|
+
'col_positive',
|
|
149
|
+
'col_total',
|
|
150
|
+
'collect',
|
|
151
|
+
'color',
|
|
152
|
+
'column',
|
|
153
|
+
'columns',
|
|
154
|
+
'comment',
|
|
155
|
+
'comments',
|
|
156
|
+
'commit',
|
|
157
|
+
'common',
|
|
158
|
+
'communication',
|
|
159
|
+
'comparing',
|
|
160
|
+
'component',
|
|
161
|
+
'components',
|
|
162
|
+
'compression',
|
|
163
|
+
'compute',
|
|
164
|
+
'concat',
|
|
165
|
+
'concat_with_space',
|
|
166
|
+
'concatenate',
|
|
167
|
+
'cond',
|
|
168
|
+
'condense', // also a built-in
|
|
169
|
+
'condition',
|
|
170
|
+
'connect',
|
|
171
|
+
'connection',
|
|
172
|
+
'constants',
|
|
173
|
+
'context',
|
|
174
|
+
'contexts',
|
|
175
|
+
'continue',
|
|
176
|
+
'control',
|
|
177
|
+
'controls',
|
|
178
|
+
'conv',
|
|
179
|
+
'conversion',
|
|
180
|
+
'convert',
|
|
181
|
+
'copies',
|
|
182
|
+
'copy',
|
|
183
|
+
'corresponding',
|
|
184
|
+
'country',
|
|
185
|
+
'cover',
|
|
186
|
+
'cpi',
|
|
187
|
+
'create',
|
|
188
|
+
'creating',
|
|
189
|
+
'critical',
|
|
190
|
+
'currency',
|
|
191
|
+
'currency_conversion',
|
|
192
|
+
'current',
|
|
193
|
+
'cursor',
|
|
194
|
+
'cursor-selection',
|
|
195
|
+
'customer',
|
|
196
|
+
'customer-function',
|
|
197
|
+
'dangerous',
|
|
198
|
+
'data',
|
|
199
|
+
'database',
|
|
200
|
+
'datainfo',
|
|
201
|
+
'dataset',
|
|
202
|
+
'date',
|
|
203
|
+
'dats_add_days',
|
|
204
|
+
'dats_add_months',
|
|
205
|
+
'dats_days_between',
|
|
206
|
+
'dats_is_valid',
|
|
207
|
+
'daylight',
|
|
208
|
+
'dd/mm/yy',
|
|
209
|
+
'dd/mm/yyyy',
|
|
210
|
+
'ddmmyy',
|
|
211
|
+
'deallocate',
|
|
212
|
+
'decimal_shift',
|
|
213
|
+
'decimals',
|
|
214
|
+
'declarations',
|
|
215
|
+
'deep',
|
|
216
|
+
'default',
|
|
217
|
+
'deferred',
|
|
218
|
+
'define',
|
|
219
|
+
'defining',
|
|
220
|
+
'definition',
|
|
221
|
+
'delete',
|
|
222
|
+
'deleting',
|
|
223
|
+
'demand',
|
|
224
|
+
'department',
|
|
225
|
+
'descending',
|
|
226
|
+
'describe',
|
|
227
|
+
'destination',
|
|
228
|
+
'detail',
|
|
229
|
+
'dialog',
|
|
230
|
+
'directory',
|
|
231
|
+
'disconnect',
|
|
232
|
+
'display',
|
|
233
|
+
'display-mode',
|
|
234
|
+
'distinct',
|
|
235
|
+
'divide',
|
|
236
|
+
'divide-corresponding',
|
|
237
|
+
'division',
|
|
238
|
+
'do',
|
|
239
|
+
'dummy',
|
|
240
|
+
'duplicate',
|
|
241
|
+
'duplicates',
|
|
242
|
+
'duration',
|
|
243
|
+
'during',
|
|
244
|
+
'dynamic',
|
|
245
|
+
'dynpro',
|
|
246
|
+
'edit',
|
|
247
|
+
'editor-call',
|
|
248
|
+
'else',
|
|
249
|
+
'elseif',
|
|
250
|
+
'empty',
|
|
251
|
+
'enabled',
|
|
252
|
+
'enabling',
|
|
253
|
+
'encoding',
|
|
254
|
+
'end',
|
|
255
|
+
'endat',
|
|
256
|
+
'endcase',
|
|
257
|
+
'endcatch',
|
|
258
|
+
'endchain',
|
|
259
|
+
'endclass',
|
|
260
|
+
'enddo',
|
|
261
|
+
'endenhancement',
|
|
262
|
+
'end-enhancement-section',
|
|
263
|
+
'endexec',
|
|
264
|
+
'endform',
|
|
265
|
+
'endfunction',
|
|
266
|
+
'endian',
|
|
267
|
+
'endif',
|
|
268
|
+
'ending',
|
|
269
|
+
'endinterface',
|
|
270
|
+
'end-lines',
|
|
271
|
+
'endloop',
|
|
272
|
+
'endmethod',
|
|
273
|
+
'endmodule',
|
|
274
|
+
'end-of-definition',
|
|
275
|
+
'end-of-editing',
|
|
276
|
+
'end-of-file',
|
|
277
|
+
'end-of-page',
|
|
278
|
+
'end-of-selection',
|
|
279
|
+
'endon',
|
|
280
|
+
'endprovide',
|
|
281
|
+
'endselect',
|
|
282
|
+
'end-test-injection',
|
|
283
|
+
'end-test-seam',
|
|
284
|
+
'endtry',
|
|
285
|
+
'endwhile',
|
|
286
|
+
'endwith',
|
|
287
|
+
'engineering',
|
|
288
|
+
'enhancement',
|
|
289
|
+
'enhancement-point',
|
|
290
|
+
'enhancements',
|
|
291
|
+
'enhancement-section',
|
|
292
|
+
'entries',
|
|
293
|
+
'entry',
|
|
294
|
+
'enum',
|
|
295
|
+
'environment',
|
|
296
|
+
'equiv', // also an operator
|
|
297
|
+
'errormessage',
|
|
298
|
+
'errors',
|
|
299
|
+
'escaping',
|
|
300
|
+
'event',
|
|
301
|
+
'events',
|
|
302
|
+
'exact',
|
|
303
|
+
'except',
|
|
304
|
+
'exception',
|
|
305
|
+
'exceptions',
|
|
306
|
+
'exception-table',
|
|
307
|
+
'exclude',
|
|
308
|
+
'excluding',
|
|
309
|
+
'exec',
|
|
310
|
+
'execute',
|
|
311
|
+
'exists',
|
|
312
|
+
'exit',
|
|
313
|
+
'exit-command',
|
|
314
|
+
'expand',
|
|
315
|
+
'expanding',
|
|
316
|
+
'expiration',
|
|
317
|
+
'explicit',
|
|
318
|
+
'exponent',
|
|
319
|
+
'export',
|
|
320
|
+
'exporting',
|
|
321
|
+
'extend',
|
|
322
|
+
'extended',
|
|
323
|
+
'extension',
|
|
324
|
+
'extract',
|
|
325
|
+
'fail',
|
|
326
|
+
'fetch',
|
|
327
|
+
'field',
|
|
328
|
+
'field-groups',
|
|
329
|
+
'fields',
|
|
330
|
+
'field-symbol',
|
|
331
|
+
'field-symbols',
|
|
332
|
+
'file',
|
|
333
|
+
'filter',
|
|
334
|
+
'filters',
|
|
335
|
+
'filter-table',
|
|
336
|
+
'final',
|
|
337
|
+
'find', // also a built-in
|
|
338
|
+
'first',
|
|
339
|
+
'first-line',
|
|
340
|
+
'fixed-point',
|
|
341
|
+
'fkeq',
|
|
342
|
+
'fkge',
|
|
343
|
+
'flush',
|
|
344
|
+
'font',
|
|
345
|
+
'for',
|
|
346
|
+
'form',
|
|
347
|
+
'format',
|
|
348
|
+
'forward',
|
|
349
|
+
'found',
|
|
350
|
+
'frame',
|
|
351
|
+
'frames',
|
|
352
|
+
'free',
|
|
353
|
+
'friends',
|
|
354
|
+
'from',
|
|
355
|
+
'function',
|
|
356
|
+
'functionality',
|
|
357
|
+
'function-pool',
|
|
358
|
+
'further',
|
|
359
|
+
'gaps',
|
|
360
|
+
'generate',
|
|
361
|
+
'get',
|
|
362
|
+
'giving',
|
|
363
|
+
'gkeq',
|
|
364
|
+
'gkge',
|
|
365
|
+
'global',
|
|
366
|
+
'grant',
|
|
367
|
+
'green',
|
|
368
|
+
'group',
|
|
369
|
+
'groups',
|
|
370
|
+
'handle',
|
|
371
|
+
'handler',
|
|
372
|
+
'harmless',
|
|
373
|
+
'hashed', // also a table type
|
|
374
|
+
'having',
|
|
375
|
+
'hdb',
|
|
376
|
+
'header',
|
|
377
|
+
'headers',
|
|
378
|
+
'heading',
|
|
379
|
+
'head-lines',
|
|
380
|
+
'help-id',
|
|
381
|
+
'help-request',
|
|
382
|
+
'hextobin',
|
|
383
|
+
'hide',
|
|
384
|
+
'high',
|
|
385
|
+
'hint',
|
|
386
|
+
'hold',
|
|
387
|
+
'hotspot',
|
|
388
|
+
'icon',
|
|
389
|
+
'id',
|
|
390
|
+
'identification',
|
|
391
|
+
'identifier',
|
|
392
|
+
'ids',
|
|
393
|
+
'if',
|
|
394
|
+
'ignore',
|
|
395
|
+
'ignoring',
|
|
396
|
+
'immediately',
|
|
397
|
+
'implementation',
|
|
398
|
+
'implementations',
|
|
399
|
+
'implemented',
|
|
400
|
+
'implicit',
|
|
401
|
+
'import',
|
|
402
|
+
'importing',
|
|
403
|
+
'in', // also an operator
|
|
404
|
+
'inactive',
|
|
405
|
+
'incl',
|
|
406
|
+
'include',
|
|
407
|
+
'includes',
|
|
408
|
+
'including',
|
|
409
|
+
'increment',
|
|
410
|
+
'index', // also a table type
|
|
411
|
+
'index-line',
|
|
412
|
+
'infotypes',
|
|
413
|
+
'inheriting',
|
|
414
|
+
'init',
|
|
415
|
+
'initial',
|
|
416
|
+
'initialization',
|
|
417
|
+
'inner',
|
|
418
|
+
'inout',
|
|
419
|
+
'input',
|
|
420
|
+
'insert', // also a built-in
|
|
421
|
+
'instance',
|
|
422
|
+
'instances',
|
|
423
|
+
'instr',
|
|
424
|
+
'intensified',
|
|
425
|
+
'interface',
|
|
426
|
+
'interface-pool',
|
|
427
|
+
'interfaces',
|
|
428
|
+
'internal',
|
|
429
|
+
'intervals',
|
|
430
|
+
'into',
|
|
431
|
+
'inverse',
|
|
432
|
+
'inverted-date',
|
|
433
|
+
'is',
|
|
434
|
+
'iso',
|
|
435
|
+
'job',
|
|
436
|
+
'join',
|
|
437
|
+
'keep',
|
|
438
|
+
'keeping',
|
|
439
|
+
'kernel',
|
|
440
|
+
'key',
|
|
441
|
+
'keys',
|
|
442
|
+
'keywords',
|
|
443
|
+
'kind',
|
|
444
|
+
'language',
|
|
445
|
+
'last',
|
|
446
|
+
'late',
|
|
447
|
+
'layout',
|
|
448
|
+
'leading',
|
|
449
|
+
'leave',
|
|
450
|
+
'left',
|
|
451
|
+
'left-justified',
|
|
452
|
+
'leftplus',
|
|
453
|
+
'leftspace',
|
|
454
|
+
'legacy',
|
|
455
|
+
'length',
|
|
456
|
+
'let',
|
|
457
|
+
'level',
|
|
458
|
+
'levels',
|
|
459
|
+
'like',
|
|
460
|
+
'line',
|
|
461
|
+
'lines', // also a built-in
|
|
462
|
+
'line-count',
|
|
463
|
+
'linefeed',
|
|
464
|
+
'line-selection',
|
|
465
|
+
'line-size',
|
|
466
|
+
'list',
|
|
467
|
+
'listbox',
|
|
468
|
+
'list-processing',
|
|
469
|
+
'little',
|
|
470
|
+
'llang',
|
|
471
|
+
'load',
|
|
472
|
+
'load-of-program',
|
|
473
|
+
'lob',
|
|
474
|
+
'local',
|
|
475
|
+
'locale',
|
|
476
|
+
'locator',
|
|
477
|
+
'logfile',
|
|
478
|
+
'logical',
|
|
479
|
+
'log-point',
|
|
480
|
+
'long',
|
|
481
|
+
'loop',
|
|
482
|
+
'low',
|
|
483
|
+
'lower',
|
|
484
|
+
'lpad',
|
|
485
|
+
'lpi',
|
|
486
|
+
'ltrim',
|
|
487
|
+
'mail',
|
|
488
|
+
'main',
|
|
489
|
+
'major-id',
|
|
490
|
+
'mapping',
|
|
491
|
+
'margin',
|
|
492
|
+
'mark',
|
|
493
|
+
'mask',
|
|
494
|
+
'match', // also a built-in
|
|
495
|
+
'matchcode',
|
|
496
|
+
'max',
|
|
497
|
+
'maximum',
|
|
498
|
+
'medium',
|
|
499
|
+
'members',
|
|
500
|
+
'memory',
|
|
501
|
+
'mesh',
|
|
502
|
+
'message',
|
|
503
|
+
'message-id',
|
|
504
|
+
'messages',
|
|
505
|
+
'messaging',
|
|
506
|
+
'method',
|
|
507
|
+
'methods',
|
|
508
|
+
'min',
|
|
509
|
+
'minimum',
|
|
510
|
+
'minor-id',
|
|
511
|
+
'mm/dd/yy',
|
|
512
|
+
'mm/dd/yyyy',
|
|
513
|
+
'mmddyy',
|
|
514
|
+
'mode',
|
|
515
|
+
'modif',
|
|
516
|
+
'modifier',
|
|
517
|
+
'modify',
|
|
518
|
+
'module',
|
|
519
|
+
'move',
|
|
520
|
+
'move-corresponding',
|
|
521
|
+
'multiply',
|
|
522
|
+
'multiply-corresponding',
|
|
523
|
+
'name',
|
|
524
|
+
'nametab',
|
|
525
|
+
'native',
|
|
526
|
+
'nested',
|
|
527
|
+
'nesting',
|
|
528
|
+
'new',
|
|
529
|
+
'new-line',
|
|
530
|
+
'new-page',
|
|
531
|
+
'new-section',
|
|
532
|
+
'next',
|
|
533
|
+
'no',
|
|
534
|
+
'no-display',
|
|
535
|
+
'no-extension',
|
|
536
|
+
'no-gap',
|
|
537
|
+
'no-gaps',
|
|
538
|
+
'no-grouping',
|
|
539
|
+
'no-heading',
|
|
540
|
+
'no-scrolling',
|
|
541
|
+
'no-sign',
|
|
542
|
+
'no-title',
|
|
543
|
+
'no-topofpage',
|
|
544
|
+
'no-zero',
|
|
545
|
+
'node',
|
|
546
|
+
'nodes',
|
|
547
|
+
'non-unicode',
|
|
548
|
+
'non-unique',
|
|
549
|
+
'not', // also an operator
|
|
550
|
+
'null',
|
|
551
|
+
'number',
|
|
552
|
+
'object', // also a data type
|
|
553
|
+
'objects',
|
|
554
|
+
'obligatory',
|
|
555
|
+
'occurrence',
|
|
556
|
+
'occurrences',
|
|
557
|
+
'occurs',
|
|
558
|
+
'of',
|
|
559
|
+
'off',
|
|
560
|
+
'offset',
|
|
561
|
+
'ole',
|
|
562
|
+
'on',
|
|
563
|
+
'only',
|
|
564
|
+
'open',
|
|
565
|
+
'option',
|
|
566
|
+
'optional',
|
|
567
|
+
'options',
|
|
568
|
+
'or', // also an operator
|
|
569
|
+
'order',
|
|
570
|
+
'other',
|
|
571
|
+
'others',
|
|
572
|
+
'out',
|
|
573
|
+
'outer',
|
|
574
|
+
'output',
|
|
575
|
+
'output-length',
|
|
576
|
+
'overflow',
|
|
577
|
+
'overlay',
|
|
578
|
+
'pack',
|
|
579
|
+
'package',
|
|
580
|
+
'pad',
|
|
581
|
+
'padding',
|
|
582
|
+
'page',
|
|
583
|
+
'pages',
|
|
584
|
+
'parameter',
|
|
585
|
+
'parameters',
|
|
586
|
+
'parameter-table',
|
|
587
|
+
'part',
|
|
588
|
+
'partially',
|
|
589
|
+
'pattern',
|
|
590
|
+
'percentage',
|
|
591
|
+
'perform',
|
|
592
|
+
'performing',
|
|
593
|
+
'person',
|
|
594
|
+
'pf1',
|
|
595
|
+
'pf10',
|
|
596
|
+
'pf11',
|
|
597
|
+
'pf12',
|
|
598
|
+
'pf13',
|
|
599
|
+
'pf14',
|
|
600
|
+
'pf15',
|
|
601
|
+
'pf2',
|
|
602
|
+
'pf3',
|
|
603
|
+
'pf4',
|
|
604
|
+
'pf5',
|
|
605
|
+
'pf6',
|
|
606
|
+
'pf7',
|
|
607
|
+
'pf8',
|
|
608
|
+
'pf9',
|
|
609
|
+
'pf-status',
|
|
610
|
+
'pink',
|
|
611
|
+
'places',
|
|
612
|
+
'pool',
|
|
613
|
+
'pos_high',
|
|
614
|
+
'pos_low',
|
|
615
|
+
'position',
|
|
616
|
+
'pragmas',
|
|
617
|
+
'precompiled',
|
|
618
|
+
'preferred',
|
|
619
|
+
'preserving',
|
|
620
|
+
'primary',
|
|
621
|
+
'print',
|
|
622
|
+
'print-control',
|
|
623
|
+
'priority',
|
|
624
|
+
'private',
|
|
625
|
+
'procedure',
|
|
626
|
+
'process',
|
|
627
|
+
'program',
|
|
628
|
+
'property',
|
|
629
|
+
'protected',
|
|
630
|
+
'provide',
|
|
631
|
+
'public',
|
|
632
|
+
'push',
|
|
633
|
+
'pushbutton',
|
|
634
|
+
'put',
|
|
635
|
+
'queue-only',
|
|
636
|
+
'quickinfo',
|
|
637
|
+
'radiobutton',
|
|
638
|
+
'raise',
|
|
639
|
+
'raising',
|
|
640
|
+
'range',
|
|
641
|
+
'ranges',
|
|
642
|
+
'read',
|
|
643
|
+
'reader',
|
|
644
|
+
'read-only',
|
|
645
|
+
'receive',
|
|
646
|
+
'received',
|
|
647
|
+
'receiver',
|
|
648
|
+
'receiving',
|
|
649
|
+
'red',
|
|
650
|
+
'redefinition',
|
|
651
|
+
'reduce',
|
|
652
|
+
'reduced',
|
|
653
|
+
'ref',
|
|
654
|
+
'reference',
|
|
655
|
+
'refresh',
|
|
656
|
+
'regex',
|
|
657
|
+
'reject',
|
|
658
|
+
'remote',
|
|
659
|
+
'renaming',
|
|
660
|
+
'replace', // also a built-in
|
|
661
|
+
'replacement',
|
|
662
|
+
'replacing',
|
|
663
|
+
'report',
|
|
664
|
+
'request',
|
|
665
|
+
'requested',
|
|
666
|
+
'reserve',
|
|
667
|
+
'reset',
|
|
668
|
+
'resolution',
|
|
669
|
+
'respecting',
|
|
670
|
+
'responsible',
|
|
671
|
+
'result',
|
|
672
|
+
'results',
|
|
673
|
+
'resumable',
|
|
674
|
+
'resume',
|
|
675
|
+
'retry',
|
|
676
|
+
'return',
|
|
677
|
+
'returncode',
|
|
678
|
+
'returning',
|
|
679
|
+
'returns',
|
|
680
|
+
'right',
|
|
681
|
+
'right-justified',
|
|
682
|
+
'rightplus',
|
|
683
|
+
'rightspace',
|
|
684
|
+
'risk',
|
|
685
|
+
'rmc_communication_failure',
|
|
686
|
+
'rmc_invalid_status',
|
|
687
|
+
'rmc_system_failure',
|
|
688
|
+
'role',
|
|
689
|
+
'rollback',
|
|
690
|
+
'rows',
|
|
691
|
+
'rpad',
|
|
692
|
+
'rtrim',
|
|
693
|
+
'run',
|
|
694
|
+
'sap',
|
|
695
|
+
'sap-spool',
|
|
696
|
+
'saving',
|
|
697
|
+
'scale_preserving',
|
|
698
|
+
'scale_preserving_scientific',
|
|
699
|
+
'scan',
|
|
700
|
+
'scientific',
|
|
701
|
+
'scientific_with_leading_zero',
|
|
702
|
+
'scroll',
|
|
703
|
+
'scroll-boundary',
|
|
704
|
+
'scrolling',
|
|
705
|
+
'search',
|
|
706
|
+
'secondary',
|
|
707
|
+
'seconds',
|
|
708
|
+
'section',
|
|
709
|
+
'select',
|
|
710
|
+
'selection',
|
|
711
|
+
'selections',
|
|
712
|
+
'selection-screen',
|
|
713
|
+
'selection-set',
|
|
714
|
+
'selection-sets',
|
|
715
|
+
'selection-table',
|
|
716
|
+
'select-options',
|
|
717
|
+
'send',
|
|
718
|
+
'separate',
|
|
719
|
+
'separated',
|
|
720
|
+
'set',
|
|
721
|
+
'shared',
|
|
722
|
+
'shift',
|
|
723
|
+
'short',
|
|
724
|
+
'shortdump-id',
|
|
725
|
+
'sign_as_postfix',
|
|
726
|
+
'single',
|
|
727
|
+
'size',
|
|
728
|
+
'skip',
|
|
729
|
+
'skipping',
|
|
730
|
+
'smart',
|
|
731
|
+
'some',
|
|
732
|
+
'sort',
|
|
733
|
+
'sortable',
|
|
734
|
+
'sorted', // also a table type
|
|
735
|
+
'source',
|
|
736
|
+
'specified',
|
|
737
|
+
'split',
|
|
738
|
+
'spool',
|
|
739
|
+
'spots',
|
|
740
|
+
'sql',
|
|
741
|
+
'sqlscript',
|
|
742
|
+
'stable',
|
|
743
|
+
'stamp',
|
|
744
|
+
'standard', // also a table type
|
|
745
|
+
'starting',
|
|
746
|
+
'start-of-editing',
|
|
747
|
+
'start-of-selection',
|
|
748
|
+
'state',
|
|
749
|
+
'statement',
|
|
750
|
+
'statements',
|
|
751
|
+
'static',
|
|
752
|
+
'statics',
|
|
753
|
+
'statusinfo',
|
|
754
|
+
'step-loop',
|
|
755
|
+
'stop',
|
|
756
|
+
'structure',
|
|
757
|
+
'structures',
|
|
758
|
+
'style',
|
|
759
|
+
'subkey',
|
|
760
|
+
'submatches',
|
|
761
|
+
'submit',
|
|
762
|
+
'subroutine',
|
|
763
|
+
'subscreen',
|
|
764
|
+
'subtract',
|
|
765
|
+
'subtract-corresponding',
|
|
766
|
+
'suffix',
|
|
767
|
+
'sum',
|
|
768
|
+
'summary',
|
|
769
|
+
'summing',
|
|
770
|
+
'supplied',
|
|
771
|
+
'supply',
|
|
772
|
+
'suppress',
|
|
773
|
+
'switch',
|
|
774
|
+
'switchstates',
|
|
775
|
+
'symbol',
|
|
776
|
+
'syncpoints',
|
|
777
|
+
'syntax',
|
|
778
|
+
'syntax-check',
|
|
779
|
+
'syntax-trace',
|
|
780
|
+
'system-call',
|
|
781
|
+
'system-exceptions',
|
|
782
|
+
'system-exit',
|
|
783
|
+
'tab',
|
|
784
|
+
'tabbed',
|
|
785
|
+
'table',
|
|
786
|
+
'tables',
|
|
787
|
+
'tableview',
|
|
788
|
+
'tabstrip',
|
|
789
|
+
'target',
|
|
790
|
+
'task',
|
|
791
|
+
'tasks',
|
|
792
|
+
'test',
|
|
793
|
+
'testing',
|
|
794
|
+
'test-injection',
|
|
795
|
+
'test-seam',
|
|
796
|
+
'text',
|
|
797
|
+
'textpool',
|
|
798
|
+
'then',
|
|
799
|
+
'throw',
|
|
800
|
+
'time',
|
|
801
|
+
'times',
|
|
802
|
+
'timestamp',
|
|
803
|
+
'timezone',
|
|
804
|
+
'tims_is_valid',
|
|
805
|
+
'title',
|
|
806
|
+
'titlebar',
|
|
807
|
+
'title-lines',
|
|
808
|
+
'to',
|
|
809
|
+
'tokenization',
|
|
810
|
+
'tokens',
|
|
811
|
+
'top-lines',
|
|
812
|
+
'top-of-page',
|
|
813
|
+
'trace-file',
|
|
814
|
+
'trace-table',
|
|
815
|
+
'trailing',
|
|
816
|
+
'transaction',
|
|
817
|
+
'transfer',
|
|
818
|
+
'transformation',
|
|
819
|
+
'translate', // also a built-in
|
|
820
|
+
'transporting',
|
|
821
|
+
'trmac',
|
|
822
|
+
'truncate',
|
|
823
|
+
'truncation',
|
|
824
|
+
'try',
|
|
825
|
+
'tstmp_add_seconds',
|
|
826
|
+
'tstmp_current_utctimestamp',
|
|
827
|
+
'tstmp_is_valid',
|
|
828
|
+
'tstmp_seconds_between',
|
|
829
|
+
'type',
|
|
830
|
+
'type-pool',
|
|
831
|
+
'type-pools',
|
|
832
|
+
'types',
|
|
833
|
+
'uline',
|
|
834
|
+
'unassign',
|
|
835
|
+
'under',
|
|
836
|
+
'unicode',
|
|
837
|
+
'union',
|
|
838
|
+
'unique',
|
|
839
|
+
'unit_conversion',
|
|
840
|
+
'unix',
|
|
841
|
+
'unpack',
|
|
842
|
+
'until',
|
|
843
|
+
'unwind',
|
|
844
|
+
'up',
|
|
845
|
+
'update',
|
|
846
|
+
'upper',
|
|
847
|
+
'user',
|
|
848
|
+
'user-command',
|
|
849
|
+
'using',
|
|
850
|
+
'utf-8',
|
|
851
|
+
'valid',
|
|
852
|
+
'value',
|
|
853
|
+
'value-request',
|
|
854
|
+
'values',
|
|
855
|
+
'vary',
|
|
856
|
+
'varying',
|
|
857
|
+
'verification-message',
|
|
858
|
+
'version',
|
|
859
|
+
'via',
|
|
860
|
+
'view',
|
|
861
|
+
'visible',
|
|
862
|
+
'wait',
|
|
863
|
+
'warning',
|
|
864
|
+
'when',
|
|
865
|
+
'whenever',
|
|
866
|
+
'where',
|
|
867
|
+
'while',
|
|
868
|
+
'width',
|
|
869
|
+
'window',
|
|
870
|
+
'windows',
|
|
871
|
+
'with',
|
|
872
|
+
'with-heading',
|
|
873
|
+
'without',
|
|
874
|
+
'with-title',
|
|
875
|
+
'word',
|
|
876
|
+
'work',
|
|
877
|
+
'write',
|
|
878
|
+
'writer',
|
|
879
|
+
'xml',
|
|
880
|
+
'xsd',
|
|
881
|
+
'yellow',
|
|
882
|
+
'yes',
|
|
883
|
+
'yymmdd',
|
|
884
|
+
'zero',
|
|
885
|
+
'zone',
|
|
886
|
+
// since 7.55:
|
|
887
|
+
'abap_system_timezone',
|
|
888
|
+
'abap_user_timezone',
|
|
889
|
+
'access',
|
|
890
|
+
'action',
|
|
891
|
+
'adabas',
|
|
892
|
+
'adjust_numbers',
|
|
893
|
+
'allow_precision_loss',
|
|
894
|
+
'allowed',
|
|
895
|
+
'amdp',
|
|
896
|
+
'applicationuser',
|
|
897
|
+
'as_geo_json',
|
|
898
|
+
'as400',
|
|
899
|
+
'associations',
|
|
900
|
+
'balance',
|
|
901
|
+
'behavior',
|
|
902
|
+
'breakup',
|
|
903
|
+
'bulk',
|
|
904
|
+
'cds',
|
|
905
|
+
'cds_client',
|
|
906
|
+
'check_before_save',
|
|
907
|
+
'child',
|
|
908
|
+
'clients',
|
|
909
|
+
'corr',
|
|
910
|
+
'corr_spearman',
|
|
911
|
+
'cross',
|
|
912
|
+
'cycles',
|
|
913
|
+
'datn_add_days',
|
|
914
|
+
'datn_add_months',
|
|
915
|
+
'datn_days_between',
|
|
916
|
+
'dats_from_datn',
|
|
917
|
+
'dats_tims_to_tstmp',
|
|
918
|
+
'dats_to_datn',
|
|
919
|
+
'db2',
|
|
920
|
+
'db6',
|
|
921
|
+
'ddl',
|
|
922
|
+
'dense_rank',
|
|
923
|
+
'depth',
|
|
924
|
+
'deterministic',
|
|
925
|
+
'discarding',
|
|
926
|
+
'entities',
|
|
927
|
+
'entity',
|
|
928
|
+
'error',
|
|
929
|
+
'failed',
|
|
930
|
+
'finalize',
|
|
931
|
+
'first_value',
|
|
932
|
+
'fltp_to_dec',
|
|
933
|
+
'following',
|
|
934
|
+
'fractional',
|
|
935
|
+
'full',
|
|
936
|
+
'graph',
|
|
937
|
+
'grouping',
|
|
938
|
+
'hierarchy',
|
|
939
|
+
'hierarchy_ancestors',
|
|
940
|
+
'hierarchy_ancestors_aggregate',
|
|
941
|
+
'hierarchy_descendants',
|
|
942
|
+
'hierarchy_descendants_aggregate',
|
|
943
|
+
'hierarchy_siblings',
|
|
944
|
+
'incremental',
|
|
945
|
+
'indicators',
|
|
946
|
+
'lag',
|
|
947
|
+
'last_value',
|
|
948
|
+
'lead',
|
|
949
|
+
'leaves',
|
|
950
|
+
'like_regexpr',
|
|
951
|
+
'link',
|
|
952
|
+
'locale_sap',
|
|
953
|
+
'lock',
|
|
954
|
+
'locks',
|
|
955
|
+
'many',
|
|
956
|
+
'mapped',
|
|
957
|
+
'matched',
|
|
958
|
+
'measures',
|
|
959
|
+
'median',
|
|
960
|
+
'mssqlnt',
|
|
961
|
+
'multiple',
|
|
962
|
+
'nodetype',
|
|
963
|
+
'ntile',
|
|
964
|
+
'nulls',
|
|
965
|
+
'occurrences_regexpr',
|
|
966
|
+
'one',
|
|
967
|
+
'operations',
|
|
968
|
+
'oracle',
|
|
969
|
+
'orphans',
|
|
970
|
+
'over',
|
|
971
|
+
'parent',
|
|
972
|
+
'parents',
|
|
973
|
+
'partition',
|
|
974
|
+
'pcre',
|
|
975
|
+
'period',
|
|
976
|
+
'pfcg_mapping',
|
|
977
|
+
'preceding',
|
|
978
|
+
'privileged',
|
|
979
|
+
'product',
|
|
980
|
+
'projection',
|
|
981
|
+
'rank',
|
|
982
|
+
'redirected',
|
|
983
|
+
'replace_regexpr',
|
|
984
|
+
'reported',
|
|
985
|
+
'response',
|
|
986
|
+
'responses',
|
|
987
|
+
'root',
|
|
988
|
+
'row',
|
|
989
|
+
'row_number',
|
|
990
|
+
'sap_system_date',
|
|
991
|
+
'save',
|
|
992
|
+
'schema',
|
|
993
|
+
'session',
|
|
994
|
+
'sets',
|
|
995
|
+
'shortdump',
|
|
996
|
+
'siblings',
|
|
997
|
+
'spantree',
|
|
998
|
+
'start',
|
|
999
|
+
'stddev',
|
|
1000
|
+
'string_agg',
|
|
1001
|
+
'subtotal',
|
|
1002
|
+
'sybase',
|
|
1003
|
+
'tims_from_timn',
|
|
1004
|
+
'tims_to_timn',
|
|
1005
|
+
'to_blob',
|
|
1006
|
+
'to_clob',
|
|
1007
|
+
'total',
|
|
1008
|
+
'trace-entry',
|
|
1009
|
+
'tstmp_to_dats',
|
|
1010
|
+
'tstmp_to_dst',
|
|
1011
|
+
'tstmp_to_tims',
|
|
1012
|
+
'tstmpl_from_utcl',
|
|
1013
|
+
'tstmpl_to_utcl',
|
|
1014
|
+
'unbounded',
|
|
1015
|
+
'utcl_add_seconds',
|
|
1016
|
+
'utcl_current',
|
|
1017
|
+
'utcl_seconds_between',
|
|
1018
|
+
'uuid',
|
|
1019
|
+
'var',
|
|
1020
|
+
'verbatim'
|
|
1021
|
+
],
|
|
1022
|
+
|
|
1023
|
+
//
|
|
1024
|
+
// Built-in Functions
|
|
1025
|
+
//
|
|
1026
|
+
// Functions that are also statements have been moved to keywords
|
|
1027
|
+
//
|
|
1028
|
+
builtinFunctions: [
|
|
1029
|
+
'abs',
|
|
1030
|
+
'acos',
|
|
1031
|
+
'asin',
|
|
1032
|
+
'atan',
|
|
1033
|
+
'bit-set',
|
|
1034
|
+
'boolc',
|
|
1035
|
+
'boolx',
|
|
1036
|
+
'ceil',
|
|
1037
|
+
'char_off',
|
|
1038
|
+
'charlen',
|
|
1039
|
+
'cmax',
|
|
1040
|
+
'cmin',
|
|
1041
|
+
'concat_lines_of',
|
|
1042
|
+
// 'condense', // moved to keywords
|
|
1043
|
+
'contains',
|
|
1044
|
+
'contains_any_not_of',
|
|
1045
|
+
'contains_any_of',
|
|
1046
|
+
'cos',
|
|
1047
|
+
'cosh',
|
|
1048
|
+
'count',
|
|
1049
|
+
'count_any_not_of',
|
|
1050
|
+
'count_any_of',
|
|
1051
|
+
'dbmaxlen',
|
|
1052
|
+
'distance',
|
|
1053
|
+
'escape',
|
|
1054
|
+
'exp',
|
|
1055
|
+
// 'find', // moved to keywords
|
|
1056
|
+
'find_any_not_of',
|
|
1057
|
+
'find_any_of',
|
|
1058
|
+
'find_end',
|
|
1059
|
+
'floor',
|
|
1060
|
+
'frac',
|
|
1061
|
+
'from_mixed',
|
|
1062
|
+
// 'insert', // moved to keywords
|
|
1063
|
+
'ipow',
|
|
1064
|
+
'line_exists',
|
|
1065
|
+
'line_index',
|
|
1066
|
+
// 'lines', // moved to keywords
|
|
1067
|
+
'log',
|
|
1068
|
+
'log10',
|
|
1069
|
+
// 'match', // moved to keywords
|
|
1070
|
+
'matches',
|
|
1071
|
+
'nmax',
|
|
1072
|
+
'nmin',
|
|
1073
|
+
'numofchar',
|
|
1074
|
+
'repeat',
|
|
1075
|
+
// 'replace', // moved to keywords
|
|
1076
|
+
'rescale',
|
|
1077
|
+
'reverse',
|
|
1078
|
+
'round',
|
|
1079
|
+
'segment',
|
|
1080
|
+
'shift_left',
|
|
1081
|
+
'shift_right',
|
|
1082
|
+
'sign',
|
|
1083
|
+
'sin',
|
|
1084
|
+
'sinh',
|
|
1085
|
+
'sqrt',
|
|
1086
|
+
'strlen',
|
|
1087
|
+
'substring',
|
|
1088
|
+
'substring_after',
|
|
1089
|
+
'substring_before',
|
|
1090
|
+
'substring_from',
|
|
1091
|
+
'substring_to',
|
|
1092
|
+
'tan',
|
|
1093
|
+
'tanh',
|
|
1094
|
+
'to_lower',
|
|
1095
|
+
'to_mixed',
|
|
1096
|
+
'to_upper',
|
|
1097
|
+
// 'translate', // moved to keywords
|
|
1098
|
+
'trunc',
|
|
1099
|
+
'utclong_add', // since 7.54
|
|
1100
|
+
'utclong_current', // since 7.54
|
|
1101
|
+
'utclong_diff', // since 7.54
|
|
1102
|
+
'xsdbool',
|
|
1103
|
+
'xstrlen'
|
|
1104
|
+
],
|
|
1105
|
+
|
|
1106
|
+
//
|
|
1107
|
+
// Data Types
|
|
1108
|
+
//
|
|
1109
|
+
// Data types that are also part of statements have been moved to keywords
|
|
1110
|
+
//
|
|
1111
|
+
typeKeywords: [
|
|
1112
|
+
// built-in abap types
|
|
1113
|
+
'b',
|
|
1114
|
+
'c',
|
|
1115
|
+
'd',
|
|
1116
|
+
'decfloat16',
|
|
1117
|
+
'decfloat34',
|
|
1118
|
+
'f',
|
|
1119
|
+
'i',
|
|
1120
|
+
'int8', // since 7.54
|
|
1121
|
+
'n',
|
|
1122
|
+
'p',
|
|
1123
|
+
's',
|
|
1124
|
+
'string',
|
|
1125
|
+
't',
|
|
1126
|
+
'utclong', // since 7.54
|
|
1127
|
+
'x',
|
|
1128
|
+
'xstring',
|
|
1129
|
+
// generic data types
|
|
1130
|
+
'any',
|
|
1131
|
+
'clike',
|
|
1132
|
+
'csequence',
|
|
1133
|
+
'decfloat',
|
|
1134
|
+
// 'object', // moved to keywords
|
|
1135
|
+
'numeric',
|
|
1136
|
+
'simple',
|
|
1137
|
+
'xsequence',
|
|
1138
|
+
// ddic/sql data types
|
|
1139
|
+
'accp',
|
|
1140
|
+
'char',
|
|
1141
|
+
'clnt',
|
|
1142
|
+
'cuky',
|
|
1143
|
+
'curr',
|
|
1144
|
+
'datn', // since 7.55
|
|
1145
|
+
'dats',
|
|
1146
|
+
'd16d', // since 7.55
|
|
1147
|
+
'd16n', // since 7.55
|
|
1148
|
+
'd16r', // since 7.55
|
|
1149
|
+
'd34d', // since 7.55
|
|
1150
|
+
'd34n', // since 7.55
|
|
1151
|
+
'd34r', // since 7.55
|
|
1152
|
+
'dec',
|
|
1153
|
+
'df16_dec',
|
|
1154
|
+
'df16_raw',
|
|
1155
|
+
'df34_dec',
|
|
1156
|
+
'df34_raw',
|
|
1157
|
+
'fltp',
|
|
1158
|
+
'geom_ewkb', // since 7.55
|
|
1159
|
+
'int1',
|
|
1160
|
+
'int2',
|
|
1161
|
+
'int4',
|
|
1162
|
+
'lang',
|
|
1163
|
+
'lchr',
|
|
1164
|
+
'lraw',
|
|
1165
|
+
'numc',
|
|
1166
|
+
'quan',
|
|
1167
|
+
'raw',
|
|
1168
|
+
'rawstring',
|
|
1169
|
+
'sstring',
|
|
1170
|
+
'timn', // since 7.55
|
|
1171
|
+
'tims',
|
|
1172
|
+
'unit',
|
|
1173
|
+
'utcl', // since 7.55
|
|
1174
|
+
// ddic data types (obsolete)
|
|
1175
|
+
'df16_scl',
|
|
1176
|
+
'df34_scl',
|
|
1177
|
+
'prec',
|
|
1178
|
+
'varc',
|
|
1179
|
+
// special data types and constants
|
|
1180
|
+
'abap_bool',
|
|
1181
|
+
'abap_false',
|
|
1182
|
+
'abap_true',
|
|
1183
|
+
'abap_undefined',
|
|
1184
|
+
'me',
|
|
1185
|
+
'screen',
|
|
1186
|
+
'space',
|
|
1187
|
+
'super',
|
|
1188
|
+
'sy',
|
|
1189
|
+
'syst',
|
|
1190
|
+
'table_line',
|
|
1191
|
+
// obsolete data object
|
|
1192
|
+
'*sys*'
|
|
1193
|
+
],
|
|
1194
|
+
|
|
1195
|
+
builtinMethods: ['class_constructor', 'constructor'],
|
|
1196
|
+
|
|
1197
|
+
derivedTypes: [
|
|
1198
|
+
'%CID',
|
|
1199
|
+
'%CID_REF',
|
|
1200
|
+
'%CONTROL',
|
|
1201
|
+
'%DATA',
|
|
1202
|
+
'%ELEMENT',
|
|
1203
|
+
'%FAIL',
|
|
1204
|
+
'%KEY',
|
|
1205
|
+
'%MSG',
|
|
1206
|
+
'%PARAM',
|
|
1207
|
+
'%PID',
|
|
1208
|
+
'%PID_ASSOC',
|
|
1209
|
+
'%PID_PARENT',
|
|
1210
|
+
'%_HINTS'
|
|
1211
|
+
],
|
|
1212
|
+
|
|
1213
|
+
cdsLanguage: [
|
|
1214
|
+
'@AbapAnnotation',
|
|
1215
|
+
'@AbapCatalog',
|
|
1216
|
+
'@AccessControl',
|
|
1217
|
+
'@API',
|
|
1218
|
+
'@ClientDependent',
|
|
1219
|
+
'@ClientHandling',
|
|
1220
|
+
'@CompatibilityContract',
|
|
1221
|
+
'@DataAging',
|
|
1222
|
+
'@EndUserText',
|
|
1223
|
+
'@Environment',
|
|
1224
|
+
'@LanguageDependency',
|
|
1225
|
+
'@MappingRole',
|
|
1226
|
+
'@Metadata',
|
|
1227
|
+
'@MetadataExtension',
|
|
1228
|
+
'@ObjectModel',
|
|
1229
|
+
'@Scope',
|
|
1230
|
+
'@Semantics',
|
|
1231
|
+
'$EXTENSION',
|
|
1232
|
+
'$SELF'
|
|
1233
|
+
],
|
|
1234
|
+
|
|
1235
|
+
selectors: ['->', '->*', '=>', '~', '~*'],
|
|
1236
|
+
|
|
1237
|
+
//
|
|
1238
|
+
// Operators
|
|
1239
|
+
//
|
|
1240
|
+
// Operators that can be part of statements have been moved to keywords
|
|
1241
|
+
//
|
|
1242
|
+
operators: [
|
|
1243
|
+
// arithmetic operators
|
|
1244
|
+
' +',
|
|
1245
|
+
' -',
|
|
1246
|
+
'/',
|
|
1247
|
+
'*',
|
|
1248
|
+
'**',
|
|
1249
|
+
'div',
|
|
1250
|
+
'mod',
|
|
1251
|
+
// assignment operators
|
|
1252
|
+
'=',
|
|
1253
|
+
'#',
|
|
1254
|
+
'@',
|
|
1255
|
+
'+=',
|
|
1256
|
+
'-=',
|
|
1257
|
+
'*=',
|
|
1258
|
+
'/=',
|
|
1259
|
+
'**=',
|
|
1260
|
+
'&&=',
|
|
1261
|
+
// casting operator
|
|
1262
|
+
'?=',
|
|
1263
|
+
// concat operators
|
|
1264
|
+
'&',
|
|
1265
|
+
'&&',
|
|
1266
|
+
// bit operators
|
|
1267
|
+
'bit-and',
|
|
1268
|
+
'bit-not',
|
|
1269
|
+
'bit-or',
|
|
1270
|
+
'bit-xor',
|
|
1271
|
+
'm',
|
|
1272
|
+
'o',
|
|
1273
|
+
'z',
|
|
1274
|
+
// boolean operators
|
|
1275
|
+
// 'and', // moved to keywords
|
|
1276
|
+
// 'equiv', // moved to keywords
|
|
1277
|
+
// 'not', // moved to keywords
|
|
1278
|
+
// 'or', // moved to keywords
|
|
1279
|
+
// comparison operators
|
|
1280
|
+
'<',
|
|
1281
|
+
' >', // todo: separate from -> and =>
|
|
1282
|
+
'<=',
|
|
1283
|
+
'>=',
|
|
1284
|
+
'<>',
|
|
1285
|
+
'><', // obsolete
|
|
1286
|
+
'=<', // obsolete
|
|
1287
|
+
'=>', // obsolete
|
|
1288
|
+
// 'between', // moved to keywords
|
|
1289
|
+
'bt',
|
|
1290
|
+
'byte-ca',
|
|
1291
|
+
'byte-cn',
|
|
1292
|
+
'byte-co',
|
|
1293
|
+
'byte-cs',
|
|
1294
|
+
'byte-na',
|
|
1295
|
+
'byte-ns',
|
|
1296
|
+
'ca',
|
|
1297
|
+
'cn',
|
|
1298
|
+
'co',
|
|
1299
|
+
'cp',
|
|
1300
|
+
'cs',
|
|
1301
|
+
'eq', // obsolete
|
|
1302
|
+
'ge', // obsolete
|
|
1303
|
+
'gt', // obsolete
|
|
1304
|
+
// 'in', // moved to keywords
|
|
1305
|
+
'le', // obsolete
|
|
1306
|
+
'lt', // obsolete
|
|
1307
|
+
'na',
|
|
1308
|
+
'nb',
|
|
1309
|
+
'ne', // obsolete
|
|
1310
|
+
'np',
|
|
1311
|
+
'ns',
|
|
1312
|
+
// cds
|
|
1313
|
+
'*/',
|
|
1314
|
+
'*:',
|
|
1315
|
+
'--',
|
|
1316
|
+
'/*',
|
|
1317
|
+
'//'
|
|
1318
|
+
],
|
|
1319
|
+
|
|
1320
|
+
symbols: /[=><!~?&+\-*\/\^%#@]+/,
|
|
1321
|
+
|
|
1322
|
+
tokenizer: {
|
|
1323
|
+
root: [
|
|
1324
|
+
[
|
|
1325
|
+
/[a-z_\/$%@]([\w\/$%]|-(?!>))*/, // exclude '->' selector
|
|
1326
|
+
{
|
|
1327
|
+
cases: {
|
|
1328
|
+
'@typeKeywords': 'type',
|
|
1329
|
+
'@keywords': 'keyword',
|
|
1330
|
+
'@cdsLanguage': 'annotation',
|
|
1331
|
+
'@derivedTypes': 'type',
|
|
1332
|
+
'@builtinFunctions': 'type',
|
|
1333
|
+
'@builtinMethods': 'type',
|
|
1334
|
+
'@operators': 'key',
|
|
1335
|
+
'@default': 'identifier'
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
|
|
1340
|
+
[/<[\w]+>/, 'identifier'], // field symbols
|
|
1341
|
+
|
|
1342
|
+
[/##[\w|_]+/, 'comment'], // pragmas
|
|
1343
|
+
|
|
1344
|
+
{ include: '@whitespace' },
|
|
1345
|
+
|
|
1346
|
+
[/[:,.]/, 'delimiter'],
|
|
1347
|
+
|
|
1348
|
+
[/[{}()\[\]]/, '@brackets'],
|
|
1349
|
+
|
|
1350
|
+
[
|
|
1351
|
+
/@symbols/,
|
|
1352
|
+
{
|
|
1353
|
+
cases: {
|
|
1354
|
+
'@selectors': 'tag',
|
|
1355
|
+
'@operators': 'key',
|
|
1356
|
+
'@default': ''
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
|
|
1361
|
+
[/'/, { token: 'string', bracket: '@open', next: '@stringquote' }],
|
|
1362
|
+
[/`/, { token: 'string', bracket: '@open', next: '@stringping' }],
|
|
1363
|
+
[/\|/, { token: 'string', bracket: '@open', next: '@stringtemplate' }],
|
|
1364
|
+
|
|
1365
|
+
[/\d+/, 'number']
|
|
1366
|
+
],
|
|
1367
|
+
|
|
1368
|
+
stringtemplate: [
|
|
1369
|
+
[/[^\\\|]+/, 'string'],
|
|
1370
|
+
[/\\\|/, 'string'],
|
|
1371
|
+
[/\|/, { token: 'string', bracket: '@close', next: '@pop' }]
|
|
1372
|
+
],
|
|
1373
|
+
|
|
1374
|
+
stringping: [
|
|
1375
|
+
[/[^\\`]+/, 'string'],
|
|
1376
|
+
[/`/, { token: 'string', bracket: '@close', next: '@pop' }]
|
|
1377
|
+
],
|
|
1378
|
+
|
|
1379
|
+
stringquote: [
|
|
1380
|
+
[/[^\\']+/, 'string'],
|
|
1381
|
+
[/'/, { token: 'string', bracket: '@close', next: '@pop' }]
|
|
1382
|
+
],
|
|
1383
|
+
|
|
1384
|
+
whitespace: [
|
|
1385
|
+
[/[ \t\r\n]+/, ''],
|
|
1386
|
+
[/^\*.*$/, 'comment'],
|
|
1387
|
+
[/\".*$/, 'comment']
|
|
1388
|
+
]
|
|
1389
|
+
}
|
|
1390
|
+
};
|