Hi Andrew, The problem is not the length of the account name, it is that each component must begin with a letter. Your "0796" account name component is the problem here. I think what happens here is that the account name is recognized up to the ":0796" bit and then it does not recognize that as anything useful by itself. (I admit that the error message isn't really useful; it's auto-generated by the parser generator.) Just call it "A0796" or something like that and it should work. I hope this helps,
On Sun, Aug 6, 2017 at 5:46 PM, Andrew Tolmie <andythesee...@gmail.com> wrote: > My example is below: > > 22:39:47 Andrew@LAPTOP-V9S562AR:~/accounting > $ cat main.beancount > > 2012-02-01 open Assets:UK:Santander:Checking:0796 GBP > 2012-02-01 open Income:UK:Santander:Checking:0796:Interest GBP > > 22:40:27 Andrew@LAPTOP-V9S562AR:~/accounting > $ bean-check main.beancount > /mnt/c/Users/andre/OneDrive/accounting/main.beancount:2: syntax > error, unexpected COLON, expecting EOL or COMMENT > > /mnt/c/Users/andre/OneDrive/accounting/main.beancount:3: syntax > error, unexpected COLON, expecting EOL or COMMENT > > /mnt/c/Users/andre/OneDrive/accounting/main.beancount:3: Invalid > token: 'Interest' > > I am using Bash on Windows (Windows subsystem for linux). > > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beancount+unsubscr...@googlegroups.com. > To post to this group, send email to beancount@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beancount/d5eb10f7-cc02-48f5-ba9f-ccf5ac050a18%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/d5eb10f7-cc02-48f5-ba9f-ccf5ac050a18%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhN-FqbQ7GKaNtPiGEhP7o5-WfKBCvdUgWXwbJ1Wpd79zg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.