tokens_batchfile.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [[
  2. "start",
  3. ["comment.line.colons.dosbatch",":: batch file highlighting in Ace!"]
  4. ],[
  5. "start",
  6. ["text","@"],
  7. ["keyword.command.dosbatch","echo"],
  8. ["text"," off"]
  9. ],[
  10. "start"
  11. ],[
  12. "start",
  13. ["keyword.control.statement.dosbatch","CALL"],
  14. ["text"," "],
  15. ["keyword.command.dosbatch","set"],
  16. ["text"," var1="],
  17. ["constant.numeric","%cd%"]
  18. ],[
  19. "start",
  20. ["keyword.command.dosbatch","echo"],
  21. ["text"," unhide everything in "],
  22. ["constant.numeric","%var1%"],
  23. ["text","!"]
  24. ],[
  25. "start"
  26. ],[
  27. "start",
  28. ["comment.line.colons.dosbatch",":: FOR loop in bat is super strange!"]
  29. ],[
  30. "start",
  31. ["keyword.control.repeat.dosbatch","FOR"],
  32. ["text"," /f "],
  33. ["punctuation.definition.string.begin.shell","\""],
  34. ["string.quoted.double.dosbatch","tokens=*"],
  35. ["punctuation.definition.string.end.shell","\""],
  36. ["text"," "],
  37. ["constant.numeric","%%G"],
  38. ["text"," IN ('"],
  39. ["keyword.command.dosbatch","dir"],
  40. ["text"," /A:D /b') DO ("]
  41. ],[
  42. "start",
  43. ["keyword.command.dosbatch","echo"],
  44. ["text"," "],
  45. ["constant.numeric","%var1%%%G"]
  46. ],[
  47. "start",
  48. ["keyword.command.dosbatch","attrib"],
  49. ["text"," -r -a -h -s "],
  50. ["punctuation.definition.string.begin.shell","\""],
  51. ["constant.numeric","%var1%%%G"],
  52. ["punctuation.definition.string.end.shell","\""],
  53. ["text"," /D /S"]
  54. ],[
  55. "start",
  56. ["text",")"]
  57. ],[
  58. "start"
  59. ],[
  60. "start",
  61. ["keyword.command.dosbatch","pause"]
  62. ],[
  63. "start"
  64. ],[
  65. "start",
  66. ["doc.comment","REM"],
  67. ["comment"," that's all"]
  68. ],[
  69. "start"
  70. ]]