Function: js-jsx--goto-outermost-enclosing-curly

js-jsx--goto-outermost-enclosing-curly is a byte-compiled function defined in js.el.gz.

Signature

(js-jsx--goto-outermost-enclosing-curly LIMIT)

Documentation

Set point to enclosing “{” at or closest after LIMIT.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js-jsx--goto-outermost-enclosing-curly (limit)
  "Set point to enclosing “{” at or closest after LIMIT."
  (let (pos)
    (while
        (and
         (setq pos (js-jsx--enclosing-curly-pos))
         (if (>= pos limit) (goto-char pos))
         (> pos limit)))))