diff options
author | Jackson Ray Hamilton <jackson@jacksonrayhamilton.com> | 2019-04-08 08:36:38 -0700 |
---|---|---|
committer | Jackson Ray Hamilton <jackson@jacksonrayhamilton.com> | 2019-04-08 08:36:38 -0700 |
commit | f046d6e9d2b74cade3712571525da3e62592eaf7 (patch) | |
tree | cc605c2f34e094186caac12d50b6555954227b12 /lisp/progmodes/js.el | |
parent | 58b2cdc6dbaedee8bf3b779f2ac594fd68d538a4 (diff) | |
download | emacs-feature/jsx.tar.gz |
Permit non-ASCII identifiers in JSfeature/jsx
* 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 'lisp/progmodes/js.el')
-rw-r--r-- | lisp/progmodes/js.el | 2 |
1 files changed, 1 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 @@ ;;; Constants -(defconst js--name-start-re (concat "[a-zA-Z_$]") +(defconst js--name-start-re (concat "[[:alpha:]_$]") "Regexp matching the start of a JavaScript identifier, without grouping.") (defconst js--stmt-delim-chars "^;{}?:") |