1 | Prism.languages.gcode = {
|
2 | 'comment': /;.*|\B\(.*?\)\B/,
|
3 | 'string': {
|
4 | pattern: /"(?:""|[^"])*"/,
|
5 | greedy: true
|
6 | },
|
7 | 'keyword': /\b[GM]\d+(?:\.\d+)?\b/,
|
8 | 'property': /\b[A-Z]/,
|
9 | 'checksum': {
|
10 | pattern: /(\*)\d+/,
|
11 | lookbehind: true,
|
12 | alias: 'number'
|
13 | },
|
14 | // T0:0:0
|
15 | 'punctuation': /[:*]/
|
16 | };
|