summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index f0ed8d4e..2fafa71a 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -47,7 +47,8 @@
clearerr(yyin); \
} \
if (result > 1) { \
- while (result > 1 && buf[result - 1] != '\n') \
+ while (result > 1 && \
+ (buf[result - 1] != '\n' && buf[result - 1] != ' ')) \
result--, n++; \
result--, n++; \
fseek(yyin, -n, SEEK_CUR); \