vet: allow vetting of vsh files (#9997)

pull/10001/head
Lukas Neubert 2021-05-04 17:25:56 +02:00 committed by GitHub
parent b8e070b2a1
commit 6745a7d725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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