textx

Is it possible to add comments to .tx files for textx? If so, how?


Was working through the hello-world example in the docs.

I then realized I wanted to add comments to help me learn the textX syntax better.

There's no indication that this is possible in the first place. Googling didn't help.

Please advise.


Solution

  • From the documentation:

    Grammar comments

    Syntax for comments inside a grammar is // for line comments and /* ... */ for block comments.