]> git.eshelyaron.com Git - emacs.git/commit
Finish replacing SGML-based JSX detection with js-mode’s parsing
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 23 Mar 2019 22:01:55 +0000 (15:01 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 9 Apr 2019 05:48:22 +0000 (22:48 -0700)
commit339be7c00790fb407cc8449fa8f59baa792cbe69
tree603c9636ecdc7f94378a83288eb18351c38b2631
parent1a1ef2851844a9ae2edcfe0346fc457e90c24bc7
Finish replacing SGML-based JSX detection with js-mode’s parsing

This removes the last dependency on sgml-mode for JSX-related logic.

* lisp/progmodes/js.el (js-jsx--start-tag-re)
(js-jsx--end-tag-re): Remove.
(js-jsx--looking-at-start-tag-p)
(js-jsx--looking-back-at-end-tag-p): Reimplement using text
properties, using syntax information which ought to be slightly more
accurate than regexps since it was found by complete parsing.
lisp/progmodes/js.el