]> git.donarmstrong.com Git - lilypond.git/commitdiff
Vim indent: update comment.
authorPatrick McCarty <pnorcks@gmail.com>
Mon, 26 Jul 2010 23:46:24 +0000 (16:46 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Mon, 26 Jul 2010 23:48:13 +0000 (16:48 -0700)
vim/lilypond-indent.vim

index ea82090ec822a1798863fca2dc0d741fc9300951..224f5de4cdfd511946b9173767f7b36220868460 100644 (file)
@@ -38,10 +38,15 @@ function GetLilyPondIndent()
     let ind = ind - &sw
   endif
 
-  " Check if the previous line is a `lilyScheme' region, and if
-  " so, use lisp-style indentation for the current line.
-  " TODO: only works in version 7.1.215 or later, though it should
-  " silently fail in older versions.
+  " Check if the first character from the previous line is within
+  " a `lilyScheme' region, and if so, use lisp-style indentation
+  " for the current line.
+  "
+  " TODO:
+  "   - Only works in version 7.1.215 or later, though it should
+  "     silently fail in older versions.
+  "   - We should support `lilyScheme' regions that begin in the
+  "     middle of the line, too.
   for id in synstack(lnum, 1)
     if synIDattr(id, "name") == "lilyScheme"
       let ind = lispindent(v:lnum)