diff options
author | Scott Olson <scott@solson.me> | 2016-02-24 04:32:18 -0600 |
---|---|---|
committer | Scott Olson <scott@solson.me> | 2016-02-24 04:32:21 -0600 |
commit | 6498adb002bcf7e715afe46c23b8635d4592c156 (patch) | |
tree | d01e199673e596332d478b31298b7aff15db7963 /src/libexpr/lexer.l | |
parent | 8f71bc33d5af7bc6d4728e5e36e89bcad27d2096 (diff) |
Throw a specific error for incomplete parse errors.
`nix-repl` will use this for deciding whether to keep waiting for input or
error out right away.
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r-- | src/libexpr/lexer.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l index 701c01aff..f3660ab43 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; } + %% |