mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vdoc: don't highlight less than expression as generic function (#13938)
This commit is contained in:
@@ -326,8 +326,8 @@ fn html_highlight(code string, tb &ast.Table) string {
|
||||
tok_typ = .builtin
|
||||
} else if next_tok.kind == .lcbr {
|
||||
tok_typ = .symbol
|
||||
} else if next_tok.kind == .lpar
|
||||
|| (!tok.lit[0].is_capital() && next_tok.kind == .lt) {
|
||||
} else if next_tok.kind == .lpar || (!tok.lit[0].is_capital()
|
||||
&& next_tok.kind == .lt && next_tok.pos == tok.pos + tok.lit.len) {
|
||||
tok_typ = .function
|
||||
} else {
|
||||
tok_typ = .name
|
||||
|
||||
Reference in New Issue
Block a user