]> git.donarmstrong.com Git - lilypond.git/commitdiff
(parse_symbol_list): Bugfix.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 11 Aug 2005 23:28:07 +0000 (23:28 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 11 Aug 2005 23:28:07 +0000 (23:28 +0000)
ChangeLog
buildscripts/fixcc.py
lily/lily-guile.cc

index ea6d38502ac1cb4302feab03d810e538f9c03c62..f87cd78f6fb87e36024c120d8e1c62e830a90fa3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-12  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * lily/lily-guile.cc (parse_symbol_list): Bugfix.
+
 2005-08-11  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * mf/GNUmakefile (get-*-fonts): Rename from get-*-pfa.  Copy SVG
index 015f5145df6f2bfa9dc094a24a9ef8fb41fa5be7..1075a52229a963ae29576c913d65928c6b874325 100644 (file)
@@ -91,6 +91,9 @@ rules = {
        ('\n[ \t]*,', ','),
        # dangling semicolon
        ('\n[ \t]*;', ';'),
+       # delete gratuitous blocks
+       ('''(?ux)\n([    ]|\t\s*){\n\s*(.*?)(?![{}]|\b(do|for|else|if|switch|while)\b);\n\s*}''',
+        '\n\\2;'),
        # brace open
        ('(\w)[ \t]*([^\s]*){([ \t]*\n)', '\\1\\2\n{\n'),
        # brace open backslash
@@ -588,6 +591,26 @@ i
   (shift) *-d;
 
   a = 0 ? *x : *y;
+
+{
+  if (foo)
+    {
+    a = 1;
+    }
+}
+
+           if (prev_delta_pitch < - 1)
+             {
+               glyph_name = "svaticana.reverse.plica";
+             }
+           if (prev_delta_pitch < - 1)
+             {
+               glyph_name = svaticana.reverse.plica;
+             }
+           if (prev_delta_pitch < - 1)
+             {
+               glyph_name = "2";
+             }
 '''
 
 def test ():
index cb269924c30482f4e9b2d0d36f42453828deec62..c147945d0767bc47b6dba8b72bbefaf4c3879d06 100644 (file)
@@ -370,11 +370,13 @@ ly_string_array_to_scm (Array<String> a)
   return s;
 }
   
-/* LST is whitespace separated list of symbols.  */
+/* SYMBOLS is a whitespace separated list.  */
 SCM
-parse_symbol_list (char const *lst)
+parse_symbol_list (char const *symbols)
 {
-  String s = lst;
+  while (isspace (*symbols))
+    *symbols++;
+  String s = symbols;
   s.substitute ('\n', ' ');
   s.substitute ('\t', ' ');
   return ly_string_array_to_scm (String_convert::split (s, ' '));