ISO-Share/node_modules/prismjs/components/prism-gcode.js

17 lines
295 B
JavaScript
Raw Permalink Normal View History

2024-11-26 21:16:11 +01:00
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': /[:*]/
};