mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vet: allow vetting of vsh files (#9997)
This commit is contained in:
parent
b8e070b2a1
commit
6745a7d725
@ -95,6 +95,7 @@ fn (mut vt Vet) vet_file(path string) {
|
||||
vt.file = path
|
||||
mut prefs := pref.new_preferences()
|
||||
prefs.is_vet = true
|
||||
prefs.is_vsh = path.ends_with('.vsh')
|
||||
table := ast.new_table()
|
||||
vt.vprintln("vetting file '$path'...")
|
||||
_, errors := parser.parse_vet_file(path, table, prefs)
|
||||
|
Loading…
Reference in New Issue
Block a user