-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix regular expression for core types and add test #13
Conversation
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.
@gemmaro Thanks for the pull request. The regex fix looks good, but the CI fails due to the new test.
It'd be helpful if you could separate the bug fix from the test addition. 🙏🏼
* rbs-mode.el (rbs-mode--core-type-regexp): Add word end pattern at the end of this regular expression. * CHANGELOG.md: Add a change log entry.
@ybiquitous Thank you for the pointer. I tweaked the GitHub Actions settings and splitted into several commits. |
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.
Thanks for separating commits. The tests are executed on CI, but they still fails due to incorrect expectations. Can you take a look again?
* rbs-mode-test.el: Add regression tests for core type regexp. * .github/workflows/test.yml: Add GitHub Actions settings for ERT [1]. The first elisp-check is for linting source [2]. [1] https://github.com/leotaku/elisp-check#tests [2] https://github.com/leotaku/elisp-check/blob/b931bcc80dbd7e6dd8b3fa05fecd899025bcb811/index.js#L14-L25 Co-authored-by: Masafumi Koba <https://github.com/ybiquitous>
* Makefile (check): Add a task. * .editorconfig: Add EditorConfig settings for Makefile.
@ybiquitous I updated the test file to load |
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.
Thank you. LGTM 👍🏼
https://github.com/ybiquitous/rbs-mode/releases/tag/v0.3.2 is released! 🌮 |
Hello,
This updates the regular expression for core types.
It makes, for example, not to recognize
StringScanner
asString
(core type) andScanner
.Thanks,