summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-16 02:39:42 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-16 02:39:42 -0500
commit11067d9cc6593fd19cb44ecd3cd8c31b9b8b0f65 (patch)
treea2463a4aeb1126caee37457d9b0ff576de5c5fd0 /src/textual.cc
parent4da56023d060129c38a49c5bdcb52cd3cdc1dfc6 (diff)
downloadfork-ledger-11067d9cc6593fd19cb44ecd3cd8c31b9b8b0f65.tar.gz
fork-ledger-11067d9cc6593fd19cb44ecd3cd8c31b9b8b0f65.tar.bz2
fork-ledger-11067d9cc6593fd19cb44ecd3cd8c31b9b8b0f65.zip
Unexpected initial whitespace is an error (again)
Fixes #565
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 7d96310a..e7c523d9 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -337,9 +337,8 @@ void instance_t::read_next_directive()
break;
case ' ':
- case '\t': {
- break;
- }
+ case '\t':
+ throw parse_error(_("Unexpected whitespace at beginning of line"));
case ';': // comments
case '#':