G-code parsing: enable ; comments

This commit is contained in:
2023-05-05 11:18:30 +03:00
parent 1fd308a648
commit 0d8bff6fd5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ grbl::program::program(std::string filename) {
}
static auto comment_re = std::regex(R"(\(([^)]*)\))");
static auto gcode_re = std::regex(R"(([a-zA-Z0-9\s.\-]+)\s*(\(([^)]*)\))?)");
static auto gcode_re = std::regex(R"(([a-zA-Z0-9\s.\-]+)\s*(;.*|\(([^)]*)\))?)");
bool grbl::program::load_from_stream(std::istream& in) {
instructions.clear();