aryx / syncweb

literate programming meets unison
GNU General Public License v2.0
27 stars 2 forks source link

language support: thoughts on the 'mark_*' functions in lang.ml #3

Open bentxt opened 1 year ago

bentxt commented 1 year ago

It would be nice to increase the number of programming languages to work with

Right now the supported langs, are according to --help

-lang  <lang> (default=ocaml, choices=ocaml|C|shell|ocamlyacc|php|haskell)

Besides the -lang option it would be nice to have a general option to define the opening (and optionally closing) comment character.

It appears to me that the different mark_.ml functions in lang.ml are very similar, and a general implementions should be possible.

Just some thoughts ...

aryx commented 1 year ago

yes.

aryx commented 1 year ago

It's also not difficult to modify lang.ml and add your favorite language.