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

vweb: fix html example

This commit is contained in:
Alexander Medvednikov
2019-09-20 03:01:52 +03:00
parent d51622d721
commit 79abc0c16f
3 changed files with 20 additions and 5 deletions

View File

@ -71,7 +71,7 @@ mut:
out_name string // "program.exe"
vroot string
mod string // module being built with -lib
//parsers []Parser
parsers []Parser
}
struct Preferences {
@ -206,6 +206,16 @@ fn main() {
}
}
fn (v mut V) add_parser(parser Parser) {
for p in v.parsers {
if p.file_path == parser.file_path {
return
}
}
v.parsers << parser
}
fn (v mut V) compile() {
// Emily: Stop people on linux from being able to build with msvc
if os.user_os() != 'windows' && v.os == .msvc {