aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Grigg2014-12-31 13:36:19 -0800
committerNathan Grigg2014-12-31 13:36:25 -0800
commitce82776dfbec64dc55136ca6863f57603309fe66 (patch)
tree5cba99b6c1c2067b17d2eeacb5d609482d9a0b1a
parente8fb2c66efc0d7e72e1fe3b42572bcca0f0aa794 (diff)
downloadvim-beancount-ce82776dfbec64dc55136ca6863f57603309fe66.tar.gz
Allow hyphen in account name
Diffstat (limited to '')
-rw-r--r--syntax/beancount.vim2
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