Changeset 5

Show
Ignore:
Timestamp:
02/07/05 01:14:52 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
1041
Message:

* ingy's patch re: building on osx.
* juerd reported that only \' should escapes in .

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Makefile.PL

    r1 r5  
    2222$has_readline = 0 if $^O eq 'MSWin32'; 
    2323 
    24 if ($^O =~ /darwin/i and not -e "/usr/local/readline/readline.h") { 
    25     die << '.'; 
    26 *** /usr/local/readline/readline.h not found. 
     24if ($^O =~ /darwin/i and not -e "/usr/local/include/readline/readline.h") { 
     25    warn << '.'; 
     26*** /usr/local/include/readline/readline.h not found. 
    2727*** Readline support disabled.  If you want readling support, 
    2828    please install Readline from the URL below and try again: 
    2929    http://p4.elixus.org/snap/pugs/macosx-readline-5.0.005.pkg.tar.gz 
    3030. 
     31    $has_readline = 0; 
    3132} 
    3233 
  • src/Lexer.hs

    r4 r5  
    141141                      <?> "literal string") 
    142142 
    143 singleStrChar = quotedQuote <|> noneOf "'" 
     143singleStrChar = try quotedQuote <|> noneOf "'" 
    144144 
    145145quotedQuote = do 
    146     char '\\' 
    147     anyChar 
     146    string "\\'" 
     147    return '\'' 
    148148