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
Hunk headers don't work with Swift #444
Comments
Reviewable leverages highlightjs.org syntax coloring annotations to detect declarations in all supported languages, so it's possible that the Swift language definition there is misconfigured or incomplete. Since I don't know Swift, could you point me to any PR with Swift code and list a few lines that should be treated as declarations but aren't? Then I can look into what highlightjs does with them and report the bug upstream if appropriate. Thanks. |
Huh, I just found an old public PR that I was going to use, but it's actually showing the hunk headers as expected. The PR that I was reviewing that prompted this particular issue is a private one. I'll have to investigate a bit further to see if I can figure out what the difference is. |
I have the same issue. |
These look like screenshots from github.com -- can you provide screenshots from Reviewable please? |
Closing due to lack of activity. |
Reviewable's diff hunk header detection only seems to show me top-level declarations, e.g. the class declaration. It doesn't recognize functions. Ideally it would recognize the nearest enclosing function or type definition, including nested functions/types.
The text was updated successfully, but these errors were encountered: