-
Notifications
You must be signed in to change notification settings - Fork 30
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
Suggestion: Comments in words file #25
Comments
Hey @cjpbirkbeck, I think it is a good idea. I have been using
Before making a definitive decision, I would like to have the opinion of @waltertross, another big user of clac. |
hi, it would work, but it's a bit of a pity if the |
Ah, but in search for a solution I found that the |
Woops, I left my last comment as wtross-eg. It's still me, but as an EG employee... |
Wow, that's a great finding! I tested it and having comments looks like a good improvement. I'll document it and push the changes. |
Added in this commit: ba208c0 @waltertross @cjpbirkbeck If you are OK with the implementation and the comment, I will release a new version. |
Maybe for completeness you might want to add something similar to the following, somewhere: Note that to define the word # you have to use "#" If you don't write something like this anywhere, most users will be unable to define the |
I agree and I would suggest that an extra paragraph is added to the man page documenting how comments are written and how to escape
|
Excellent, I added a paragraph to both the README and the man page: beae8c4 Can you check it? |
Hello, I have been using this program for a bit and I have noticed that the words file doesn't allow for comments. I think have some comments would useful even for a small words file.
Here's my proposal:
clac
would just ignore the line if it starts with a comment character. Probably having inline comments wouldn't be that much harder, but given how simple this program is, I think it wouldn't be worth it.#
, as in it is various UNIX(-like) shells, python, and various configuration languages."#"
is already interpreted as just#
, so I thinking there would be no need for any escape sequences here, just an update to theman
page.I'm not exactly the world's greatest C programmer, but I would be willing to try doing it if you think it's a reasonable idea.
The text was updated successfully, but these errors were encountered: