Fix parser/pretty printer for OTP-27 (#502)

* In OTP-27 else is made a keyword, so needs quouting

* Fix List.aes - remove unnecessary self-qualification

* Changelog
This commit is contained in:
Hans Svensson
2024-02-16 09:57:23 +01:00
committed by GitHub
parent 944ed49f0b
commit de426a210b
4 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -282,9 +282,9 @@ namespace List =
private function
asc : (('a, 'a) => bool, 'a, list('a), list('a)) => list(list('a))
asc(lt, x, acc, h::t) =
if(lt(h, x)) List.reverse(x::acc) :: monotonic_subs(lt, h::t)
if(lt(h, x)) reverse(x::acc) :: monotonic_subs(lt, h::t)
else asc(lt, h, x::acc, t)
asc(_, x, acc, []) = [List.reverse(x::acc)]
asc(_, x, acc, []) = [reverse(x::acc)]
/** Merges list of sorted lists
*/