           (cond
            ;; If we see a ident: not inside any braces/parens, we're at top level.
            ;; There are no allowed expressions after colons there, just types.
-           ((<= (rust-paren-level) 0) nil)
+           ((<= (reason-paren-level) 0) nil)
 
            ;; We see ident: inside a list
            ((looking-back "[{,]" (1- (point)))


        ;; If we are at top level and not in any list, it can't be a closing
        ;; angle bracket
        ((>= 0 (rust-paren-level)) t)

        ;; Otherwise, treat the > as a closing angle bracket if it would
        ;; match an opening one

                          ;;     { ? : ( , ; [ }
                          ;; then we are at the beginning of an expression, so stay on the baseline...
                          (looking-back "[(,:;?[{}]\\|[^|]|" (- (point) 2))
                          )))
                      baseline

                    ;; Otherwise, we are continuing the same expression from the previous line,
