tokens_vbscript.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. [[
  2. "start",
  3. ["text","myfilename "],
  4. ["keyword.operator.asp","="],
  5. ["text"," "],
  6. ["punctuation.definition.string.begin.asp","\""],
  7. ["string.quoted.double.asp","C:\\Wikipedia - VBScript - Example - Hello World.txt\""]
  8. ],[
  9. "start"
  10. ],[
  11. "start",
  12. ["text","MakeHelloWorldFile myfilename"]
  13. ],[
  14. "start"
  15. ],[
  16. "state_4",
  17. ["meta.leading-space"," "]
  18. ],[
  19. "state_4"
  20. ],[
  21. "start",
  22. ["storage.type.function.asp","Sub"],
  23. ["text"," "],
  24. ["entity.name.function.asp","MakeHelloWorldFile"],
  25. ["text"," "],
  26. ["punctuation.definition.parameters.asp","("],
  27. ["variable.parameter.function.asp","FileName"],
  28. ["punctuation.definition.parameters.asp",")"]
  29. ],[
  30. "start"
  31. ],[
  32. "start",
  33. ["punctuation.definition.comment.asp","'"],
  34. ["comment.line.apostrophe.asp","Create a new file in C: drive or overwrite existing file"]
  35. ],[
  36. "start"
  37. ],[
  38. "start",
  39. ["meta.odd-tab.spaces"," "],
  40. ["meta.leading-space"," "],
  41. ["storage.type.asp","Set"],
  42. ["text"," FSO "],
  43. ["keyword.operator.asp","="],
  44. ["text"," "],
  45. ["support.function.asp","CreateObject"],
  46. ["text","("],
  47. ["punctuation.definition.string.begin.asp","\""],
  48. ["string.quoted.double.asp","Scripting.FileSystemObject\""],
  49. ["text",")"]
  50. ],[
  51. "start"
  52. ],[
  53. "start",
  54. ["meta.odd-tab.spaces"," "],
  55. ["meta.leading-space"," "],
  56. ["keyword.control.asp","If"],
  57. ["text"," FSO."],
  58. ["entity.name.function.asp","FileExists"],
  59. ["text","(FileName) "],
  60. ["keyword.control.asp","Then"],
  61. ["text"," "]
  62. ],[
  63. "start"
  64. ],[
  65. "start",
  66. ["meta.odd-tab.spaces"," "],
  67. ["meta.even-tab.spaces"," "],
  68. ["meta.odd-tab.spaces"," "],
  69. ["text","Answer "],
  70. ["keyword.operator.asp","="],
  71. ["text"," "],
  72. ["support.function.vb.asp","MsgBox"],
  73. ["text"," ("],
  74. ["punctuation.definition.string.begin.asp","\""],
  75. ["string.quoted.double.asp","File \""],
  76. ["text"," "],
  77. ["keyword.operator.asp","&"],
  78. ["text"," FileName "],
  79. ["keyword.operator.asp","&"],
  80. ["text"," "],
  81. ["punctuation.definition.string.begin.asp","\""],
  82. ["string.quoted.double.asp"," exists ... OK to overwrite?\""],
  83. ["text",", vbOKCancel)"]
  84. ],[
  85. "start"
  86. ],[
  87. "start",
  88. ["meta.odd-tab.spaces"," "],
  89. ["meta.even-tab.spaces"," "],
  90. ["meta.odd-tab.spaces"," "],
  91. ["punctuation.definition.comment.asp","'"],
  92. ["comment.line.apostrophe.asp","If button selected is not OK, then quit now"]
  93. ],[
  94. "start"
  95. ],[
  96. "start",
  97. ["meta.odd-tab.spaces"," "],
  98. ["meta.even-tab.spaces"," "],
  99. ["meta.odd-tab.spaces"," "],
  100. ["punctuation.definition.comment.asp","'"],
  101. ["comment.line.apostrophe.asp","vbOK is a language constant"]
  102. ],[
  103. "start"
  104. ],[
  105. "start",
  106. ["meta.odd-tab.spaces"," "],
  107. ["meta.even-tab.spaces"," "],
  108. ["meta.odd-tab.spaces"," "],
  109. ["keyword.control.asp","If"],
  110. ["text"," Answer "],
  111. ["keyword.operator.asp","<>"],
  112. ["text"," vbOK "],
  113. ["keyword.control.asp","Then"],
  114. ["text"," "],
  115. ["keyword.control.asp","Exit Sub"]
  116. ],[
  117. "start"
  118. ],[
  119. "start",
  120. ["meta.odd-tab.spaces"," "],
  121. ["meta.leading-space"," "],
  122. ["keyword.control.asp","Else"]
  123. ],[
  124. "start"
  125. ],[
  126. "start",
  127. ["meta.odd-tab.spaces"," "],
  128. ["meta.even-tab.spaces"," "],
  129. ["meta.odd-tab.spaces"," "],
  130. ["punctuation.definition.comment.asp","'"],
  131. ["comment.line.apostrophe.asp","Confirm OK to create"]
  132. ],[
  133. "start"
  134. ],[
  135. "start",
  136. ["meta.odd-tab.spaces"," "],
  137. ["meta.even-tab.spaces"," "],
  138. ["meta.odd-tab.spaces"," "],
  139. ["text","Answer "],
  140. ["keyword.operator.asp","="],
  141. ["text"," "],
  142. ["support.function.vb.asp","MsgBox"],
  143. ["text"," ("],
  144. ["punctuation.definition.string.begin.asp","\""],
  145. ["string.quoted.double.asp","File \""],
  146. ["text"," "],
  147. ["keyword.operator.asp","&"],
  148. ["text"," FileName "],
  149. ["keyword.operator.asp","&"],
  150. ["text"," "],
  151. ["punctuation.definition.string.begin.asp","\""],
  152. ["string.quoted.double.asp"," ... OK to create?\""],
  153. ["text",", vbOKCancel)"]
  154. ],[
  155. "start"
  156. ],[
  157. "start",
  158. ["meta.odd-tab.spaces"," "],
  159. ["meta.even-tab.spaces"," "],
  160. ["meta.odd-tab.spaces"," "],
  161. ["keyword.control.asp","If"],
  162. ["text"," Answer "],
  163. ["keyword.operator.asp","<>"],
  164. ["text"," vbOK "],
  165. ["keyword.control.asp","Then"],
  166. ["text"," "],
  167. ["keyword.control.asp","Exit Sub"]
  168. ],[
  169. "start"
  170. ],[
  171. "start",
  172. ["meta.odd-tab.spaces"," "],
  173. ["meta.leading-space"," "],
  174. ["keyword.control.asp","End If"]
  175. ],[
  176. "start"
  177. ],[
  178. "start",
  179. ["meta.odd-tab.spaces"," "],
  180. ["meta.leading-space"," "],
  181. ["punctuation.definition.comment.asp","'"],
  182. ["comment.line.apostrophe.asp","Create new file (or replace an existing file)"]
  183. ],[
  184. "start"
  185. ],[
  186. "start",
  187. ["meta.odd-tab.spaces"," "],
  188. ["meta.leading-space"," "],
  189. ["storage.type.asp","Set"],
  190. ["text"," FileObject "],
  191. ["keyword.operator.asp","="],
  192. ["text"," FSO.CreateTextFile (FileName)"]
  193. ],[
  194. "start"
  195. ],[
  196. "start",
  197. ["meta.odd-tab.spaces"," "],
  198. ["meta.leading-space"," "],
  199. ["text","FileObject.WriteLine "],
  200. ["punctuation.definition.string.begin.asp","\""],
  201. ["string.quoted.double.asp","Time ... \""],
  202. ["text"," "],
  203. ["keyword.operator.asp","&"],
  204. ["text"," "],
  205. ["support.function.vb.asp","Now"],
  206. ["text","()"]
  207. ],[
  208. "start"
  209. ],[
  210. "start",
  211. ["meta.odd-tab.spaces"," "],
  212. ["meta.leading-space"," "],
  213. ["text","FileObject.WriteLine "],
  214. ["punctuation.definition.string.begin.asp","\""],
  215. ["string.quoted.double.asp","Hello World\""]
  216. ],[
  217. "start"
  218. ],[
  219. "start",
  220. ["meta.odd-tab.spaces"," "],
  221. ["meta.leading-space"," "],
  222. ["text","FileObject."],
  223. ["entity.name.function.asp","Close"],
  224. ["text","()"]
  225. ],[
  226. "start"
  227. ],[
  228. "start",
  229. ["meta.odd-tab.spaces"," "],
  230. ["meta.leading-space"," "],
  231. ["support.function.vb.asp","MsgBox"],
  232. ["text"," "],
  233. ["punctuation.definition.string.begin.asp","\""],
  234. ["string.quoted.double.asp","File \""],
  235. ["text"," "],
  236. ["keyword.operator.asp","&"],
  237. ["text"," FileName "],
  238. ["keyword.operator.asp","&"],
  239. ["text"," "],
  240. ["punctuation.definition.string.begin.asp","\""],
  241. ["string.quoted.double.asp"," ... updated.\""]
  242. ],[
  243. "start"
  244. ],[
  245. "start",
  246. ["support.function.asp","End"],
  247. ["text"," "],
  248. ["storage.type.asp","Sub"]
  249. ]]