]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.22
authorfred <fred>
Sun, 24 Mar 2002 19:59:07 +0000 (19:59 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:59:07 +0000 (19:59 +0000)
lily/my-lily-lexer.cc

index 4c7f72e598d682e16679e9dfbd23b19006b72e11..8abc8beb465181f0db36359c30a5bfa78e3ad757 100644 (file)
@@ -164,3 +164,21 @@ My_lily_lexer::clear_notenames()
   delete note_tab_p_;
   note_tab_p_ = new Notename_table;
 }
+
+char
+My_lily_lexer::escaped_char(char c) const
+{
+  switch(c)
+    {
+    case 'n':
+      return '\n';
+    case 't':
+      return '\t';
+      
+    case '\'':
+    case '\"':
+    case '\\':
+      return c;
+    }
+  return 0;
+}