-
Notifications
You must be signed in to change notification settings - Fork 627
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
Adding lexer for CDDL #1239
Comments
Please file a pull request 😄 |
I've also worked on a CDDL lexer for pygments: https://github.com/hellp/pygments-cddl-lexer/ — not sure if I'll come back to it, but IIRC it's pretty complete, based on the RFC from March 2019. |
Since @hellp lexer seemed much more cleaner and complete, I integrated it instead of mine (see #1379). I had to fix one thing though, and I still don't know what happened. The first rule @hellp Is this ok with you? |
Ok, just found out. |
I'm fine with whatever works. Was the behavior of inline modifiers changed recently? It worked for me, I guess. |
@hellp I discovered they have been deprecated in Python 3.x (maybe 3.4+), and are now forbidden at least in Python 3.7.5. Hence the changes. |
(Original issue 1535 created by tdubouch on 2019-08-17T06:56:37.002511+00:00)
Concise Data Definition Language (CDDL) describes JSON or CBOR data structure and has been standardized as of RFC 8610.
A first attempt at writing a lexer is available here. The lexer is loosely based on the grammar in the RFC but is already handling most of the cases. The test file contains all of the examples from the RFC.
The text was updated successfully, but these errors were encountered: