Skip to content

Commit 19f6603

Browse files
committed
Fix skipWhite for Windows.
1 parent 6364b41 commit 19f6603

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

analysis/src/PartialParser.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ let skipLineComment text offset =
3636
let rec skipWhite text i =
3737
if i < 0 then 0
3838
else
39-
match text.[i] with ' ' | '\n' | '\t' -> skipWhite text (i - 1) | _ -> i
39+
match text.[i] with
40+
| ' ' | '\n' | 'r' | '\t' -> skipWhite text (i - 1)
41+
| _ -> i
4042

4143
let rec startOfLident text i =
4244
if i < 0 then 0

0 commit comments

Comments
 (0)