From b133e16fb33bec8cc19e7649efe40671d50c2e38 Mon Sep 17 00:00:00 2001 From: Paul Lathrop Date: Mon, 5 Mar 2012 14:13:24 -0800 Subject: Fix ledger-reconcile-visit. Removes a (apparently) un-necessary check on the car of the 'where' text property, and instead checks that the cdr is a valid marker object. May not be the correct fix for this problem, but *does* work. --- lisp/ledger.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/ledger.el b/lisp/ledger.el index 1c8aade3..30677f1c 100644 --- a/lisp/ledger.el +++ b/lisp/ledger.el @@ -545,7 +545,7 @@ dropped." (defun ledger-reconcile-visit () (interactive) (let ((where (get-text-property (point) 'where))) - (when (or (equal (car where) "") (equal (car where) "/dev/stdin")) + (when (markerp (cdr where)) (switch-to-buffer-other-window ledger-buf) (goto-char (cdr where))))) -- cgit v1.2.3 From 4da56023d060129c38a49c5bdcb52cd3cdc1dfc6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 00:59:54 -0500 Subject: Added ldg-test.el, to assist writing regression tests --- lisp/ldg-mode.el | 1 + lisp/ldg-test.el | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 lisp/ldg-test.el (limited to 'lisp') diff --git a/lisp/ldg-mode.el b/lisp/ldg-mode.el index cc9e8d92..4d13d7d2 100644 --- a/lisp/ldg-mode.el +++ b/lisp/ldg-mode.el @@ -47,6 +47,7 @@ (define-key map [(control ?c) (control ?e)] 'ledger-toggle-current-entry) (define-key map [(control ?c) (control ?r)] 'ledger-reconcile) (define-key map [(control ?c) (control ?s)] 'ledger-sort) + (define-key map [(control ?c) (control ?t)] 'ledger-test-run) (define-key map [tab] 'pcomplete) (define-key map [(control ?i)] 'pcomplete) (define-key map [(control ?c) tab] 'ledger-fully-complete-entry) diff --git a/lisp/ldg-test.el b/lisp/ldg-test.el new file mode 100644 index 00000000..2ab7a0c6 --- /dev/null +++ b/lisp/ldg-test.el @@ -0,0 +1,62 @@ +(defcustom ledger-source-directory "~/src/ledger" + "Directory where the Ledger sources are located." + :type 'directory + :group 'ledger) + +(defcustom ledger-test-binary "~/Products/ledger/debug/ledger" + "Directory where the Ledger sources are located." + :type 'file + :group 'ledger) + +(defun ledger-test-org-narrow-to-entry () + (outline-back-to-heading) + (narrow-to-region (point) (progn (outline-next-heading) (point))) + (goto-char (point-min))) + +(defun ledger-test-create () + (interactive) + (let ((uuid (org-entry-get (point) "ID"))) + (when (string-match "\\`\\([^-]+\\)-" uuid) + (let ((prefix (match-string 1 uuid)) + input output) + (save-restriction + (ledger-test-org-narrow-to-entry) + (goto-char (point-min)) + (while (re-search-forward "#\\+begin_src ledger" nil t) + (goto-char (match-end 0)) + (forward-line 1) + (let ((beg (point))) + (re-search-forward "#\\+end_src") + (setq input + (concat (or input "") + (buffer-substring beg (match-beginning 0)))))) + (goto-char (point-min)) + (while (re-search-forward ":OUTPUT:" nil t) + (goto-char (match-end 0)) + (forward-line 1) + (let ((beg (point))) + (re-search-forward ":END:") + (setq output + (concat (or output "") + (buffer-substring beg (match-beginning 0))))))) + (find-file-other-window (expand-file-name (concat prefix ".test") + ledger-source-directory)) + (when input + (insert input)) + (when output + (insert "\ntest \n") + (insert output) + (insert "end test\n")))))) + +(defun ledger-test-run () + (interactive) + (save-excursion + (goto-char (point-min)) + (when (re-search-forward "^test \\(.+\\)" nil t) + (let ((command (expand-file-name ledger-test-binary)) + (args (format "-f \"%s\" %s" buffer-file-name (match-string 1)))) + (kill-new args) + (message "Testing: ledger %s" args) + (async-shell-command (format "\"%s\" %s" command args)))))) + +(provide 'ldg-test) -- cgit v1.2.3 From 11067d9cc6593fd19cb44ecd3cd8c31b9b8b0f65 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 02:39:42 -0500 Subject: Unexpected initial whitespace is an error (again) Fixes #565 --- 95350193.test | 6 - lisp/ldg-test.el | 11 +- src/textual.cc | 5 +- test/regress/25A099C9.test | 1196 +++++++++++++++++++++++++++++++++++++++++++- test/regress/8EAF77C0.test | 21 + test/regress/95350193.test | 6 + 6 files changed, 1232 insertions(+), 13 deletions(-) delete mode 100644 95350193.test create mode 100644 test/regress/8EAF77C0.test create mode 100644 test/regress/95350193.test (limited to 'lisp') diff --git a/95350193.test b/95350193.test deleted file mode 100644 index dadb39cf..00000000 --- a/95350193.test +++ /dev/null @@ -1,6 +0,0 @@ -2011-11-08 * Test - Assets:Voucher:Amazon 137.87 GBP (48H5) - Assets:Cash -137.87 GBP - -test pricedb -end test diff --git a/lisp/ldg-test.el b/lisp/ldg-test.el index 2ab7a0c6..ad612f4d 100644 --- a/lisp/ldg-test.el +++ b/lisp/ldg-test.el @@ -39,8 +39,11 @@ (setq output (concat (or output "") (buffer-substring beg (match-beginning 0))))))) - (find-file-other-window (expand-file-name (concat prefix ".test") - ledger-source-directory)) + (find-file-other-window + (expand-file-name (concat prefix ".test") + (expand-file-name "test/regress" + ledger-source-directory))) + (ledger-mode) (when input (insert input)) (when output @@ -52,9 +55,11 @@ (interactive) (save-excursion (goto-char (point-min)) - (when (re-search-forward "^test \\(.+\\)" nil t) + (when (re-search-forward "^test \\(.+?\\)\\( ->.*\\)?$" nil t) (let ((command (expand-file-name ledger-test-binary)) (args (format "-f \"%s\" %s" buffer-file-name (match-string 1)))) + (setq args (replace-regexp-in-string "\\$sourcepath" + ledger-source-directory args)) (kill-new args) (message "Testing: ledger %s" args) (async-shell-command (format "\"%s\" %s" command args)))))) 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 '#': diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test index 418b77c8..6c0546ee 100644 --- a/test/regress/25A099C9.test +++ b/test/regress/25A099C9.test @@ -1,17 +1,1211 @@ -test -f $sourcepath/src/amount.h reg -> 7 +test -f $sourcepath/src/amount.h reg -> 92 __ERROR__ +While parsing file "$sourcepath/src/amount.h", line 2: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 3: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 4: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 5: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 6: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 7: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 8: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 9: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 10: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 11: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 12: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 13: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 14: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 15: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 16: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 17: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 18: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 19: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 20: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 21: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 22: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 23: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 24: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 25: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 26: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 27: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 28: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 29: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 30: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 33: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 34: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 37: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 38: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 39: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 40: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 41: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 42: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 43: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 44: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 45: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 46: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 47: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 48: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 49: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 50: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 51: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 52: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 66: Error: No quantity specified for amount +While parsing file "$sourcepath/src/amount.h", line 69: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 70: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 71: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 72: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 73: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 74: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 75: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 76: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 77: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 83: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 84: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 85: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 86: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 87: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 88: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 89: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 90: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 91: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 93: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 94: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 95: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 96: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 99: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 100: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 101: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 102: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 103: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 104: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 106: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 108: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 109: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 111: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 112: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 113: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 115: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 116: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 117: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 118: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 121: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 122: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 123: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 124: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 126: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 128: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 129: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 132: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 133: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 135: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 136: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 137: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 138: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 139: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 140: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 142: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 143: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 144: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 146: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 147: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 149: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 150: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 151: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 153: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 154: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 155: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 156: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 157: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 158: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 159: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 160: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 161: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 162: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 163: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 164: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 165: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 166: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 167: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 168: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 169: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 171: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 173: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 174: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 175: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 176: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 177: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 178: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 179: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 180: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 182: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 183: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 184: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 185: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 186: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 187: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 188: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 190: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 191: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 193: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 194: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 195: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 196: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 197: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 198: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 199: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 200: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 201: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 202: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 203: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 204: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 205: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 206: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 207: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 208: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 209: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 210: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 211: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 212: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 213: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 214: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 215: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 216: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 217: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 219: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 220: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 221: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 222: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 223: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 224: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 225: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 226: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 227: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 229: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 230: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 231: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 232: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 233: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 234: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 235: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 236: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 237: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 238: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 240: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 242: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 243: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 245: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 246: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 247: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 248: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 249: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 251: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 252: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 253: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 254: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 256: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 257: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 258: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 259: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 260: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 261: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 262: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 263: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 264: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 265: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 266: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 267: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 269: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 271: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 272: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 273: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 275: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 276: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 277: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 278: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 279: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 280: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 282: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 283: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 284: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 285: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 286: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 287: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 289: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 291: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 292: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 294: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 295: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 296: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 297: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 298: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 299: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 300: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 301: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 302: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 303: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 305: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 306: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 307: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 308: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 309: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 310: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 311: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 312: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 313: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 315: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 316: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 317: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 319: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 320: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 321: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 322: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 323: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 324: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 325: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 326: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 327: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 328: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 330: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 331: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 332: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 333: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 334: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 335: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 337: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 338: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 339: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 340: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 341: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 342: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 343: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 344: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 345: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 346: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 347: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 349: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 350: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 351: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 352: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 353: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 354: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 355: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 356: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 358: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 359: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 360: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 361: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 362: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 363: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 364: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 365: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 367: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 368: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 369: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 370: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 371: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 372: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 373: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 374: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 376: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 377: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 378: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 379: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 380: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 381: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 382: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 383: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 384: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 385: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 387: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 388: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 389: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 390: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 391: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 392: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 393: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 394: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 395: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 396: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 398: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 399: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 400: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 401: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 402: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 403: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 404: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 405: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 406: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 407: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 408: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 410: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 412: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 414: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 415: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 416: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 418: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 420: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 421: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 422: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 423: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 424: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 425: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 427: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 428: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 430: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 431: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 432: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 434: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 435: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 437: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 438: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 439: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 440: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 441: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 443: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 444: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 445: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 446: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 447: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 448: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 450: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 451: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 452: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 453: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 455: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 456: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 457: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 458: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 459: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 460: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 461: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 463: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 465: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 466: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 467: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 469: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 470: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 471: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 472: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 473: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 475: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 476: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 477: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 479: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 480: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 481: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 483: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 484: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 486: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 487: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 488: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 490: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 491: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 493: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 494: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 495: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 496: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 497: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 498: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 499: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 500: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 501: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 503: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 504: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 505: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 506: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 507: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 508: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 510: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 512: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 513: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 514: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 516: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 517: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 519: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 520: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 522: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 524: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 525: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 526: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 527: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 528: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 530: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 531: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 533: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 534: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 535: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 536: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 537: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 538: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 539: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 541: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 542: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 543: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 544: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 545: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 546: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 547: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 548: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 549: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 551: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 552: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 553: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 555: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 556: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 557: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 558: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 560: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 562: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 563: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 564: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 566: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 567: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 568: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 570: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 571: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 572: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 573: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 575: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 576: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 578: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 579: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 580: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 582: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 583: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 584: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 585: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 586: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 588: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 589: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 590: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 591: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 593: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 594: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 596: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 597: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 598: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 599: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 601: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 602: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 603: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 604: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 605: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 606: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 607: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 608: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 610: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 612: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 613: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 614: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 616: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 617: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 619: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 620: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 621: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 622: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 623: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 625: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 626: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 628: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 629: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 630: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 631: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 632: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 633: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 635: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 636: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 637: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 638: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 640: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 641: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 642: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 643: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 645: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 646: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 647: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 649: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 650: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 652: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 654: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 655: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 656: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 657: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 658: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 659: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 660: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 661: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 662: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 663: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 665: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 666: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 668: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 670: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 671: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 672: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 674: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 675: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 676: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 677: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 679: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 680: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 681: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 682: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 683: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 684: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 685: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 686: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 693: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 694: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 696: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 698: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 699: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 700: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 702: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 704: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 705: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 706: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 707: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 709: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 710: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 711: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 712: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 713: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 714: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 715: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 716: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 717: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 719: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 723: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 725: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 727: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 728: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 731: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 734: Error: Invalid date/time: line amount_t amoun +While parsing file "$sourcepath/src/amount.h", line 735: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 736: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 737: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 740: Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 741: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 742: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 743: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 746: Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 747: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 748: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 749: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 752: Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 753: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 754: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 755: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 758: Error: Invalid date/time: line std::ostream& +While parsing file "$sourcepath/src/amount.h", line 759: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 760: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 761: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 762: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 763: +Error: Unexpected whitespace at beginning of line While parsing file "$sourcepath/src/amount.h", line 765: Error: Invalid date/time: line std::istream& +While parsing file "$sourcepath/src/amount.h", line 766: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 767: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/src/amount.h", line 771: +Error: Unexpected whitespace at beginning of line end test diff --git a/test/regress/8EAF77C0.test b/test/regress/8EAF77C0.test new file mode 100644 index 00000000..fd16d642 --- /dev/null +++ b/test/regress/8EAF77C0.test @@ -0,0 +1,21 @@ +2011/08/05 Rehab Donation + Asset:Bank:Boi:Current:Dk 10 + Expense:Misc:Charity + + 2011/08/07 Net Salary + Asset:Bank:Boi:Savings:Dk -3016.24 + Income:NetSalary:Dk + +2011/08/30 Net Salary + Asset:Bank:Boi:Savings:Dk -3016.24 + Income:NetSalary:Dk + +test reg -> 3 +__ERROR__ +While parsing file "$sourcepath/test/regress/8EAF77C0.test", line 5: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/test/regress/8EAF77C0.test", line 6: +Error: Unexpected whitespace at beginning of line +While parsing file "$sourcepath/test/regress/8EAF77C0.test", line 7: +Error: Unexpected whitespace at beginning of line +end test diff --git a/test/regress/95350193.test b/test/regress/95350193.test new file mode 100644 index 00000000..dadb39cf --- /dev/null +++ b/test/regress/95350193.test @@ -0,0 +1,6 @@ +2011-11-08 * Test + Assets:Voucher:Amazon 137.87 GBP (48H5) + Assets:Cash -137.87 GBP + +test pricedb +end test -- cgit v1.2.3 From ecd2ece1957b96845ebc7e863fc9ff8be3c5361d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 03:00:39 -0500 Subject: Restored tabs that had been converted to spaces --- lisp/ledger.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp') diff --git a/lisp/ledger.el b/lisp/ledger.el index 30677f1c..4fc21d6a 100644 --- a/lisp/ledger.el +++ b/lisp/ledger.el @@ -128,12 +128,12 @@ text that should replace the format specifier." (defvar bold 'bold) (defvar ledger-font-lock-keywords - '(("\\( \\| \\|^\\)\\(;.*\\)" 2 font-lock-comment-face) + '(("\\( \\| \\|^\\)\\(;.*\\)" 2 font-lock-comment-face) ("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)" 2 bold) ;;("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)" ;; 2 font-lock-type-face) ("^\\s-+\\([*]\\s-*\\)?\\(\\([[(]\\)?\\([^*;]\\)+?\\(:\\|\\s-\\)[^]); - ]+?\\([])]\\)?\\)\\( \\| \\|$\\)" + ]+?\\([])]\\)?\\)\\( \\| \\|$\\)" 2 font-lock-keyword-face) ("^\\([~=].+\\)" 1 font-lock-function-name-face) ("^\\([A-Za-z]+ .+\\)" 1 font-lock-function-name-face)) -- cgit v1.2.3 From 7462d09b214f2497d9d41a24f4fa8a4dd1577aba Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 04:09:21 -0500 Subject: Correct parsing of automated xact expressions Fixes #458 --- lisp/ldg-test.el | 3 ++- src/query.cc | 2 +- test/regress/605A410D.test | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 test/regress/605A410D.test (limited to 'lisp') diff --git a/lisp/ldg-test.el b/lisp/ldg-test.el index ad612f4d..77e03026 100644 --- a/lisp/ldg-test.el +++ b/lisp/ldg-test.el @@ -57,7 +57,8 @@ (goto-char (point-min)) (when (re-search-forward "^test \\(.+?\\)\\( ->.*\\)?$" nil t) (let ((command (expand-file-name ledger-test-binary)) - (args (format "-f \"%s\" %s" buffer-file-name (match-string 1)))) + (args (format "--args-only --columns=80 --no-color -f \"%s\" %s" + buffer-file-name (match-string 1)))) (setq args (replace-regexp-in-string "\\$sourcepath" ledger-source-directory args)) (kill-new args) diff --git a/src/query.cc b/src/query.cc index 8bdabb38..3fec708a 100644 --- a/src/query.cc +++ b/src/query.cc @@ -146,7 +146,7 @@ query_t::lexer_t::next_token(query_t::lexer_t::token_t::kind_t tok_context) case '\t': case '\n': case '\r': - if (! multiple_args && ! consume_whitespace) + if (! multiple_args && ! consume_whitespace && ! consume_next_arg) goto test_ident; else ident.push_back(*arg_i); diff --git a/test/regress/605A410D.test b/test/regress/605A410D.test new file mode 100644 index 00000000..6943939a --- /dev/null +++ b/test/regress/605A410D.test @@ -0,0 +1,32 @@ += expr amount > 500 and account =~ /Employer:One/ + (Virtual) 1 + +2012-01-16 KFC + Employer:One $1,000.00 + Assets:Cash + += expr amount>500 and account =~ /Employer:Two/ + (Virtual) 10 + +2012-02-16 KFC + Employer:Two $1,000.00 + Assets:Cash + += Employer:Three and expr amount>500 + (Virtual) 100 + +2012-03-16 KFC + Employer:Three $1,000.00 + Assets:Cash + +test reg +12-Jan-16 KFC Employer:One $1,000.00 $1,000.00 + Assets:Cash $-1,000.00 0 + (Virtual) $1,000.00 $1,000.00 +12-Feb-16 KFC Employer:Two $1,000.00 $2,000.00 + Assets:Cash $-1,000.00 $1,000.00 + (Virtual) $10,000.00 $11,000.00 +12-Mar-16 KFC Employer:Three $1,000.00 $12,000.00 + Assets:Cash $-1,000.00 $11,000.00 + (Virtual) $100,000.00 $111,000.00 +end test -- cgit v1.2.3 From 630585599786427e25d9758638ff3b7d74680b4f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 05:30:34 -0500 Subject: Don't allow trailing ws in abbrev. account segments Fixes #358 --- lisp/ldg-post.el | 2 +- src/format.cc | 12 +++++++++++- test/baseline/opt-payee-as-account.test | 4 ++-- test/regress/6E041C52.test | 8 ++++++++ 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 test/regress/6E041C52.test (limited to 'lisp') diff --git a/lisp/ldg-post.el b/lisp/ldg-post.el index da4a2806..05b9d352 100644 --- a/lisp/ldg-post.el +++ b/lisp/ldg-post.el @@ -4,7 +4,7 @@ "" :group 'ledger) -(defcustom ledger-post-auto-adjust-amounts t +(defcustom ledger-post-auto-adjust-amounts nil "If non-nil, ." :type 'boolean :group 'ledger-post) diff --git a/src/format.cc b/src/format.cc index 79f94869..8c3cbc14 100644 --- a/src/format.cc +++ b/src/format.cc @@ -599,6 +599,7 @@ string format_t::truncate(const unistring& ustr, index = 0; #endif std::size_t counter = lens.size(); + std::list::iterator x = parts.begin(); for (std::list::iterator i = lens.begin(); i != lens.end(); i++) { @@ -628,12 +629,21 @@ string format_t::truncate(const unistring& ustr, if (adjust > 0) { DEBUG("format.abbrev", "Reducing segment " << ++index << " by " << adjust << " chars"); + while (std::isspace((*x)[*i - adjust - 1]) && adjust < *i) { + DEBUG("format.abbrev", + "Segment ends in whitespace, adjusting down"); + ++adjust; + } (*i) -= adjust; DEBUG("format.abbrev", "Segment " << index << " is now " << *i << " chars wide"); - overflow -= adjust; + if (adjust > overflow) + overflow = 0; + else + overflow -= adjust; DEBUG("format.abbrev", "Overflow is now " << overflow << " chars"); } + ++x; } DEBUG("format.abbrev", "Overflow ending this time at " << overflow << " chars"); diff --git a/test/baseline/opt-payee-as-account.test b/test/baseline/opt-payee-as-account.test index 113a395b..0d1f87d6 100644 --- a/test/baseline/opt-payee-as-account.test +++ b/test/baseline/opt-payee-as-account.test @@ -21,11 +21,11 @@ test reg --account=payee 08-Jan-01 January January:Expenses:Books $10.00 $10.00 08-Jan-01 January January:Assets:Cash $-10.00 0 -08-Jan-31 End of January End of :Expenses:Books $10.00 $10.00 +08-Jan-31 End of January End of:Expenses:Books $10.00 $10.00 08-Jan-31 End of January End of Jan:Assets:Cash $-10.00 0 08-Feb-01 February Februar:Expenses:Books $20.00 $20.00 08-Feb-01 February February:Assets:Cash $-20.00 0 -08-Feb-28 End of February End of :Expenses:Books $20.00 $20.00 +08-Feb-28 End of February End of:Expenses:Books $20.00 $20.00 08-Feb-28 End of February End of Feb:Assets:Cash $-20.00 0 08-Mar-01 March March:Expenses:Books $30.00 $30.00 08-Mar-01 March March:Assets:Cash $-30.00 0 diff --git a/test/regress/6E041C52.test b/test/regress/6E041C52.test new file mode 100644 index 00000000..0a56dd70 --- /dev/null +++ b/test/regress/6E041C52.test @@ -0,0 +1,8 @@ +2012-03-16 KFC + Expenses:E of March: End of April $100.00 + Assets:Cash + +test reg +12-Mar-16 KFC Ex:E of: End of April $100.00 $100.00 + Assets:Cash $-100.00 0 +end test -- cgit v1.2.3 From bdaa6b71fb371951d420c5f5e6a933b270c0efcb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 18 Mar 2012 00:13:41 -0500 Subject: Improvements to ldg-test.el --- lisp/ldg-test.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lisp') diff --git a/lisp/ldg-test.el b/lisp/ldg-test.el index 77e03026..a1ae3974 100644 --- a/lisp/ldg-test.el +++ b/lisp/ldg-test.el @@ -44,12 +44,15 @@ (expand-file-name "test/regress" ledger-source-directory))) (ledger-mode) - (when input - (insert input)) - (when output - (insert "\ntest \n") - (insert output) - (insert "end test\n")))))) + (if input + (insert input) + (insert "2012-03-17 Payee\n") + (insert " Expenses:Food $20\n") + (insert " Assets:Cash\n")) + (insert "\ntest reg\n") + (if output + (insert output)) + (insert "end test\n"))))) (defun ledger-test-run () (interactive) -- cgit v1.2.3 From 4b2b9dc009e5f44029cc23ea17e0a5c98266baff Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Mar 2012 00:37:52 -0500 Subject: Current directory fix to ldg-test.el --- lisp/ldg-test.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/ldg-test.el b/lisp/ldg-test.el index a1ae3974..478c62d8 100644 --- a/lisp/ldg-test.el +++ b/lisp/ldg-test.el @@ -66,6 +66,10 @@ ledger-source-directory args)) (kill-new args) (message "Testing: ledger %s" args) - (async-shell-command (format "\"%s\" %s" command args)))))) + (let ((prev-directory default-directory)) + (cd ledger-source-directory) + (unwind-protect + (async-shell-command (format "\"%s\" %s" command args)) + (cd prev-directory))))))) (provide 'ldg-test) -- cgit v1.2.3