source: node_modules/refractor/node_modules/prismjs/components/prism-gcode.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 295 bytes
Line 
1Prism.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};
Note: See TracBrowser for help on using the repository browser.