Add Ohm Language
Adding an Ohm language for .ohm extension. Expected to only occur once per repo.
Description
Ohm is a parsing toolkit consisting of a library and a domain-specific language. One can use it to parse custom file formats or quickly build parsers, interpreters, and compilers for programming languages.
The Ohm language is based on parsing expression grammars (PEGs), which are a formal way of describing syntax, similar to regular expressions and context-free grammars. The Ohm library provides a JavaScript interface for creating parsers, interpreters, and more from the grammars you write.
Checklist:
- [x] I am adding a new language.
- [x] The extension of the new language is used in hundreds of repositories on GitHub.com. As this language is used for making parsers, and interpreter/compiler frontends, it's extension is expected to occur only once per repository (except for the repositories in
ohmjsorganization):- Search results for each extension:
- Not forks (~440 files)
- Not forks, excluding ohmjs organization (~380 files)
- Search results for each extension:
- [x] I have included a real-world usage sample for all extensions added in this PR:
- Sample source(s):
ohm-grammar.ohmis adapted from it's version in ohmjs/ohm
- Sample license(s): MIT License
- Sample source(s):
- [x] I have included a syntax highlighting grammar: novusnota/vscode-ohm
- [x] I have added a color
- Hex value:
#A469F8 - Rationale: Most used on the language website, primary color.
- Hex value:
- [ ] ~~I have updated the heuristics to distinguish my language from others using the same extension.~~ No other language has the same extension, so I didn't update heuristics.
- [x] The extension of the new language is used in hundreds of repositories on GitHub.com. As this language is used for making parsers, and interpreter/compiler frontends, it's extension is expected to occur only once per repository (except for the repositories in
For what it's worth, here's a complete and well-tested tree-sitter grammar for Ohm, which may be used by the relevant GitHub team to supersede TextMate grammar from this PR once or if it gets merged :)
Cabe mencionar qué es el individuo el que genera la aplicación de ese tal rama si no ya lo hubieras hecho tú o sea que es claro que me necesita y si no se queda hasta ahí además esperemos en la nueva era que esto se termine con tranquilidad y paz
El jue., 29 de febrero de 2024 12:20 p. m., Novus Nota < @.***> escribió:
For what it's worth, here's a complete and well-tested tree-sitter grammar for Ohm https://github.com/novusnota/tree-sitter-ohm, which may be used by the relevant GitHub team to supersede TextMate grammar from this PR once or if it gets merged :)
— Reply to this email directly, view it on GitHub https://github.com/github-linguist/linguist/pull/6693#issuecomment-1971702024, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGBR7ZN3SCJKRPWWBQHHMMDYV5YP5AVCNFSM6AAAAABCSCTPL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRG4YDEMBSGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Converted to draft to enhance and/or re-write the grammar :)