1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 00:20:53 -08:00
emacs/test/manual
Jackson Ray Hamilton be86ece42c
js-syntax-propertize: Disambiguate JS from JSX, fixing some indents
Fix some JSX indentation bugs:

- Bug#24896 / https://github.com/mooz/js2-mode/issues/389
- Bug#30225
- https://github.com/mooz/js2-mode/issues/459

* lisp/progmodes/js.el (js--dotted-captured-name-re)
(js--unary-keyword-re, js--unary-keyword-p)
(js--disambiguate-beginning-of-jsx-tag)
(js--disambiguate-end-of-jsx-tag)
(js--disambiguate-js-from-jsx): New variables and functions.

(js-syntax-propertize): Additionally clarify when syntax is JS so that
‘(with-syntax-table sgml-mode-syntax-table …)’ does not mistake some
JS punctuation syntax for SGML parenthesis syntax, namely ‘<’ and ‘>’.

* test/manual/indent/js-jsx-unclosed-2.js: Add additional test for
unary operator parsing.
2019-04-08 22:48:21 -07:00
..
cedet Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
etags Update copyright year to 2019 2019-01-01 01:01:13 +00:00
indent js-syntax-propertize: Disambiguate JS from JSX, fixing some indents 2019-04-08 22:48:21 -07:00
BidiCharacterTest.txt Import Unicode 12.0 data files 2019-03-09 12:41:48 +02:00
biditest.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
image-size-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
redisplay-testsuite.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
rmailmm.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
scroll-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00