diff options
author | Nathan Grigg | 2014-12-31 13:36:19 -0800 |
---|---|---|
committer | Nathan Grigg | 2014-12-31 13:36:25 -0800 |
commit | ce82776dfbec64dc55136ca6863f57603309fe66 (patch) | |
tree | 5cba99b6c1c2067b17d2eeacb5d609482d9a0b1a | |
parent | e8fb2c66efc0d7e72e1fe3b42572bcca0f0aa794 (diff) | |
download | vim-beancount-ce82776dfbec64dc55136ca6863f57603309fe66.tar.gz |
Allow hyphen in account name
-rw-r--r-- | syntax/beancount.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/beancount.vim b/syntax/beancount.vim index f8ca84a..e67c73b 100644 --- a/syntax/beancount.vim +++ b/syntax/beancount.vim @@ -16,7 +16,7 @@ syn match beanAmount "\v[-+]?[[:digit:].,]+" nextgroup=beanCurrency contained \ skipwhite syn match beanCurrency "\v\w+" contained " Account name: alphanumeric with at least one colon. -syn match beanAccount "\v[[:alnum:]]+:[[:alnum:]:]+" contained +syn match beanAccount "\v[[:alnum:]]+:[-[:alnum:]:]+" contained syn match beanTag "\v#[a-z]+" contained syn match beanLink "\v\^\S+" contained |