[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] feature/jsx 9e65e4b 3/3: Improve whitespace and unary
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] feature/jsx 9e65e4b 3/3: Improve whitespace and unary keyword parsing |
Date: |
Sun, 07 Apr 2019 21:02:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> +(defconst js--name-start-re (concat "[a-zA-Z_$]")
> "Regexp matching the start of a JavaScript identifier, without grouping.")
BTW, my knowledge of Javascript is very limited, but IIUC its
identifiers are not limited to ASCII, so [[:alpha:]_$] is probably
a better regexp.
Stefan
- Re: [Emacs-diffs] feature/jsx 9e65e4b 3/3: Improve whitespace and unary keyword parsing,
Stefan Monnier <=