 (defsubst js2-parse-warn-missing-semi (beg end)
   (and js2-mode-show-strict-warnings
        js2-strict-missing-semi-warning
-       (not (and js2-missing-semi-one-line-override
-                 (save-excursion
-                   (goto-char beg)
-                   (skip-chars-backward " \t")
-                   (eq (char-before) ?{))
-                 (save-excursion
-                   (goto-char end)
-                   (skip-chars-forward " \t")
-                   (eq (char-after) ?}))))
        (js2-add-strict-warning
         "msg.missing.semi" nil
         ;; back up to beginning of statement or line

    (dolist (e (js2-ast-root-errors js2-mode-ast))
      (js2-mode-show-warn-or-err e 'js2-error-face))))

(defun js2-mode-show-warnings ()
  "Highlight strict-mode warnings."
  (when js2-mode-show-strict-warnings
    (dolist (e (js2-ast-root-warnings js2-mode-ast))
      (let ((key (car e)))
        (unless
            ;; allow individual overrides
            (or
             (and (not js2-strict-trailing-comma-warning)
                  (string-match "trailing\\.comma" key))
             (and (not js2-strict-cond-assign-warning)
                  (string= key "msg.equal.as.assign")))
          (js2-mode-show-warn-or-err e 'js2-warning-face))))))

(defun js2-echo-error (old-point new-point)
  (let ((msg (get-text-property new-point 'help-echo)))

                           (catch 'interrupted
                             (setq js2-mode-ast (js2-parse))
                             (js2-mode-fontify-regions)
                             (js2-mode-remove-suppressed-warnings)
                             (js2-mode-show-warnings)
                             (js2-mode-show-errors)
                             (if (and (boundp 'font-lock-keywords)
                                      font-lock-keywords
                                      (boundp 'font-lock-mode)
                                      font-lock-mode)
                                 (font-lock-fontify-buffer))
                             (if (>= js2-highlight-level 1)
                                 (js2-highlight-jsdoc js2-mode-ast))
                             nil))))
              (if interrupted-p
                  (progn
