Files
docs/node_modules/prismjs/components/prism-gcode.js
yinxue 9e1b8bdc9d
Some checks failed
CI Pipeline / build (push) Failing after 3m23s
first-commit
2025-08-27 14:05:33 +08:00

17 lines
295 B
JavaScript

Prism.languages.gcode = {
'comment': /;.*|\B\(.*?\)\B/,
'string': {
pattern: /"(?:""|[^"])*"/,
greedy: true
},
'keyword': /\b[GM]\d+(?:\.\d+)?\b/,
'property': /\b[A-Z]/,
'checksum': {
pattern: /(\*)\d+/,
lookbehind: true,
alias: 'number'
},
// T0:0:0
'punctuation': /[:*]/
};