diff options
| -rw-r--r-- | lisp/progmodes/js.el | 2 | ||||
| -rw-r--r-- | test/manual/indent/jsx-unclosed-2.jsx | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index b1068bfc7b8..9185371b523 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -65,7 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | ;;; Constants | 66 | ;;; Constants |
| 67 | 67 | ||
| 68 | (defconst js--name-start-re (concat "[a-zA-Z_$]") | 68 | (defconst js--name-start-re (concat "[[:alpha:]_$]") |
| 69 | "Regexp matching the start of a JavaScript identifier, without grouping.") | 69 | "Regexp matching the start of a JavaScript identifier, without grouping.") |
| 70 | 70 | ||
| 71 | (defconst js--stmt-delim-chars "^;{}?:") | 71 | (defconst js--stmt-delim-chars "^;{}?:") |
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> | ||