mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vdoc: highlight keywords in bright_blue
This commit is contained in:
parent
0b0e96a8cd
commit
0c620a78bf
2 changed files with 3 additions and 9 deletions
|
@ -152,7 +152,7 @@ fn color_highlight(code string, tb &table.Table) string {
|
|||
term.yellow('`$tok.lit`')
|
||||
}
|
||||
.keyword {
|
||||
term.blue(tok.lit)
|
||||
term.bright_blue(tok.lit)
|
||||
}
|
||||
.builtin, .symbol {
|
||||
term.green(tok.lit)
|
||||
|
@ -243,17 +243,11 @@ fn color_highlight(code string, tb &table.Table) string {
|
|||
}
|
||||
}
|
||||
buf.write_string(highlight_code(tok, tok_typ))
|
||||
if prev_prev.kind == .eof {
|
||||
if prev_prev.kind == .eof || prev.kind == .eof || next_tok.kind == .eof {
|
||||
break
|
||||
}
|
||||
prev_prev = prev
|
||||
if prev.kind == .eof {
|
||||
break
|
||||
}
|
||||
prev = tok
|
||||
if next_tok.kind == .eof {
|
||||
break
|
||||
}
|
||||
i = tok.pos + tok.len
|
||||
tok = next_tok
|
||||
next_tok = s.scan()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue