fix: highlight.js didn't properly show comments inside classes (#1380)

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
Hana Dusíková
2022-07-12 01:22:35 -07:00
committed by GitHub
co-authored by Chandler Carruth
parent b4d4f5423d
commit e96dbcb7b4
+1 -1
View File
@@ -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.