mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
lots of vfmt fixes
This commit is contained in:
parent
67cf7f18e6
commit
53b334145b
8 changed files with 100 additions and 49 deletions
|
@ -51,6 +51,9 @@ fn (p mut Parser) error_with_position(s string, sp ScannerPos) {
|
|||
}
|
||||
|
||||
fn (p mut Parser) warn_with_position(s string, sp ScannerPos) {
|
||||
if p.scanner.is_fmt {
|
||||
return
|
||||
}
|
||||
// on a warning, restore the scanner state after printing the warning:
|
||||
cpos := p.scanner.get_scanner_pos()
|
||||
e := normalized_error( s )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue