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

feat: remove constraints on rules and token names (#1291) #1293

Merged
merged 2 commits into from
Dec 21, 2020

Conversation

jlguenego
Copy link
Contributor

Added the possibility to use the dash character in the middle of a token name.
This requirement comes from an idea of the ASN1 language compilation.
ASN1 has keywords like :
ENCODING-CONTROL
RELATIVE-OID-IRI'
ABSTRACT-SYNTAX
TYPE-IDENTIFIER
MINUS-INFINITY
PLUS-INFINITY
NOT-A-NUMBER
RELATIVE-OID
TIME-OF-DAY
DATE-TIME
OID-IRI

@CLAassistant
Copy link

CLAassistant commented Dec 16, 2020

CLA assistant check
All committers have signed the CLA.

@bd82
Copy link
Member

bd82 commented Dec 19, 2020

Thanks for this PR @jlguenego

But I believe the change should be to completely remove this validation as I suspect it is no longer relevant.

@jlguenego
Copy link
Contributor Author

ok I did remove this validation (both for rules and tokens). Please check ;)

@bd82 bd82 merged commit a794d0e into Chevrotain:master Dec 21, 2020
@bd82 bd82 changed the title feat: allow dash (-) in token name (#1291) feat: remove constraints on rules and token names (#1291) Dec 31, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants