On 8/11/11 6:07 PM, "Carl Sorensen" <c_soren...@byu.edu> wrote:

> Having spent more time than I thought it would be necessary, I finally found
> something that could work as a stand-alone script for indenting scheme
> files.
> 
> It appears to follow standard Scheme indenting rules, which means that it
> changes the indentation we have in lily.scm where the
> scheme-options-definition is defined.
> 
> The call to guile is hardcoded at the top of the file, and will need to be
> changed to use the appropriate lilypond environment variable that defines
> the location of guile.
> 
> But I thought I'd pass it out for some third-party review.  It handled the
> tabs->spaces conversion of scm/lily.scm perfectly, as near as I can tell.

Oops -- I have now found a problem with it.  The else part of an if doesn't
line up with the then part.  More work to do, I guess.

BTW, usage is

./scmindent.scm < input-file > output-file

Thanks,

Carl


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to