]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix breakage in merge of 4798/4. Add regtest.
authorDavid Kastrup <dak@gnu.org>
Tue, 22 Mar 2016 12:50:01 +0000 (13:50 +0100)
committerDavid Kastrup <dak@gnu.org>
Tue, 22 Mar 2016 14:05:05 +0000 (15:05 +0100)
input/regression/identifier-alists.ly [new file with mode: 0644]
lily/parser.yy

diff --git a/input/regression/identifier-alists.ly b/input/regression/identifier-alists.ly
new file mode 100644 (file)
index 0000000..e70713e
--- /dev/null
@@ -0,0 +1,20 @@
+\version "2.19.39"
+
+\header {
+  texidoc = "Music variables may be structured into alists
+indexed by numbers or symbols."
+}
+
+\layout { ragged-right = ##t }
+
+violin.1 = { e''-\markup \typewriter "\\violin.1" }
+violin.2 = { c'-\markup \typewriter "\\violin.2" }
+viola.I = { e-\markup \typewriter "\\viola.I" }
+viola.II = { c-\markup \typewriter "\\viola.II" }
+
+\score {
+  <<
+    \new Staff << \violin.1 \\ \violin.2 >>
+    \new Staff \with { \clef "alto" } << \viola.I \\ \viola.II >>
+  >>
+}
index 6e8b1435fa9e79c050e435223aeb4ab53b77bb66..7a11d05fc95f5c09479b693f6527ac216340257a 100644 (file)
@@ -4048,7 +4048,8 @@ Lily_lexer::try_special_identifiers (SCM *destination, SCM sid)
                *destination = unsmob<Score> (sid)->clone ()->unprotect ();
                return SCM_IDENTIFIER;
        } else if (scm_is_pair (sid)
-                  && scm_is_true (Lily::key_list_p (sid))) {
+                  && scm_is_pair (scm_car (sid))
+                  && scm_is_true (Lily::key_p (scm_caar (sid)))) {
                *destination = sid;
                return LOOKUP_IDENTIFIER;
        }