summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-13 07:47:53 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-13 07:47:53 (GMT)
commit18307335f46139e34fa01638fe074b85953322ee (patch)
treef00f57d64e8175f3576812b6acab2d1edc1b9afd
parente63be0947874f10559c6323ca3c9cafaf64d0fa8 (diff)
Clifford Wolf:
Fixed lexing '//' comment with no newline at end of file git-svn-id: http://svn.clifford.at/openscad/trunk@270 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer.l b/lexer.l
index ebd5f1a..b49b9ca 100644
--- a/lexer.l
+++ b/lexer.l
@@ -98,7 +98,7 @@ extern const char *parser_input_buffer;
}
[\n\r\t ]
-\/\/[^\n]*\n
+\/\/[^\n]*\n?
"/*" BEGIN(comment);
<comment>"*/" BEGIN(INITIAL);
<comment>.|\n
contact: Jan Huwald // Impressum