On Wed, Aug 19, 2009 at 11:07:53PM -0700, Patrick McCarty wrote:
> On 2009-08-19, Mark Polesky wrote:
> > Well, the music-functions pose an interesting dilemma. They're
> > in an .ly file but are mostly written in scheme. To me, it makes
> > more sense to specify indentation-style based on the programming
> > language being used at any moment, not based on the *file-type*.
> 
> IMO, indenting in the Scheme style for LY files that are mostly
> written in Scheme is okay.  But there are relatively few LY files in
> the source code that are like this (music-functions-init.ly being
> one).

Yes -- indent the scheme parts of .ly files like scheme.

> This would also mesh well with my (unannounced) plans to merge
> LilyPond's syntax highlighting and indent files for Vim with the
> default Scheme highlighting/indent files; this way, the Scheme
> sections of an LY file will always be indented in the "Scheme" style.

Sounds good, although I'd still like an editor-independent python
script that would do that indentation.  Somebody added a link to
such a script in the tracker issue about this, but I still haven't
had a chance to look at it.

Cheers,
- Graham


_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to