diff options
| author | Jackson Ray Hamilton | 2019-04-08 08:36:38 -0700 |
|---|---|---|
| committer | Jackson Ray Hamilton | 2019-04-08 22:48:24 -0700 |
| commit | 18bbfc4c754ea653ee0a7e2e47d1d61304f5c42a (patch) | |
| tree | 6b4e96fd801cb08dbc297d7ab76d3631b0b54b89 /test | |
| parent | 3eadf1eff43c84a1095094334549a1e0d1e75d80 (diff) | |
| download | emacs-18bbfc4c754ea653ee0a7e2e47d1d61304f5c42a.tar.gz emacs-18bbfc4c754ea653ee0a7e2e47d1d61304f5c42a.zip | |
Permit non-ASCII identifiers in JS
* lisp/progmodes/js.el (js--name-start-re): Generally allow
identifiers to begin with non-ASCII letters. This is of particular
importance to JSX parsing.
* test/manual/indent/jsx-unclosed-2.jsx: Add test to ensure non-ASCII
characters are parsed properly.
Diffstat (limited to 'test')
| -rw-r--r-- | test/manual/indent/jsx-unclosed-2.jsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/manual/indent/jsx-unclosed-2.jsx b/test/manual/indent/jsx-unclosed-2.jsx index be0a605503f..fb665b96a43 100644 --- a/test/manual/indent/jsx-unclosed-2.jsx +++ b/test/manual/indent/jsx-unclosed-2.jsx | |||
| @@ -56,3 +56,10 @@ while (await foo > bar) void 0 | |||
| 56 | / > | 56 | / > |
| 57 | < / div> | 57 | < / div> |
| 58 | < / div > | 58 | < / div > |
| 59 | |||
| 60 | // Non-ASCII identifiers are acceptable. | ||
| 61 | <Über> | ||
| 62 | <Québec διακριτικός sueño=""> | ||
| 63 | Guten Tag! | ||
| 64 | </Québec> | ||
| 65 | </Über> | ||