Hightlighter: Make CommentTokens italic
This commit is contained in:
parent
5a56b27c1c
commit
a847197cf1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue