tcl-YAJQKTAF.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/tcl/tcl.js
  3. var conf = {
  4. brackets: [
  5. ["{", "}"],
  6. ["[", "]"],
  7. ["(", ")"]
  8. ],
  9. autoClosingPairs: [
  10. { open: "{", close: "}" },
  11. { open: "[", close: "]" },
  12. { open: "(", close: ")" },
  13. { open: '"', close: '"' },
  14. { open: "'", close: "'" }
  15. ],
  16. surroundingPairs: [
  17. { open: "{", close: "}" },
  18. { open: "[", close: "]" },
  19. { open: "(", close: ")" },
  20. { open: '"', close: '"' },
  21. { open: "'", close: "'" }
  22. ]
  23. };
  24. var language = {
  25. tokenPostfix: ".tcl",
  26. specialFunctions: [
  27. "set",
  28. "unset",
  29. "rename",
  30. "variable",
  31. "proc",
  32. "coroutine",
  33. "foreach",
  34. "incr",
  35. "append",
  36. "lappend",
  37. "linsert",
  38. "lreplace"
  39. ],
  40. mainFunctions: [
  41. "if",
  42. "then",
  43. "elseif",
  44. "else",
  45. "case",
  46. "switch",
  47. "while",
  48. "for",
  49. "break",
  50. "continue",
  51. "return",
  52. "package",
  53. "namespace",
  54. "catch",
  55. "exit",
  56. "eval",
  57. "expr",
  58. "uplevel",
  59. "upvar"
  60. ],
  61. builtinFunctions: [
  62. "file",
  63. "info",
  64. "concat",
  65. "join",
  66. "lindex",
  67. "list",
  68. "llength",
  69. "lrange",
  70. "lsearch",
  71. "lsort",
  72. "split",
  73. "array",
  74. "parray",
  75. "binary",
  76. "format",
  77. "regexp",
  78. "regsub",
  79. "scan",
  80. "string",
  81. "subst",
  82. "dict",
  83. "cd",
  84. "clock",
  85. "exec",
  86. "glob",
  87. "pid",
  88. "pwd",
  89. "close",
  90. "eof",
  91. "fblocked",
  92. "fconfigure",
  93. "fcopy",
  94. "fileevent",
  95. "flush",
  96. "gets",
  97. "open",
  98. "puts",
  99. "read",
  100. "seek",
  101. "socket",
  102. "tell",
  103. "interp",
  104. "after",
  105. "auto_execok",
  106. "auto_load",
  107. "auto_mkindex",
  108. "auto_reset",
  109. "bgerror",
  110. "error",
  111. "global",
  112. "history",
  113. "load",
  114. "source",
  115. "time",
  116. "trace",
  117. "unknown",
  118. "unset",
  119. "update",
  120. "vwait",
  121. "winfo",
  122. "wm",
  123. "bind",
  124. "event",
  125. "pack",
  126. "place",
  127. "grid",
  128. "font",
  129. "bell",
  130. "clipboard",
  131. "destroy",
  132. "focus",
  133. "grab",
  134. "lower",
  135. "option",
  136. "raise",
  137. "selection",
  138. "send",
  139. "tk",
  140. "tkwait",
  141. "tk_bisque",
  142. "tk_focusNext",
  143. "tk_focusPrev",
  144. "tk_focusFollowsMouse",
  145. "tk_popup",
  146. "tk_setPalette"
  147. ],
  148. symbols: /[=><!~?:&|+\-*\/\^%]+/,
  149. brackets: [
  150. { open: "(", close: ")", token: "delimiter.parenthesis" },
  151. { open: "{", close: "}", token: "delimiter.curly" },
  152. { open: "[", close: "]", token: "delimiter.square" }
  153. ],
  154. escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  155. variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,
  156. tokenizer: {
  157. root: [
  158. [
  159. /[a-zA-Z_]\w*/,
  160. {
  161. cases: {
  162. "@specialFunctions": {
  163. token: "keyword.flow",
  164. next: "@specialFunc"
  165. },
  166. "@mainFunctions": "keyword",
  167. "@builtinFunctions": "variable",
  168. "@default": "operator.scss"
  169. }
  170. }
  171. ],
  172. [/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"],
  173. { include: "@whitespace" },
  174. [/[{}()\[\]]/, "@brackets"],
  175. [/@symbols/, "operator"],
  176. [/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
  177. [/@variables/, "type.identifier"],
  178. [/\.(?!\d|\.)[\w\-]*/, "operator.sql"],
  179. [/\d+(\.\d+)?/, "number"],
  180. [/\d+/, "number"],
  181. [/;/, "delimiter"],
  182. [/"/, { token: "string.quote", bracket: "@open", next: "@dstring" }],
  183. [/'/, { token: "string.quote", bracket: "@open", next: "@sstring" }]
  184. ],
  185. dstring: [
  186. [/\[/, { token: "@brackets", next: "@nestedCall" }],
  187. [/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
  188. [/@variables/, "type.identifier"],
  189. [/[^\\$\[\]"]+/, "string"],
  190. [/@escapes/, "string.escape"],
  191. [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
  192. ],
  193. sstring: [
  194. [/\[/, { token: "@brackets", next: "@nestedCall" }],
  195. [/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
  196. [/@variables/, "type.identifier"],
  197. [/[^\\$\[\]']+/, "string"],
  198. [/@escapes/, "string.escape"],
  199. [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
  200. ],
  201. whitespace: [
  202. [/[ \t\r\n]+/, "white"],
  203. [/#.*\\$/, { token: "comment", next: "@newlineComment" }],
  204. [/#.*(?!\\)$/, "comment"]
  205. ],
  206. newlineComment: [
  207. [/.*\\$/, "comment"],
  208. [/.*(?!\\)$/, { token: "comment", next: "@pop" }]
  209. ],
  210. nestedVariable: [
  211. [/[^\{\}\$]+/, "type.identifier"],
  212. [/\}/, { token: "identifier", next: "@pop" }]
  213. ],
  214. nestedCall: [
  215. [/\[/, { token: "@brackets", next: "@nestedCall" }],
  216. [/\]/, { token: "@brackets", next: "@pop" }],
  217. { include: "root" }
  218. ],
  219. specialFunc: [
  220. [/"/, { token: "string", next: "@dstring" }],
  221. [/'/, { token: "string", next: "@sstring" }],
  222. [/\S+/, { token: "type", next: "@pop" }]
  223. ]
  224. }
  225. };
  226. export {
  227. conf,
  228. language
  229. };
  230. /*! Bundled license information:
  231. monaco-editor/esm/vs/basic-languages/tcl/tcl.js:
  232. (*!-----------------------------------------------------------------------------
  233. * Copyright (c) Microsoft Corporation. All rights reserved.
  234. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  235. * Released under the MIT license
  236. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  237. *-----------------------------------------------------------------------------*)
  238. */
  239. //# sourceMappingURL=tcl-YAJQKTAF.js.map