From a7241a734b38615d20a779c794ffdd97d16673d1 Mon Sep 17 00:00:00 2001 From: Pamella Fraga Date: Mon, 4 Aug 2025 07:42:43 -0300 Subject: [PATCH] =?UTF-8?q?feat(mcfunction):=20adiciona=20defini=C3=A7?= =?UTF-8?q?=C3=A3o=20b=C3=A1sica=20da=20linguagem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/prism-mcfunction.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 components/prism-mcfunction.js 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': /[~^]/, +};