I think the parser can safely handle that. I ran tests and it seems safe to
do so.
https://bitbucket.org/blais/beancount/commits/6cb77e0d335613ad880b6a7e2b505ddd0e931322?at=default

On Mon, Aug 7, 2017 at 6:45 AM, Andrew Tolmie <andythesee...@gmail.com>
wrote:

> Thanks for the suggestion. I wonder if the parser should use any character
> in alphanumeric?
>
> On Monday, August 7, 2017 at 4:47:30 AM UTC+1, Martin Blais wrote:
>>
>> 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 <andyth...@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+...@googlegroups.com.
>>> To post to this group, send email to bean...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/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/b04b7d21-a83f-4c95-93c6-c8f90b25f6e7%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/b04b7d21-a83f-4c95-93c6-c8f90b25f6e7%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%2BhNOO-AuFHgMoB7NfsRyDxAuuO6H_K3Wn-gJtB_XfcZ_kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to