Skip to content

Commit

Permalink
Normalize lines in lineof when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 27, 2023
1 parent 7373090 commit d244add
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Visp.Compiler/Syntax/SynWriter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ module Write =
let newlineIndent: SynWriter -> unit = chain newline indent

let lineof (w: SynWriter) (range: range) =
fmtprintfn w "// line %i @\"%s\"" range.StartLine range.FileName
if SyntaxWriteUtilThreadStatics.RunningTests then
fmtprintfn w "// line %i @\"%s\"" range.StartLine ((NormalizedPath range.FileName).Path)
else
fmtprintfn w "// line %i @\"%s\"" range.StartLine range.FileName

let text (w: SynWriter) (txt: Text) =
match txt with
Expand Down

0 comments on commit d244add

Please sign in to comment.