changeset 99:b19988270d74

allow comments in parentheses git-svn-id: https://luan-java.googlecode.com/svn/trunk@100 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 29 Mar 2013 01:40:41 +0000
parents 3a0ff21f0c96
children 6c827f7275df
files src/luan/interp/LuanParser.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 3a0ff21f0c96 -r b19988270d74 src/luan/interp/LuanParser.java
--- a/src/luan/interp/LuanParser.java	Fri Mar 22 15:23:29 2013 +0000
+++ b/src/luan/interp/LuanParser.java	Fri Mar 29 01:40:41 2013 +0000
@@ -1165,7 +1165,9 @@
 				AnyOf(" \t"),
 				Comment(),
 				Sequence( '\\', EndOfLine() ),
-				Sequence( AnyOf("\r\n"), inParens )
+				Sequence( inParens, AnyOf("\r\n"),
+					Optional( "--", ZeroOrMore(NoneOf("\r\n")) )
+				)
 			)
 		);
 	}