1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v doc: remove int_literal and float_literal from syntax highlighting, since they are internal types (#16066)

This commit is contained in:
Swastik Baranwal 2022-10-13 23:19:34 +05:30 committed by GitHub
parent aabda5a525
commit f7f0e0b5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,8 +139,7 @@ fn gen_footer_text(d &doc.Doc, include_timestamp bool) string {
fn color_highlight(code string, tb &ast.Table) string { fn color_highlight(code string, tb &ast.Table) string {
builtin := ['bool', 'string', 'i8', 'i16', 'int', 'i64', 'i128', 'isize', 'byte', 'u8', 'u16', builtin := ['bool', 'string', 'i8', 'i16', 'int', 'i64', 'i128', 'isize', 'byte', 'u8', 'u16',
'u32', 'u64', 'usize', 'u128', 'rune', 'f32', 'f64', 'int_literal', 'float_literal', 'u32', 'u64', 'usize', 'u128', 'rune', 'f32', 'f64', 'byteptr', 'voidptr', 'any']
'byteptr', 'voidptr', 'any']
highlight_code := fn (tok token.Token, typ HighlightTokenTyp) string { highlight_code := fn (tok token.Token, typ HighlightTokenTyp) string {
mut lit := '' mut lit := ''
match typ { match typ {