mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:30:12 +01:00
fix: highlight.js didn't properly show comments inside classes (#1380)
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
co-authored by
Chandler Carruth
parent
b4d4f5423d
commit
e96dbcb7b4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user