summaryrefslogtreecommitdiff
path: root/test/manual/indent/jsx-comment-string.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'test/manual/indent/jsx-comment-string.jsx')
-rw-r--r--test/manual/indent/jsx-comment-string.jsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/manual/indent/jsx-comment-string.jsx b/test/manual/indent/jsx-comment-string.jsx
new file mode 100644
index 00000000000..37a6c3233d8
--- /dev/null
+++ b/test/manual/indent/jsx-comment-string.jsx
@@ -0,0 +1,16 @@
+// Local Variables:
+// indent-tabs-mode: nil
+// js-indent-level: 2
+// End:
+
+// The following tests go below any comments to avoid including
+// misindented comments among the erroring lines.
+
+// The JSX-like text in comments/strings should be treated like the enclosing
+// syntax, not like JSX.
+
+// <Foo>
+void 0
+
+"<Bar>"
+void 0