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

fmt: further fixes for string interpolation and builtin macros

This commit is contained in:
Uwe Krüger
2020-06-18 18:48:23 +02:00
committed by GitHub
parent f526754535
commit 3b6e66db0d
13 changed files with 90 additions and 32 deletions

View File

@ -185,7 +185,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)
s := scanner.new_scanner(code, .parse_comments, false)
mut tok := s.scan()
mut next_tok := s.scan()
mut buf := strings.new_builder(200)