mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci/tools: check-md.v: add support for "```v live"
This commit is contained in:
parent
01a5b263e5
commit
b96a0246b5
@ -178,6 +178,17 @@ fn (mut f MDFile) check_examples() (int, int) {
|
||||
}
|
||||
oks++
|
||||
}
|
||||
'live' {
|
||||
res := os.system('"$vexe" -silent -live -o x.c $vfile')
|
||||
if res != 0 {
|
||||
eprintln(eline(f.path, e.sline, 0, 'example failed to compile with -live'))
|
||||
eprintln(vcontent)
|
||||
should_cleanup_vfile = false
|
||||
errors++
|
||||
continue
|
||||
}
|
||||
oks++
|
||||
}
|
||||
'failcompile' {
|
||||
res := os.system('"$vexe" -silent -o x.c $vfile')
|
||||
os.rm('x.c') or { }
|
||||
|
@ -2937,7 +2937,7 @@ Translating it to V gives you several advantages:
|
||||
|
||||
## Hot code reloading
|
||||
|
||||
```v
|
||||
```v live
|
||||
module main
|
||||
|
||||
import time
|
||||
|
Loading…
Reference in New Issue
Block a user