oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.3k stars 739 forks source link

OCaml opengrok support #4407

Open maxim092001 opened 10 months ago

maxim092001 commented 10 months ago

Is your feature request related to a problem? Please describe.

Hi!

We use opengrok, but there is no support to filter only OCaml files.

Describe the solution you'd like

I would like ask for OCaml support.

Describe alternatives you've considered

Creating PR myself before creating an issue. :)

Additional context

I would be happy to contribute myself, but didn't find a guide on how to add a new language support. Maybe you can help with something?

Thanks!

vladak commented 10 months ago

Hi Maxim, creating a PR is definitely the way to go for this one :-)

Universal Ctags has OCaml support so it should be able to produce the definitions. Otherwise it should be just a matter of adding JFlex rules. And tests :-) For more info see e.g. #4384.