From: Han-Wen Nienhuys Date: Sat, 1 Mar 2003 00:24:06 +0000 (+0000) Subject: * input/regression/rehearsal-mark.ly: new file. X-Git-Tag: release/1.7.14~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=35c0d541ec7ca1b4df34f45fd624a64545022379;p=lilypond.git * input/regression/rehearsal-mark.ly: new file. * lily/my-lily-parser.cc (here_input): revert reporting of errors: report error at the current token again. --- diff --git a/ChangeLog b/ChangeLog index 8d8e8d581c..8c804d9936 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-03-01 Han-Wen Nienhuys + + * input/regression/rehearsal-mark.ly: new file. + + * lily/my-lily-parser.cc (here_input): revert reporting of errors: + report error at the current token again. + 2003-02-26 Jan Nieuwenhuizen * cygwin/mknetrel: Exit if doc build fails. diff --git a/Documentation/user/refman.itely b/Documentation/user/refman.itely index e3c9a4a03b..4300eeb7cc 100644 --- a/Documentation/user/refman.itely +++ b/Documentation/user/refman.itely @@ -1975,10 +1975,10 @@ finger changes, use markup texts: @c @lilypond[verbatim, singleline, fragment] c'4-1 c'4-2 c'4-3 c'4-4 - c^#'(finger "2-3") + c^\markup { \fontsize #-3 \number "2-3" } @end lilypond - +@cindex finger change @cindex scripts @cindex superscript @cindex subscript diff --git a/input/regression/breathing-sign.ly b/input/regression/breathing-sign.ly index cf0021f992..a0e9a09c9c 100644 --- a/input/regression/breathing-sign.ly +++ b/input/regression/breathing-sign.ly @@ -26,7 +26,7 @@ two measures all have the same distance from each other: es8 d es f g8 \breathe f | % Revert to old layout: \property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::brew_molecule - es8 d \breathe es f g f | + [es8 d] \breathe [es f g f] | es2 r4 \bar "||" } } diff --git a/input/regression/rehearsal-mark.ly b/input/regression/rehearsal-mark.ly new file mode 100644 index 0000000000..226200564f --- /dev/null +++ b/input/regression/rehearsal-mark.ly @@ -0,0 +1,28 @@ + +\header { texidoc= " Rehearsal marks are printed over barlines. They +can be incremented automatically or manually. "} + + +\version "1.7.12" + + +global = \notes { + s1 | \mark "A" + s1 | \mark \default + s1 | \mark \default + s1 | \mark "12" + s1 | \mark \default + s1 | \mark "A2" + s1 | \mark \markup { mark \column << up \bold down >> } + s1 +} + +one = \notes \relative c { + c''1 c c c c c c +} + + +\score{ +\context Staff < \global \one > +} +%% new-chords-done %% diff --git a/input/test/mark.ly b/input/test/mark.ly index dab2e6a574..e69de29bb2 100644 --- a/input/test/mark.ly +++ b/input/test/mark.ly @@ -1,23 +0,0 @@ -\version "1.7.6" - - -global = \notes { - s1 | \mark "A" - s1 | \mark \default - s1 | \mark \default - s1 | \mark "12" - s1 | \mark \default - s1 | \mark "A2" - s1 | \mark #'(music "scripts-segno") - s1 -} - -one = \notes \relative c { - c''1 c c c c c c -} - - -\score{ -\context Staff < \global \one > -} -%% new-chords-done %% diff --git a/lily/my-lily-parser.cc b/lily/my-lily-parser.cc index b2529c270e..b912dc4b51 100644 --- a/lily/my-lily-parser.cc +++ b/lily/my-lily-parser.cc @@ -95,7 +95,21 @@ My_lily_parser::here_input () const Parsing looks ahead , so we really want the previous location of the lexer, not lexer_->here_input(). */ - return lexer_->last_input_; + /* + Actually, that gets very icky when there are white space, because + the line-numbers are all wrong. Let's try the character before + the current token. That gets the right result for + note/duration stuff, but doesn't mess up for errors in the 1st token of the line. + + */ + Input hi (lexer_->here_input ()); + + char const * bla = hi.defined_str0_; + if (hi.line_number () > 1 + || hi.column_number () > 1) + bla --; + + return Input (hi.source_file_, bla); } #include "paper-def.hh"