doc: fix compilation and format

pull/5801/head
Alexander Medvednikov 2020-07-11 12:04:05 +02:00
parent d94a02ba79
commit 54da8371ac
1 changed files with 28 additions and 27 deletions

View File

@ -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)