-
Notifications
You must be signed in to change notification settings - Fork 675
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
Improve parameter type matching regex #680
Improve parameter type matching regex #680
Conversation
Fixes (again) dotnet#657 as well as issues brought up in dotnet#670. - Corrects the order of type, template arguments, nullable type specification and array specifications. - Ensures array specification support all forms (simple arrays, multi-dimensional arrays, arrays of arrays).
@seraku24 You may want to update the regex to handle unsafe pointers ( |
@seraku24 Also one more thing is to handle @ too e.g. |
- Unsafe pointer types (e.g. `char**`). - Escaping reserved keywords for variable names (e.g. `int @class`)
Okay, @ivanz. I have adjusted the regex to support unsafe pointers as well as reserved keyword escaping: Regarding return types, it seems that some types are highlighting correctly already but there are others that are not: That said, we might want to keep the scope of this PR to just addressing the issues with highlighting parameters, which I believe we have done. |
Looks good to me, but @DustinCampbell is the one with the review and merge powers and I believe he is based in the US, so it's just about morning there. Congrats on your first GitHub pull request 🎉 |
Well, compared to other source/version control systems, git and GitHub have probably been the easiest to work with, especially when compared to Product Studio or TFS. Thanks for the help and encouragement. I am just glad to be able to offer some of my regex experience at the very least. |
LGTM |
Fixes (again) #657 as well as issues brought up in #670.