summaryrefslogtreecommitdiff
path: root/source4/lib/ejs/ejsLex.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-11 22:40:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:07 -0500
commitba1ee57df43fe93c8b650478324ddd6cc1a3c7bc (patch)
tree520287c2e17509ba1d9a9895b986a1a59a945e80 /source4/lib/ejs/ejsLex.c
parent3e5649f79f910c9cad96a362d679f34453e60fa9 (diff)
downloadsamba-ba1ee57df43fe93c8b650478324ddd6cc1a3c7bc.tar.gz
samba-ba1ee57df43fe93c8b650478324ddd6cc1a3c7bc.tar.bz2
samba-ba1ee57df43fe93c8b650478324ddd6cc1a3c7bc.zip
r8333: merged with latest upstream ejs sources
(This used to be commit b0f9ddafe95d4e8d846bc72a39e94d22da271348)
Diffstat (limited to 'source4/lib/ejs/ejsLex.c')
-rw-r--r--source4/lib/ejs/ejsLex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/ejs/ejsLex.c b/source4/lib/ejs/ejsLex.c
index b0d6483c2a..6dcc1c7b78 100644
--- a/source4/lib/ejs/ejsLex.c
+++ b/source4/lib/ejs/ejsLex.c
@@ -36,7 +36,7 @@
*/
/********************************** Includes **********************************/
-#include "lib/ejs/ejsInternal.h"
+#include "ejsInternal.h"
#if BLD_FEATURE_EJS
@@ -439,6 +439,9 @@ static int getLexicalToken(Ejs *ep, int state)
*/
while (1) {
if ((c = inputGetc(ep)) < 0) {
+ if (style == '/') {
+ return EJS_TOK_EOF;
+ }
ejsError(ep, "Syntax Error");
return EJS_TOK_ERR;
}