azcli.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*!-----------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
  4. * Released under the MIT license
  5. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  6. *-----------------------------------------------------------------------------*/
  7. define("vs/basic-languages/azcli/azcli",[],()=>{
  8. var moduleExports = (() => {
  9. var __defProp = Object.defineProperty;
  10. var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
  11. var __export = (target, all) => {
  12. __markAsModule(target);
  13. for (var name in all)
  14. __defProp(target, name, { get: all[name], enumerable: true });
  15. };
  16. // src/basic-languages/azcli/azcli.ts
  17. var azcli_exports = {};
  18. __export(azcli_exports, {
  19. conf: () => conf,
  20. language: () => language
  21. });
  22. var conf = {
  23. comments: {
  24. lineComment: "#"
  25. }
  26. };
  27. var language = {
  28. defaultToken: "keyword",
  29. ignoreCase: true,
  30. tokenPostfix: ".azcli",
  31. str: /[^#\s]/,
  32. tokenizer: {
  33. root: [
  34. { include: "@comment" },
  35. [
  36. /\s-+@str*\s*/,
  37. {
  38. cases: {
  39. "@eos": { token: "key.identifier", next: "@popall" },
  40. "@default": { token: "key.identifier", next: "@type" }
  41. }
  42. }
  43. ],
  44. [
  45. /^-+@str*\s*/,
  46. {
  47. cases: {
  48. "@eos": { token: "key.identifier", next: "@popall" },
  49. "@default": { token: "key.identifier", next: "@type" }
  50. }
  51. }
  52. ]
  53. ],
  54. type: [
  55. { include: "@comment" },
  56. [
  57. /-+@str*\s*/,
  58. {
  59. cases: {
  60. "@eos": { token: "key.identifier", next: "@popall" },
  61. "@default": "key.identifier"
  62. }
  63. }
  64. ],
  65. [
  66. /@str+\s*/,
  67. {
  68. cases: {
  69. "@eos": { token: "string", next: "@popall" },
  70. "@default": "string"
  71. }
  72. }
  73. ]
  74. ],
  75. comment: [
  76. [
  77. /#.*$/,
  78. {
  79. cases: {
  80. "@eos": { token: "comment", next: "@popall" }
  81. }
  82. }
  83. ]
  84. ]
  85. }
  86. };
  87. return azcli_exports;
  88. })();
  89. return moduleExports;
  90. });