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

Support for embedded comments within expressions #75

Closed
andrew-coleman opened this issue Sep 4, 2017 · 6 comments · Fixed by #258
Closed

Support for embedded comments within expressions #75

andrew-coleman opened this issue Sep 4, 2017 · 6 comments · Fixed by #258

Comments

@andrew-coleman
Copy link
Member

During discussion of another issue, it became clear there is a desire to be able to embed comments within multiline expressions.

Options discussed included aligning with other scripting languages that use # to indicate the start of a comment, or Javascript/Java/C that use // or /* ... */ for comments.

This issue can be used to host any further discussion on this requirement.

@Allam76
Copy link

Allam76 commented Dec 1, 2017

Hello there, what happened with this issue? I'm working on the code completion and comments would greatly help there.

@andyh3930
Copy link

Being able to leave comments would be greatly appreciated. Is there any update on this issue?

@nabeelz6
Copy link

Agreed. Having comments within a long expression string would be very helpful.

@janvda
Copy link

janvda commented Apr 24, 2018

It would be great to be able to add comments.
Not only in multiline expressions but also in single line expressions.

E.g. I am using jsonata in node-red to parse unix command line output. Being able to add comments would make is much clearer what the purpose of the jsonata expression is.

As I am using jsonata in node-red I am in favour of using the javascript commenting delimiters ( //... and /* .... */ )

@ryanlunka
Copy link

I'll +1 this feature request as well.

We make very heavy use of JSONata to transform retail/eCommerce business documents (like orders or retail items), often doing so with JSONata transformation documents that are hundreds of lines long, and make heavy use of variables and other complex logic.

Having commenting built in would make dealing with large JSONata documents much easier.

@natcl
Copy link

natcl commented Aug 10, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants