|
83 | 83 | "gcodes": { |
84 | 84 | "patterns": [ |
85 | 85 | { |
86 | | - "match": "[gG](1)?5[4-9](.1)?\\s?(P[0-9]{1,3})?", |
| 86 | + "match": "(?i)[G](1)?5[4-9](.1)?\\s?(P[0-9]{1,3})?", |
87 | 87 | "name": "constant.numeric.gcode" |
88 | 88 | }, |
89 | 89 | { |
90 | | - "match": "[gG]1[1-2][0-9]", |
| 90 | + "match": "(?i)[G]1[1-2][0-9]", |
91 | 91 | "name": "constant.numeric.gcode" |
92 | 92 | }, |
93 | 93 | { |
94 | | - "match": "[gG]15\\s?(H[0-9]{1,2})?", |
| 94 | + "match": "(?i)[G]15\\s?(H[0-9]{1,2})?", |
95 | 95 | "name": "constant.numeric.gcode" |
96 | 96 | }, |
97 | 97 | { |
98 | | - "match": "[gG][0-9]{1,3}(\\.[0-9])?", |
| 98 | + "match": "(?i)[G][0-9]{1,3}(\\.[0-9])?", |
99 | 99 | "name": "markup.bold.gcode" |
100 | 100 | } |
101 | 101 | ] |
102 | 102 | }, |
103 | 103 | "mcodes": { |
104 | 104 | "patterns": [ |
105 | 105 | { |
106 | | - "match": "[mM][0-9]{1,3}", |
| 106 | + "match": "(?i)[M][0-9]{1,3}", |
107 | 107 | "name": "keyword.operator.quantifier.regexp.gcode" |
108 | 108 | } |
109 | 109 | ] |
|
131 | 131 | "speedsfeeds": { |
132 | 132 | "patterns": [ |
133 | 133 | { |
134 | | - "match": "([sS])\\s?(\\d+|(?=[#\\[]))", |
| 134 | + "match": "(?i)([S])\\s?(\\d+|(?=[#\\[]))", |
135 | 135 | "name": "constant.language.gcode" |
136 | 136 | }, |
137 | 137 | { |
138 | | - "match": "([eEfF])\\s?\\.?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
| 138 | + "match": "(?i)([EF])\\s?\\.?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
139 | 139 | "name": "constant.language.gcode" |
140 | 140 | } |
141 | 141 | ] |
142 | 142 | }, |
143 | 143 | "prognumbers": { |
144 | 144 | "patterns": [ |
145 | 145 | { |
146 | | - "match": "(^[nN])(\\d+)", |
| 146 | + "match": "(?i)(^[N])(\\d+)", |
147 | 147 | "name": "constant.numeric.gcode" |
148 | 148 | }, |
149 | 149 | { |
150 | | - "match": "(^[oO])(\\d+)?", |
| 150 | + "match": "(?i)(^[O])(\\d+)?", |
151 | 151 | "name": "string.regexp.gcode" |
152 | 152 | }, |
153 | 153 | { |
154 | | - "match": "([pP])\\s?(\\d?\\.?\\d+\\.?|\\.?(?=[#\\[]))", |
| 154 | + "match": "(?i)([P])\\s?(\\d?\\.?\\d+\\.?|\\.?(?=[#\\[]))", |
155 | 155 | "name": "string.regexp.gcode" |
156 | 156 | } |
157 | 157 | ] |
158 | 158 | }, |
159 | 159 | "coords": { |
160 | 160 | "patterns": [ |
161 | 161 | { |
162 | | - "match": "([xX])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
| 162 | + "match": "(?i)([X])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
163 | 163 | "name": "string.gcode" |
164 | 164 | }, |
165 | 165 | { |
166 | | - "match": "([yY])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
| 166 | + "match": "(?i)([Y])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
167 | 167 | "name": "string.gcode" |
168 | 168 | }, |
169 | 169 | { |
170 | | - "match": "([zZ])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
| 170 | + "match": "(?i)([Z])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
171 | 171 | "name": "invalid.gcode" |
172 | 172 | }, |
173 | 173 | { |
174 | | - "match": "([aAbBcC])\\s?(\\-*\\d?\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
| 174 | + "match": "(?i)([ABC])\\s?(\\-*\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
175 | 175 | "name": "constant.character.escape.gcode" |
176 | 176 | } |
177 | 177 | ] |
178 | 178 | }, |
179 | 179 | "tools": { |
180 | 180 | "patterns": [ |
181 | 181 | { |
182 | | - "match": "([dD])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
| 182 | + "match": "(?i)([D])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
183 | 183 | "name": "constant.character.gcode" |
184 | 184 | }, |
185 | 185 | { |
186 | | - "match": "([hH])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
| 186 | + "match": "(?i)([H])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
187 | 187 | "name": "constant.character.gcode" |
188 | 188 | }, |
189 | 189 | { |
190 | | - "match": "([tT])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
| 190 | + "match": "(?i)([T])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))", |
191 | 191 | "name": "constant.character.gcode" |
192 | 192 | } |
193 | 193 | ] |
194 | 194 | }, |
195 | 195 | "modifiers": { |
196 | 196 | "patterns": [ |
197 | 197 | { |
198 | | - "match": "([iIjJkK])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
| 198 | + "match": "(?i)([IJK])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))", |
199 | 199 | "name": "constant.character.escape.gcode" |
200 | 200 | }, |
201 | 201 | { |
202 | | - "match": "([qQrR])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))", |
| 202 | + "match": "(?i)([QR])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))", |
203 | 203 | "name": "support.constant.math.gcode" |
204 | 204 | }, |
205 | 205 | { |
206 | | - "match": "([uUwW])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))", |
| 206 | + "match": "(?i)([UW])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))", |
207 | 207 | "name": "support.constant.math.gcode" |
208 | 208 | } |
209 | 209 | ] |
|
0 commit comments