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

listing: Guess the lexer from its contents if the file name is unknown to pygments. #2454

Merged
merged 2 commits into from Aug 19, 2016

Conversation

xuhdev
Copy link
Member

@xuhdev xuhdev commented Aug 19, 2016

No description provided.

@ralsina
Copy link
Member

ralsina commented Aug 19, 2016

I am slightly worried about this one because, well, what happens if pygments guesses wrong? TextLexer at least is never actively broken :-)

Anyway, merging, we can always iterate!

@ralsina
Copy link
Member

ralsina commented Aug 19, 2016

Could you add a one-liner to the features section in CHANGES.txt and add yourself to authors if you are not there? Thanks!

@xuhdev
Copy link
Member Author

xuhdev commented Aug 19, 2016

Thanks, done! If we eventually want to remove the guess part, maybe the best thing is to allow users to manually select a lexer.

@ralsina
Copy link
Member

ralsina commented Aug 19, 2016

Yeah, we can always improve stuff. Thanks for the code!

@ralsina ralsina merged commit 7661be2 into getnikola:master Aug 19, 2016
@xuhdev xuhdev deleted the listing-guess-lexer branch August 19, 2016 18:11
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.

None yet

2 participants