Skip to content

Improve Manpage.sublime-syntax, Fix #2353#2364

Merged
Enselic merged 2 commits intosharkdp:masterfrom
Freed-Wu:man
Oct 17, 2022
Merged

Improve Manpage.sublime-syntax, Fix #2353#2364
Enselic merged 2 commits intosharkdp:masterfrom
Freed-Wu:man

Conversation

@Freed-Wu
Copy link
Contributor

@Freed-Wu Freed-Wu commented Oct 9, 2022

Screenshot from 2022-10-09 13-56-09

It still exists many problems, such as man fzf

Screenshot from 2022-10-09 14-00-35

Should we highlight +x before or? Case-XXX shouldn't be highlighted, right?

Screenshot from 2022-10-09 14-01-43

Wrong N[,...].

How to distinguish the following -.s?

Screenshot from 2022-10-09 14-02-42
Screenshot from 2022-10-09 14-03-12

@keith-hall
Copy link
Collaborator

It would be great to add some "highlighted file" tests for this. Basically just putting man fzf into a file in https://github.com/sharkdp/bat/tree/master/tests/syntax-tests/source/Manpage and running https://github.com/sharkdp/bat/blob/master/tests/syntax-tests/update.sh afterwards and including both files in the PR. This will enable us to see how future changes affect the highlighting, to help prevent regressions.

@Freed-Wu
Copy link
Contributor Author

It would be great to add some "highlighted file" tests.

Done.

Copy link
Collaborator

@keith-hall keith-hall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. You can also optionally update the changelog so others will know what you fixed :)

@Freed-Wu
Copy link
Contributor Author

update the changelog

Fixed.

@Enselic Enselic merged commit f215d07 into sharkdp:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments