From: Patrick McCarty Date: Mon, 26 Jul 2010 23:46:24 +0000 (-0700) Subject: Vim indent: update comment. X-Git-Tag: release/2.13.29-1~25 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3fa72f51bac8511233782cc30028643e7b930c3c;p=lilypond.git Vim indent: update comment. --- diff --git a/vim/lilypond-indent.vim b/vim/lilypond-indent.vim index ea82090ec8..224f5de4cd 100644 --- a/vim/lilypond-indent.vim +++ b/vim/lilypond-indent.vim @@ -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)