Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check identifier syntax according to the standard #174

Closed
yucca42 opened this issue May 29, 2011 · 3 comments
Closed

Check identifier syntax according to the standard #174

yucca42 opened this issue May 29, 2011 · 3 comments

Comments

@yucca42
Copy link

yucca42 commented May 29, 2011

Currently, JSHint seems to enforce the old identifier syntax, which allows Ascii characters only. For example, the statement
var état;
causes the error message "Unexpected 'é'." Worse still, this aborts the checking process: "Stopping, unable to continue."

However, the ECMAScript standard as well as implementations have allowed a much more liberal syntax (surely allowing "état") for several years. Please implement identifier syntax as defined in ECMA 262 clause 7.6.

Perhaps an informative message could be issued upon encountering the first non-Ascii character in identifier, just in case it's accidental and not intentional.

@valueof
Copy link
Member

valueof commented May 30, 2011

Marking as accepted. Thanks!

@goatslacker
Copy link
Member

Similar #301

@valueof
Copy link
Member

valueof commented Nov 2, 2011

Closing in favor of #301 (more discussion there).

@valueof valueof closed this as completed Nov 2, 2011
danielctull pushed a commit to danielctull-forks/jshint that referenced this issue Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants