prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
18 lines (17 loc) • 335 B
JavaScript
import { l as e } from "../prismCore-5c7f03d0.js";
e.gcode = {
comment: /;.*|\B\(.*?\)\B/,
string: {
pattern: /"(?:""|[^"])*"/,
greedy: !0
},
keyword: /\b[GM]\d+(?:\.\d+)?\b/,
property: /\b[A-Z]/,
checksum: {
pattern: /(\*)\d+/,
lookbehind: !0,
alias: "number"
},
// T0:0:0
punctuation: /[:*]/
};