Repository navigation
(java) Improve detection of types, including generic and array types - #4346
Conversation
nizarbenalla
left a comment
There was a problem hiding this comment.
Change looks good, I left a couple of inline comments.
The cases I mentioned are pretty harmless, you may only notice them if you're using snippets.
I also see that the copyright notices are being applied correctly.
|
I like where you're headed with this, just need to make it all a bit more readable, and I dropped a few questions. |
|
Thanks for looking into this, Josh. I'll update the PR to address your feedback in the next few days. |
- recognize more array types - rename, untangle and comment regex patterns
hns
left a comment
There was a problem hiding this comment.
@joshgoebel @nizarbenalla I addressed your review feedback in a followup commit.
I also fixed a bug I discovered where a keyword was highlighted as type if it is followed by an assignment, such as in:
return foo = 3;
Let me know if you think this should be fixed as a separate issue.
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +27 B View Changes
|
|
how you feeling? Ready to undraft? Anything further we need to do here? |
|
I had kind of forgotten this was still in draft mode. I think it looks good so I marked it as ready. |
Build Size ReportChanges to minified artifacts in 2 files changedTotal change +36 B View Changes
|
|
Thanks, Josh! |
This improves detection of types in Java variable and method declarations, including support for generic and array types.
Resolves #3678
Resolves #4017
Resolves #4345
Changes
hljs-type, including thevoidtype.Checklist
CHANGES.md