(Arne Babenhauserheide)
2014-01-21: no longer breaks on empty files. no longer breaks on empty files.
diff --git a/.bugs/bugs b/.bugs/bugs --- a/.bugs/bugs +++ b/.bugs/bugs @@ -21,5 +21,5 @@ wisp-mode: handle lines starting with un make this work: let : : origfile ( open-file : nth 1 : command-line ) r | owner:Arne Babenhauserheide <bab@draketo.de>, open:False, id:d6de2074a5017f1f29f34d142ce797981ed270a0, time:1366529287.67 wisp.py breaks on \ - quote, escaped backslash, quote | owner:Arne Babenhauserheide <bab@draketo.de>, open:True, id:d75a93ca58ade5b3e3e51f1e7ee9782e743ac131, time:1377424552.02 comments containing a closing parenthesis can break the parser. | owner:, open:False, id:d9147504868960e5fbc2648474d48ce5c9bd1a02, time:1374838747.22 -breaks on empty files | owner:Arne Babenhauserheide <bab@draketo.de>, open:True, id:e40fa7a93eb2c497dca1af7eed22ad5ed5cfbe7f, time:1390325470.91 +breaks on empty files | owner:Arne Babenhauserheide <bab@draketo.de>, open:False, id:e40fa7a93eb2c497dca1af7eed22ad5ed5cfbe7f, time:1390325470.91 quote as only char in a line gets parenthized instead of becoming a paren-prefix. | owner:Arne Babenhauserheide <bab@draketo.de>, open:True, id:eb7468387e90bb5d13f5a5d81c6f4a704f2ca0fb, time:1390326369.6 diff --git a/wisp-guile.w b/wisp-guile.w --- a/wisp-guile.w +++ b/wisp-guile.w @@ -59,7 +59,7 @@ Ends with three consecutive linebreaks o let* __ : lastchar : read-char inport ____ nextchar : read-char inport -____ text : string lastchar +____ text : if (eof-object? lastchar) "" : string lastchar incomment #f incommentfirstchar #f ; first char of a comment instring #f