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:
443 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = gcode
|
---|
| 4 | gcode.displayName = 'gcode'
|
---|
| 5 | gcode.aliases = []
|
---|
| 6 | function gcode(Prism) {
|
---|
| 7 | Prism.languages.gcode = {
|
---|
| 8 | comment: /;.*|\B\(.*?\)\B/,
|
---|
| 9 | string: {
|
---|
| 10 | pattern: /"(?:""|[^"])*"/,
|
---|
| 11 | greedy: true
|
---|
| 12 | },
|
---|
| 13 | keyword: /\b[GM]\d+(?:\.\d+)?\b/,
|
---|
| 14 | property: /\b[A-Z]/,
|
---|
| 15 | checksum: {
|
---|
| 16 | pattern: /(\*)\d+/,
|
---|
| 17 | lookbehind: true,
|
---|
| 18 | alias: 'number'
|
---|
| 19 | },
|
---|
| 20 | // T0:0:0
|
---|
| 21 | punctuation: /[:*]/
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.