Function: js-jsx--enclosing-curly-pos

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

Signature

(js-jsx--enclosing-curly-pos)

Documentation

Return position of enclosing “{” in a “{/}” pair about point.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js-jsx--enclosing-curly-pos ()
  "Return position of enclosing “{” in a “{/}” pair about point."
  (let ((parens (reverse (nth 9 (syntax-ppss)))) paren-pos curly-pos)
    (while
        (and
         (setq paren-pos (car parens))
         (not (when (= (char-after paren-pos) ?{)
                (setq curly-pos paren-pos)))
         (setq parens (cdr parens))))
    curly-pos))