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 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. T0 (This is a comment) S12
  10. ;^entity.command.gcode
  11. ; ^punctuation.paren.comment.open
  12. ; ^paren.comment.gcode
  13. ; ^punctuation.paren.comment.close
  14. ; ^keyword.param.gcode
  15. ; ^constant.numeric.param.gcode
  16. M20 P'/path/to/macro/macro.g' R12
  17. ;<-entity.command.gcode
  18. ;^constant.numeric.command.gcode
  19. ; ^keyword.param.gcode
  20. ; ^punctuation.quote.single.open.gcode
  21. ; ^string.quoted.single.gcode
  22. ; ^punctuation.quote.single.close.gcode
  23. ; ^keyword.param.gcode
  24. ; ^constant.numeric.param.gcode
  25. M117 This is a message ; and comment
  26. ;<-entity.command.gcode
  27. ;^constant.numeric.command.gcode
  28. ; ^string.unquoted.gcode
  29. ; ^punctuation.comment.eol.start
  30. ; ^comment.gcode
  31. M118 This is a message ; and comment
  32. ;<-entity.command.gcode
  33. ;^constant.numeric.command.gcode
  34. ; ^string.unquoted.gcode
  35. ; ^punctuation.comment.eol.start
  36. ; ^comment.gcode
  37. M98 P'/path/to/macro/macro.g' R12
  38. ;<-entity.command.gcode
  39. ;^constant.numeric.command.gcode
  40. ; ^keyword.param.gcode
  41. ; ^punctuation.quote.single.open.gcode
  42. ; ^string.quoted.single.gcode
  43. ; ^punctuation.quote.single.close.gcode
  44. M98 P"/path/to/macro/macro.g" R12
  45. ;<-entity.command.gcode
  46. ;^constant.numeric.command.gcode
  47. ; ^keyword.param.gcode
  48. ; ^punctuation.quote.double.open.gcode
  49. ; ^string.quoted.double.gcode
  50. ; ^punctuation.quote.double.close.gcode
  51. M32 S100 P0 !/path/file.gco#
  52. ;<-entity.command.gcode
  53. ;^constant.numeric.command.gcode
  54. ; ^keyword.param.gcode
  55. ; ^constant.numeric.param.gcode
  56. ; ^punctuation.string.path.open.gcode
  57. ; ^string.unquoted.path.gcode
  58. ; ^punctuation.string.path.close.gcode
  59. G28 ; Home All
  60. ;<-entity.command.gcode
  61. ;^constant.numeric.command.gcode
  62. ; ^punctuation.comment.eol.start
  63. ; ^comment.gcode
  64. N123 G1 X5 Y0 *64 ; EOL Comment
  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. N234 G1 X-5 Y+2 *64 error
  74. ;<-entity.nword.gcode
  75. ;^constant.numeric.line-number.gcode
  76. ; ^entity.command.gcode
  77. ; ^constant.numeric.command.gcode
  78. ; ^keyword.param.gcode
  79. ; ^constant.numeric.param.gcode
  80. ; ^punctuation.marker.checksum.gcode
  81. ; ^constant.numeric.checksum.gcode
  82. ; ^invalid.error.syntax.gcode
  83. N234 M107 *64
  84. ; ^-invalid.error.syntax.gcode
  85. M92 E304.5:304.5:420:420:420:420 ; EOL Comment
  86. ;<-entity.command.gcode
  87. ;^constant.numeric.command.gcode
  88. ; ^keyword.param.gcode
  89. ; ^constant.numeric.param.gcode
  90. ; ^constant.numeric.param.gcode
  91. ; ^punctuation.comment.eol.start
  92. ; ^comment.gcode