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

Improve peg rules for names/separator #75

Open
puzrin opened this issue Jun 24, 2013 · 0 comments
Open

Improve peg rules for names/separator #75

puzrin opened this issue Jun 24, 2013 · 0 comments

Comments

@puzrin
Copy link
Member

puzrin commented Jun 24, 2013

Now rules are locked to english language:

NAME
  = first:[$_a-zA-Z] rest:[$_a-zA-Z0-9]* {
    return first + rest.join('');
  }

NAME_EDGE
  = ![$_a-zA-Z0-9]

AFAIK, javascript variables/properties/functions names are not limited to english.

This issue is not critical, because should not happen in real life. But it would be nice to better follow js syntax specifications.

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

1 participant