Function: js-syntax-propertize-regexp
js-syntax-propertize-regexp is a byte-compiled function defined in
js.el.gz.
Signature
(js-syntax-propertize-regexp END)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js-syntax-propertize-regexp (end)
(let ((ppss (syntax-ppss)))
(when (eq (nth 3 ppss) ?/)
;; A /.../ regexp.
(goto-char (nth 8 ppss))
(when (looking-at js--syntax-propertize-regexp-regexp)
;; Don't touch text after END.
(when (> end (match-end 1))
(setq end (match-end 1)))
(put-text-property (match-beginning 1) end
'syntax-table (string-to-syntax "\"/"))
(goto-char end)))))