From a4becd66bd58ad86112094b5a8f105bdb44982c2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 26 Dec 2024 11:05:25 +0000 Subject: [PATCH] feat: Add 'Protobuf' highlighting, closes #8141 --- shared/editor/extensions/Prism.ts | 1 + shared/editor/nodes/CodeFence.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/shared/editor/extensions/Prism.ts b/shared/editor/extensions/Prism.ts index fa4aa7eb61..8d65eb7228 100644 --- a/shared/editor/extensions/Prism.ts +++ b/shared/editor/extensions/Prism.ts @@ -39,6 +39,7 @@ export const LANGUAGES = { perl: "Perl", php: "PHP", powershell: "Powershell", + protobuf: "Protobuf", python: "Python", r: "R", ruby: "Ruby", diff --git a/shared/editor/nodes/CodeFence.ts b/shared/editor/nodes/CodeFence.ts index a4855b2509..6223a0ef70 100644 --- a/shared/editor/nodes/CodeFence.ts +++ b/shared/editor/nodes/CodeFence.ts @@ -41,6 +41,7 @@ import ocaml from "refractor/lang/ocaml"; import perl from "refractor/lang/perl"; import php from "refractor/lang/php"; import powershell from "refractor/lang/powershell"; +import protobuf from "refractor/lang/protobuf"; import python from "refractor/lang/python"; import r from "refractor/lang/r"; import ruby from "refractor/lang/ruby"; @@ -121,6 +122,7 @@ const DEFAULT_LANGUAGE = "javascript"; php, python, powershell, + protobuf, r, ruby, rust,