https://bugs.kde.org/show_bug.cgi?id=518109
--- Comment #7 from Jonathan Poelen <[email protected]> --- (In reply to Igor Zhuravlov from comment #6) > AFAIK, there is no common comment format. Especially for ancient formats. For EBNF, the specification introduces `(* ... *)`. After some thought and looking at various .bnf and .ebnf files on GitHub (https://github.com/search?q=path%3A*.ebnf&type=code limited to 5 pages), I will add comments using `// ...`, `/* ... */`, `(* ... *)`, and `;`. For `;`, I’ll split the Terminator style into two so it retains the same appearance but can be changed in the configuration. Text after `;` would be a comment. I’ve seen some comments using `#`, but since that’s also an extension, it will remain an Operator. I’ve only seen one group of files using `%` as a comment, but only for single-line comments. However, I did see one file using it as an extension: `%import common.WS`. In my opinion, the `% ... %` format is rarely used, so I’m tempted to turn `%` into an operator, possibly a single-line comment. What do you think of the changes? -- You are receiving this mail because: You are watching all bug changes.
