]> git.eshelyaron.com Git - emacs.git/commit
Improve JSX syntax propertization
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 24 Mar 2019 16:55:14 +0000 (09:55 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 9 Apr 2019 05:48:22 +0000 (22:48 -0700)
commit8b92719b6b31d26299b5feae0ea92bb80f835e3d
treec406d203b06a1832de0b7d299f9ed0acad60e0be
parentbf37078df2cbea3a44a641ddbe40f11339c135a2
Improve JSX syntax propertization

* lisp/progmodes/js.el (js-jsx--attribute-name-re): New variable.
(js-jsx--syntax-propertize-tag): Allow “-” in JSXAttribute names.  Fix
“out of range” error when typing at the end of a buffer.  Fix/improve
future propertization of unfinished JSXBoundaryElements.

* test/manual/indent/js-jsx-unclosed-2.js: Add tests for allowed
characters in JSX.
lisp/progmodes/js.el
test/manual/indent/js-jsx-unclosed-2.js