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

Add support for comments #11

Open
jaredlockhart opened this issue Sep 11, 2017 · 1 comment
Open

Add support for comments #11

jaredlockhart opened this issue Sep 11, 2017 · 1 comment

Comments

@jaredlockhart
Copy link

It'd be helpful to have a syntax for comments in JEXL strings like:

// This is a comment
"this is a literal"

Right now there doesn't seem to be any way to add a comment to a JEXL statement:

In [6]: list(jexl.validate("true"))
Out[6]: []

In [7]: list(jexl.validate("##stuff\ntrue"))
Out[7]: ['Could not parse expression: ##stuff\ntrue']

In [8]: list(jexl.validate("//stuff\ntrue"))
Out[8]: ['Could not parse expression: //stuff\ntrue']

@is2ei
Copy link

is2ei commented Jun 24, 2018

Hi @jaredkerim
This issue is interesting for me.
Which style is required // or ## ?

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

2 participants