-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Manpage syntax #1315
Improve Manpage syntax #1315
Conversation
Thank you very much! The new man page for Unfortunately, this seems to break C syntax highlighting for man pages like I hope it's fine that I push a |
It seems like I can not push to your fork, but you can cherry-pick e1af838 if you want. |
Well spotted, thanks! It is definitely useful to have these regression tests 👍 I have cherry picked your commit and pushed some fixes. It uses some "heuristics" to determine if it is C code or not - namely presence of a block comment or (about not being able to push to my fork: sorry about that. I like to keep forks separate from my own repos, so I created a GitHub org for them, but unfortunately GitHub since stopped allowing maintainers push access - it doesn't even show the option when creating the PR. I guess it makes sense because organizations have their own permissions/rules) |
That sounds great 👍
No worries. You can also create branches in this repo, if you prefer that. |
Thank you very much for the improvements and the detailed tests! |
There's actually a large C code block at the bottom of
Should that have been highlighted by your change? If not, that's also fine. |
It shouldn't have been - I didn't notice it and didn't change under which sections it applies. I have now pushed a new commit to the manpage-improvements branch addressing this. |
There is a "visual diff" in the GA output: https://github.com/sharkdp/bat/runs/1268838933?check_suite_focus=true Can't really tell why these changes happen though. I guess the manpage syntax will always stay on a "best effort" basis, as there is no well-defined "syntax", to my knowledge. So I guess I'm fine with most changes (even if there are a few regressions) as long as there is an overall improvement. |
Fixes #1148
(and also relates to #1213 )
How
git push --help
looks after these changes when using bat as the pager: