diff --git a/components/prism-mcfunction.js b/components/prism-mcfunction.js new file mode 100644 index 000000000..145ea2606 --- /dev/null +++ b/components/prism-mcfunction.js @@ -0,0 +1,8 @@ +Prism.languages.mcfunction = { + 'comment': /^#.*/m, + 'keyword': /\b(?:say|give|execute|run|as|at|if|unless|summon)\b/, + 'selector': /@\w+/, + 'item': /minecraft:\w+/, + 'number': /\b\d+\b/, + 'punctuation': /[~^]/, +};