My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

syntax_test_G-code.gcode 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ; SYNTAX TEST "G-code.sublime-syntax"
  2. ; This is a G-code comment
  3. ;^comment
  4. G1 X100 Y100 ; Move to 100,100
  5. ;^entity.command.gcode
  6. ; ^keyword.param.gcode
  7. ; ^constant.numeric.param.gcode
  8. ; ^comment
  9. M20 P'/path/to/macro/macro.g' R12
  10. ;<-entity.command.gcode
  11. ;^constant.numeric.command.gcode
  12. ; ^keyword.param.gcode
  13. ; ^punctuation.quote.single.open.gcode
  14. ; ^string.quoted.single.gcode
  15. ; ^punctuation.quote.single.close.gcode
  16. M117 This is a message ; and comment
  17. ;<-entity.command.gcode
  18. ;^constant.numeric.command.gcode
  19. ; ^string.unquoted.gcode
  20. ; ^punctuation.comment.eol.start
  21. ; ^comment.gcode
  22. M118 This is a message ; and comment
  23. ;<-entity.command.gcode
  24. ;^constant.numeric.command.gcode
  25. ; ^string.unquoted.gcode
  26. ; ^punctuation.comment.eol.start
  27. ; ^comment.gcode
  28. M98 P'/path/to/macro/macro.g' R12
  29. ;<-entity.command.gcode
  30. ;^constant.numeric.command.gcode
  31. ; ^keyword.param.gcode
  32. ; ^punctuation.quote.single.open.gcode
  33. ; ^string.quoted.single.gcode
  34. ; ^punctuation.quote.single.close.gcode
  35. M98 P"/path/to/macro/macro.g" R12
  36. ;<-entity.command.gcode
  37. ;^constant.numeric.command.gcode
  38. ; ^keyword.param.gcode
  39. ; ^punctuation.quote.double.open.gcode
  40. ; ^string.quoted.double.gcode
  41. ; ^punctuation.quote.double.close.gcode
  42. M32 S100 P0 !/path/file.gco#
  43. ;<-entity.command.gcode
  44. ;^constant.numeric.command.gcode
  45. ; ^keyword.param.gcode
  46. ; ^constant.numeric.param.gcode
  47. ; ^punctuation.string.path.open.gcode
  48. ; ^string.unquoted.path.gcode
  49. ; ^punctuation.string.path.close.gcode
  50. G28 ; Home All
  51. ;<-entity.command.gcode
  52. ;^constant.numeric.command.gcode
  53. ; ^punctuation.comment.eol.start
  54. ; ^comment.gcode
  55. N123 G1 X5 Y0 *64 ; EOL Comment
  56. ;<-entity.nword.gcode
  57. ;^constant.numeric.line-number.gcode
  58. ; ^entity.command.gcode
  59. ; ^constant.numeric.command.gcode
  60. ; ^keyword.param.gcode
  61. ; ^constant.numeric.param.gcode
  62. ; ^punctuation.marker.checksum.gcode
  63. ; ^constant.numeric.checksum.gcode
  64. N234 G1 X-5 Y+2 *64 error
  65. ;<-entity.nword.gcode
  66. ;^constant.numeric.line-number.gcode
  67. ; ^entity.command.gcode
  68. ; ^constant.numeric.command.gcode
  69. ; ^keyword.param.gcode
  70. ; ^constant.numeric.param.gcode
  71. ; ^punctuation.marker.checksum.gcode
  72. ; ^constant.numeric.checksum.gcode
  73. ; ^invalid.error.syntax.gcode
  74. N234 M107 *64
  75. ; ^-invalid.error.syntax.gcode