objective-c-AMP4W427.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js
  3. var conf = {
  4. comments: {
  5. lineComment: "//",
  6. blockComment: ["/*", "*/"]
  7. },
  8. brackets: [
  9. ["{", "}"],
  10. ["[", "]"],
  11. ["(", ")"]
  12. ],
  13. autoClosingPairs: [
  14. { open: "{", close: "}" },
  15. { open: "[", close: "]" },
  16. { open: "(", close: ")" },
  17. { open: '"', close: '"' },
  18. { open: "'", close: "'" }
  19. ],
  20. surroundingPairs: [
  21. { open: "{", close: "}" },
  22. { open: "[", close: "]" },
  23. { open: "(", close: ")" },
  24. { open: '"', close: '"' },
  25. { open: "'", close: "'" }
  26. ]
  27. };
  28. var language = {
  29. defaultToken: "",
  30. tokenPostfix: ".objective-c",
  31. keywords: [
  32. "#import",
  33. "#include",
  34. "#define",
  35. "#else",
  36. "#endif",
  37. "#if",
  38. "#ifdef",
  39. "#ifndef",
  40. "#ident",
  41. "#undef",
  42. "@class",
  43. "@defs",
  44. "@dynamic",
  45. "@encode",
  46. "@end",
  47. "@implementation",
  48. "@interface",
  49. "@package",
  50. "@private",
  51. "@protected",
  52. "@property",
  53. "@protocol",
  54. "@public",
  55. "@selector",
  56. "@synthesize",
  57. "__declspec",
  58. "assign",
  59. "auto",
  60. "BOOL",
  61. "break",
  62. "bycopy",
  63. "byref",
  64. "case",
  65. "char",
  66. "Class",
  67. "const",
  68. "copy",
  69. "continue",
  70. "default",
  71. "do",
  72. "double",
  73. "else",
  74. "enum",
  75. "extern",
  76. "FALSE",
  77. "false",
  78. "float",
  79. "for",
  80. "goto",
  81. "if",
  82. "in",
  83. "int",
  84. "id",
  85. "inout",
  86. "IMP",
  87. "long",
  88. "nil",
  89. "nonatomic",
  90. "NULL",
  91. "oneway",
  92. "out",
  93. "private",
  94. "public",
  95. "protected",
  96. "readwrite",
  97. "readonly",
  98. "register",
  99. "return",
  100. "SEL",
  101. "self",
  102. "short",
  103. "signed",
  104. "sizeof",
  105. "static",
  106. "struct",
  107. "super",
  108. "switch",
  109. "typedef",
  110. "TRUE",
  111. "true",
  112. "union",
  113. "unsigned",
  114. "volatile",
  115. "void",
  116. "while"
  117. ],
  118. decpart: /\d(_?\d)*/,
  119. decimal: /0|@decpart/,
  120. tokenizer: {
  121. root: [
  122. { include: "@comments" },
  123. { include: "@whitespace" },
  124. { include: "@numbers" },
  125. { include: "@strings" },
  126. [/[,:;]/, "delimiter"],
  127. [/[{}\[\]()<>]/, "@brackets"],
  128. [
  129. /[a-zA-Z@#]\w*/,
  130. {
  131. cases: {
  132. "@keywords": "keyword",
  133. "@default": "identifier"
  134. }
  135. }
  136. ],
  137. [/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]
  138. ],
  139. whitespace: [[/\s+/, "white"]],
  140. comments: [
  141. ["\\/\\*", "comment", "@comment"],
  142. ["\\/\\/+.*", "comment"]
  143. ],
  144. comment: [
  145. ["\\*\\/", "comment", "@pop"],
  146. [".", "comment"]
  147. ],
  148. numbers: [
  149. [/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"],
  150. [
  151. /@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,
  152. {
  153. cases: {
  154. "(\\d)*": "number",
  155. $0: "number.float"
  156. }
  157. }
  158. ]
  159. ],
  160. strings: [
  161. [/'$/, "string.escape", "@popall"],
  162. [/'/, "string.escape", "@stringBody"],
  163. [/"$/, "string.escape", "@popall"],
  164. [/"/, "string.escape", "@dblStringBody"]
  165. ],
  166. stringBody: [
  167. [/[^\\']+$/, "string", "@popall"],
  168. [/[^\\']+/, "string"],
  169. [/\\./, "string"],
  170. [/'/, "string.escape", "@popall"],
  171. [/\\$/, "string"]
  172. ],
  173. dblStringBody: [
  174. [/[^\\"]+$/, "string", "@popall"],
  175. [/[^\\"]+/, "string"],
  176. [/\\./, "string"],
  177. [/"/, "string.escape", "@popall"],
  178. [/\\$/, "string"]
  179. ]
  180. }
  181. };
  182. export {
  183. conf,
  184. language
  185. };
  186. /*! Bundled license information:
  187. monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js:
  188. (*!-----------------------------------------------------------------------------
  189. * Copyright (c) Microsoft Corporation. All rights reserved.
  190. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  191. * Released under the MIT license
  192. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  193. *-----------------------------------------------------------------------------*)
  194. */
  195. //# sourceMappingURL=objective-c-AMP4W427.js.map