summaryrefslogtreecommitdiff
path: root/test/manual/indent
diff options
context:
space:
mode:
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>2019-12-07 13:10:45 -0800
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>2019-12-07 13:18:00 -0800
commit8e1c553260b04ce692986d428472490230b0a807 (patch)
tree6472ee82ec9e2ca1e0966ea10e08a788c10cbc28 /test/manual/indent
parentc299c9b6fb578091da7878cdf41cd3618f7331d7 (diff)
downloademacs-8e1c553260b04ce692986d428472490230b0a807.tar.gz
emacs-8e1c553260b04ce692986d428472490230b0a807.tar.bz2
emacs-8e1c553260b04ce692986d428472490230b0a807.zip
Ignore comments and strings when matching JSX
* lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test.
Diffstat (limited to 'test/manual/indent')
-rw-r--r--test/manual/indent/jsx-comment-string.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/manual/indent/jsx-comment-string.jsx b/test/manual/indent/jsx-comment-string.jsx
index 37a6c3233d8..cae023e7288 100644
--- a/test/manual/indent/jsx-comment-string.jsx
+++ b/test/manual/indent/jsx-comment-string.jsx
@@ -14,3 +14,10 @@ void 0
"<Bar>"
void 0
+
+<Chicken>
+ {/* <Pork> */}
+ <Beef attr="<Turkey>">
+ Yum!
+ </Beef>
+</Chicken>