Skip to content
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 parsing #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

mattmundell
Copy link

What

Simplify the parser to make it more robust.

Why

I want to use this module for syntax highlighting, but it was getting some things wrong. In particular it was parsing keywords like diff and @@ as tokens when they appeared in the diff context, and it was getting stuck on filenames when they contained spaces or when the command was git diff --no-prefix.

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.

1 participant