rukano / emacs-faust-mode

Faust major mode for editing faust code (.dsp files)
13 stars 7 forks source link

Handle <mdoc> #11

Closed agraef closed 6 years ago

agraef commented 6 years ago

Faust programs may nowadays contain extensive documentation sections enclosed between the <mdoc> ... </mdoc> tags. For instance, see this example from the Faust Quick Reference: mdoc-example.dsp.zip

We don't currently handle these, which makes sources including such sections look odd in Emacs when editing them using Faust mode. I think that the easiest way to go there is to just treat these sections as comments. As the "comment delimiters" are XML tags in this case, we can't use the syntax table for this. But I've done something similar for the inline code sections in Pure mode. I'll have to look that up and see whether I can adjust it so that it works in this case.