Syntax error in beancount file

56 views
Skip to first unread message

Wolfgang Fahl

unread,
Oct 11, 2024, 5:47:52 AM10/11/24
to Beancount
With the beancount file below i get
bean-check test.beancount
test.beancount:11:      syntax error, unexpected COLON, expecting end of file or EOL
test.beancount:11:      Invalid token: 'newsletter'
Why would the second line not work while the first does?

;; -*- mode: org; mode: beancount; -*-
;; Example for invalid token

* Options

option "title" "Invalid token"
option "operating_currency" "EUR"

* Expenses
1999-06-01 open Assets:Steuer:Soli-zur-Körperschaftssteuer      EUR
1999-06-01 open Assets:4610-Werbung:newsletter                  EUR

Wolfgang Fahl

unread,
Oct 11, 2024, 5:57:22 AM10/11/24
to Beancount
see also https://github.com/WolfgangFahl/pynomina/issues/10 - it seems lower case names are not allowed

Daniele Nicolodi

unread,
Oct 11, 2024, 6:32:52 AM10/11/24
to bean...@googlegroups.com
On 11/10/24 17:57, Wolfgang Fahl wrote:
> see also https://github.com/WolfgangFahl/pynomina/issues/10 - it seems
> lower case names are not allowed

Indeed, each component of an account name needs to start with a capital
letter. It is well documented. See for example
https://beancount.github.io/docs/beancount_language_syntax.html#accounts

Cheers,
Dan

Reply all
Reply to author
Forward
0 new messages