Hightlighter: Make CommentTokens italic

This commit is contained in:
networkException 2022-01-05 16:08:31 +01:00
parent 5a56b27c1c
commit a847197cf1

View file

@ -20,7 +20,7 @@ export class Highlighter {
public spin(): void { public spin(): void {
for (const token of this.tokens) { for (const token of this.tokens) {
if (token instanceof CommentToken) { if (token instanceof CommentToken) {
this.spans.push(Span.createFromRange(token, token.range, Color.Comment)); this.spans.push(Span.createFromRange(token, token.range, Color.Comment, Font.Italic));
} }
if (token instanceof DOCTYPEToken) { if (token instanceof DOCTYPEToken) {