Added HAProxy configuration language #4303
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding a new language for HAProxy configuration files, e.g. haproxy.cfg. The ".cfg" file extension is already used by the INI language, but I have added samples to both sample folders to differentiate them.
Checklist:
I am associating a language with a new file extension.
[X ] I am adding a new language.
[X ] The extension of the new language is used in hundreds of repositories on GitHub.com.
Search for haproxy.cfg filename:
https://github.com/search?q=filename%3Ahaproxy.cfg&type=Code
Search for .cfg that is not haproxy.cfg:
https://github.com/search?q=roundrobin+extension%3Acfg+-filename%3Ahaproxy.cfg
[X ] I have included a real-world usage sample for all extensions added in this PR:
[X ] I have included a syntax highlighting grammar: https://github.com/abulimov/atom-language-haproxy
I have updated the heuristics to distinguish my language from others using the same extension.
I am fixing a misclassified language
I am changing the source of a syntax highlighting grammar
I am updating a grammar submodule
I am adding new or changing current functionality