From e96dbcb7b4f90ee27be8b5b7850cb8511ed66d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dus=C3=ADkov=C3=A1?= Date: Tue, 12 Jul 2022 10:22:35 +0200 Subject: [PATCH] fix: highlight.js didn't properly show comments inside classes (#1380) Co-authored-by: Chandler Carruth --- highlighting/highlightjs_carbon_lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighting/highlightjs_carbon_lang.js b/highlighting/highlightjs_carbon_lang.js index 5830ad3f4880..a17ab6d6450b 100644 --- a/highlighting/highlightjs_carbon_lang.js +++ b/highlighting/highlightjs_carbon_lang.js @@ -449,7 +449,7 @@ export default function (hljs) { beginScope: 'punctuation', end: /\}/, endScope: 'punctuation', - contains: ['self', ...STATEMENTS], + contains: ['self', hljs.C_LINE_COMMENT_MODE, ...STATEMENTS], }; // Stitch everything together into the language definition.