diff --git a/src/usexp/usexp.ml b/src/usexp/usexp.ml index 5fd0880e..b6b07c91 100644 --- a/src/usexp/usexp.ml +++ b/src/usexp/usexp.ml @@ -21,8 +21,8 @@ module Atom = struct let rec loop ix = match str.[ix] with | '"' | '(' | ')' | ';' | '\\' -> true - | '|' -> ix > 0 && let next = ix - 1 in Char.equal str.[next] '#' || loop next - | '#' -> ix > 0 && let next = ix - 1 in Char.equal str.[next] '|' || loop next + | '|' -> ix > 0 && let next = ix - 1 in str.[next] = '#' || loop next + | '#' -> ix > 0 && let next = ix - 1 in str.[next] = '|' || loop next | '\000' .. '\032' | '\127' .. '\255' -> true | _ -> ix > 0 && loop (ix - 1) in