From: fred Date: Sun, 24 Mar 2002 19:59:07 +0000 (+0000) Subject: lilypond-0.1.22 X-Git-Tag: release/1.5.59~3805 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=00d5bd807fb54f77feffe83723f2caf0ef9e27cd;p=lilypond.git lilypond-0.1.22 --- diff --git a/lily/my-lily-lexer.cc b/lily/my-lily-lexer.cc index 4c7f72e598..8abc8beb46 100644 --- a/lily/my-lily-lexer.cc +++ b/lily/my-lily-lexer.cc @@ -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; +}