mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fmt: allow formatting of v shell files (.vsh) (#6555)
This commit is contained in:
parent
fd88bfbac8
commit
9ea7369b05
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ const (
|
||||||
['openbsd', '_bsd.v', '_openbsd.v'],
|
['openbsd', '_bsd.v', '_openbsd.v'],
|
||||||
['solaris', '_solaris.v'],
|
['solaris', '_solaris.v'],
|
||||||
['haiku', '_haiku.v'],
|
['haiku', '_haiku.v'],
|
||||||
['qnx', '_qnx.v']
|
['qnx', '_qnx.v'],
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
mut files := []string{}
|
mut files := []string{}
|
||||||
for file in possible_files {
|
for file in possible_files {
|
||||||
if !file.ends_with('.v') && !file.ends_with('.vv') {
|
if !file.ends_with('.v') && !file.ends_with('.vv') && !file.ends_with('.vsh') {
|
||||||
verror('v fmt can only be used on .v files.\nOffending file: "$file"')
|
verror('v fmt can only be used on .v files.\nOffending file: "$file"')
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue