-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: Enable the comment in model config files. #262
Conversation
@sagilio @xcaptain @huazhikui please review |
@sagilio @xcaptain @huazhikui please review |
@sagilio The comment itself is not affected by the model config. However, model config contents are necessary to test it. So I just add comments to an existing model config test file. Do you think that writing a dependent file to test the comments is better, or just keeping it is enough? |
I think we need to write new example files and tests for the comments test, and the test also needs to cover the entire line of comments. This will also more helpful to others format support in future. |
|
OK, I got it, I have signed this PR as WIP and will complete the tips above before requesting a merge. |
@hsluoyz golang version also supports the inline comment: |
@AsakusaRinne fix: |
@sagilio Do you think we still need this fix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 This PR is included in version 2.0.0-preview.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fix: #258, #263
What does it solve
It add support for writing comments in model config files.
What does it change
It add a new const variable to indicate the comment symbol '#' and remove the part after comment symbol in the string in
AddDef
.