mirror of
https://github.com/vlang/v.git
synced 2025-09-23 04:18:48 -04:00
doc: fix compilation and format
This commit is contained in:
parent
d94a02ba79
commit
54da8371ac
@ -12,6 +12,7 @@ import v.scanner
|
||||
import v.table
|
||||
import v.token
|
||||
import v.vmod
|
||||
import v.pref
|
||||
|
||||
enum HighlightTokenTyp {
|
||||
unone
|
||||
@ -284,7 +285,7 @@ fn html_highlight(code string, tb &table.Table) string {
|
||||
} else { tok.lit }
|
||||
return if typ in [.unone, .name] { lit } else { '<span class="token $typ">$lit</span>' }
|
||||
}
|
||||
s := scanner.new_scanner(code, .parse_comments, false)
|
||||
s := scanner.new_scanner(code, .parse_comments, &pref.Preferences{})
|
||||
mut tok := s.scan()
|
||||
mut next_tok := s.scan()
|
||||
mut buf := strings.new_builder(200)
|
||||
|
Loading…
x
Reference in New Issue
Block a user