about summary refs log tree commit diff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24T12·34+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24T12·34+0100
commitb584a0e7dea6fd903f8a285ee3a997ba535b44a7 (patch)
tree8ec27a4865126929da9ea12bffc9f2cb9f114f9c /src/libexpr/lexer.l
parentbf2adf72c4fb4e04afb95ad3b2ad84c19707f246 (diff)
parent6498adb002bcf7e715afe46c23b8635d4592c156 (diff)
Merge pull request #816 from tsion/incomplete-parse
Throw a specific error for incomplete parse errors.
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r--src/libexpr/lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 701c01aff973..f3660ab43723 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -195,5 +195,7 @@ or          { return OR_KW; }
 
 }
 
+<<EOF>> { data->atEnd = true; return 0; }
+
 %%