Skip to content

Commit c13c034

Browse files
committed
qtvcp -gcode editor: fix axis with space after highlighting
Small improvement axis letter with a space after would not be colored properly.
1 parent 4067a09 commit c13c034

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qtvcp/widgets/gcode_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def styleText(self, start, end):
117117
1: r"(?:[N]\d+|\(.*?\)|;.*)", # LineNo and Comment
118118
2: r"[G]\d{1,2}\.\d|[G]\d{1,2}", # Gcode
119119
3: r"[M]\d{1,3}", # Mcode
120-
4: r"[XYZABCUVW]{1}(?:[+-]?[\d\.]+|\#\<.*\>|\[.*\]|\#\d+)", # Axis
120+
4: r"[XYZABCUVW]{1}(?:[+-]?[\d\.\s]+|\#\<.*\>|\[.*\]|\#\d+)", # Axis
121121
5: r"[EFHIJKDQLRPST$]{1}(?:[+-]?[\d\.]+|\#\<.*\>|\[.*\]|\#\d+)", # Other (feed,rpm,radius,etc)
122122
0: r"\s+|\w+|\W", # Default (fallback)
123123
}

0 commit comments

Comments
 (0)