Skip to content

Commit

Permalink
Fix issue in pretty-printer for abbreviated conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
nberth committed Sep 27, 2023
1 parent 8edb2f9 commit 6369aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lsp/cobol_ast/terms.ml
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ module FMT = struct
fmt "%a@[<1>(%a)@]" ppf not_ pos pp_binary_relation rel
| Abbrev (neg, rel, o, comb) ->
fmt "%a@[<1>(%a%a@ %a@ %a)@]" ppf
not_ pos not_ neg pp_binary_relation rel pp_logop o
not_ pos not_ (not neg) pp_binary_relation rel pp_logop o
pp_flat_combined_relation comb
| ClassCond (e, c) ->
fmt "%a@ %a%a" ppf pp_expression e not_ pos pp_class_ c
Expand All @@ -664,7 +664,7 @@ module FMT = struct
| FlatNotExpr e ->
fmt "NOT@ %a" ppf pp_expression e
| FlatRel (neg, rel) ->
fmt "%a%a" ppf not_ neg pp_binary_relation rel
fmt "%a%a" ppf not_ (not neg) pp_binary_relation rel
| FlatOther c ->
fmt "@[<1>(%a)@]" ppf pp_condition c
| FlatComb (c1, o, c2) ->
Expand Down

0 comments on commit 6369aa6

Please sign in to comment.