From 9cd4fd027b41b0f37f7eb92dde73c89316c1a798 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Fri, 23 Aug 2013 02:14:28 -0400 Subject: [PATCH] allow semicolon at end of import and using statements. fixes #4130 --- src/julia-parser.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/julia-parser.scm b/src/julia-parser.scm index e0648e9acbd48..b5d7ad82582fc 100644 --- a/src/julia-parser.scm +++ b/src/julia-parser.scm @@ -1081,7 +1081,7 @@ (if (eqv? (peek-token s) #\newline) (take-token s)))) #f))) - (rest (if (or (eqv? (peek-token s) #\newline) + (rest (if (or (memv (peek-token s) '(#\newline #\;)) (eof-object? (peek-token s))) '() (parse-comma-separated s (lambda (s)