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
Lexers should have human readable names #206
Comments
Hm. Okay, that sounds reasonable. They already have the |
I can go in and try to add human readable names for all of them at some point if that works for you |
Sure, thanks! |
Looking at some of these lexers, it seems like tag is sort of for this purpose already:
But it seems in practice it's more used as a finder string, i.e. |
It's used for both. In particular, the tag and the aliases are what are used in markdown to specify filetype. |
you could have a |
I could, but they seem like different concepts. What do you think about changing the docs for tag so they say something like
and
|
Sounds OK to me - I'd use a method other than |
Ah ok. Maybe |
Sounds good. |
Looks like this is closable as a result of the work that was merged in with d627db7 |
Thanks for lookin out! |
Sure thing, thanks for creating the |
I think it would be a good idea to have human readable names attached to each lexer. Some languages are easy to make by capitalizing the first letter (Ruby, Go, Swift, C) but it gets a little more complex with mid-word capitalization (JavaScript, XML, TeX) and even more difficult when symbols get involved (C++, Objective-C, C#).
My reasoning for this would be when a list of supported languages is available to the user, or when the detected language is displayed. These could likely be put in the lexers themselves along with the tag and file extensions.
The text was updated successfully, but these errors were encountered: