]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/regression/new-markup-syntax.scm: new file
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 1 Dec 2002 16:01:26 +0000 (16:01 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 1 Dec 2002 16:01:26 +0000 (16:01 +0000)
* lily/lexer.ll: preliminary \markup syntax.

input/regression/new-markup-syntax.ly [new file with mode: 0644]
input/regression/new-markup-syntax.scm [deleted file]
lily/lexer.ll

diff --git a/input/regression/new-markup-syntax.ly b/input/regression/new-markup-syntax.ly
new file mode 100644 (file)
index 0000000..bd6725b
--- /dev/null
@@ -0,0 +1,18 @@
+\header  {
+texidoc = "New markup syntax."
+}
+
+\version "1.7.8"
+
+
+\score {
+  \notes
+   {
+    \property Voice.TextScript \set #'molecule-callback = #brew-new-markup-molecule
+    f'-\markup { foo \bold bar \column < baz bazr >
+               \override #'(font-family . music) \lookup #"noteheads-0"
+       }
+
+    c''4
+    }
+}
diff --git a/input/regression/new-markup-syntax.scm b/input/regression/new-markup-syntax.scm
deleted file mode 100644 (file)
index f91d9c3..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-\header  {
-texidoc = "New markup syntax."
-
-}
-\version "1.7.8"
-
-
-\score {
-  \notes \transpose c d
-%\apply #display-music
-   {
-    \property Voice.TextScript \set #'molecule-callback = #brew-new-markup-molecule
-    eses'-\markup { foo \bold bar \column < baz bazr >
-               \override #'(font-family . music) \lookup #"noteheads-0"
-       } }
-}
index 39c9ce81d7376db1af56c9f7792f6e3d4ae9bcc6..c78ee41cb6cdafbce2bf626bb92db31702ccd478 100644 (file)
@@ -469,14 +469,8 @@ HYPHEN             --
                } else
                        return scan_escaped_word (str);
        }
-       {WORD} {
-               /* ugr. This sux. */
+       {LYRICS} {
                String s (YYText ()); 
-               if (s == "__")
-                       return yylval.i = EXTENDER;
-               if (s == "--")
-                       return yylval.i = HYPHEN;
-               s = lyric_fudge (s);
 
                char c = s[s.length () - 1];
                if (c == '{' ||  c == '}') // brace open is for not confusing dumb tools.
@@ -744,6 +738,9 @@ valid_version_b (String s)
 }
        
 
+/*
+  substittute _ adn \,
+*/
 String
 lyric_fudge (String s)
 {