From f7f0e0b5dc5caf74c91b51d8441be01513d46bc2 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Thu, 13 Oct 2022 23:19:34 +0530 Subject: [PATCH] v doc: remove `int_literal` and `float_literal` from syntax highlighting, since they are internal types (#16066) --- cmd/tools/vdoc/utils.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tools/vdoc/utils.v b/cmd/tools/vdoc/utils.v index 50146bb2c4..ae39feaa67 100644 --- a/cmd/tools/vdoc/utils.v +++ b/cmd/tools/vdoc/utils.v @@ -139,8 +139,7 @@ fn gen_footer_text(d &doc.Doc, include_timestamp bool) string { fn color_highlight(code string, tb &ast.Table) string { builtin := ['bool', 'string', 'i8', 'i16', 'int', 'i64', 'i128', 'isize', 'byte', 'u8', 'u16', - 'u32', 'u64', 'usize', 'u128', 'rune', 'f32', 'f64', 'int_literal', 'float_literal', - 'byteptr', 'voidptr', 'any'] + 'u32', 'u64', 'usize', 'u128', 'rune', 'f32', 'f64', 'byteptr', 'voidptr', 'any'] highlight_code := fn (tok token.Token, typ HighlightTokenTyp) string { mut lit := '' match typ {