unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 4b71a656744294570c32852233069e953ae3f57e 536 bytes (raw)
name: test/manual/indent/js-jsx-quote.js 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
// -*- mode: js-jsx; -*-

// JSX text node values should be strings, but only JS string syntax
// is considered, so quote marks delimit strings like normal, with
// disastrous results (https://github.com/mooz/js2-mode/issues/409).
function Bug() {
  return <div>C'est Montréal</div>;
}
function Test(foo = /'/,
              bar = 123) {}

// This test is in a separate file because it can break other tests
// when indenting the whole buffer (not sure why).

// Local Variables:
// indent-tabs-mode: nil
// js-indent-level: 2
// End:

debug log:

solving 4b71a65674 ...
found 4b71a65674 in https://git.savannah.gnu.org/cgit/emacs.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).