aboutsummaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
authorZhuoyun Wei2016-03-06 16:17:31 +0800
committerNathan Grigg2016-04-24 14:48:02 -0700
commit5bf9f48aeead1c79dd1110d28c6b7b6d375f71bf (patch)
treeddb039b6e3ccb75cbdea1576945e8dc1480c6635 /syntax
parentcdeb7e632e62122cfdaca1d2ca993ad8be88729b (diff)
downloadvim-beancount-5bf9f48aeead1c79dd1110d28c6b7b6d375f71bf.tar.gz
Allow underscores and capital letters in meta keys
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 fa7abf3..d3cccfd 100644
--- a/syntax/beancount.vim
+++ b/syntax/beancount.vim
@@ -56,7 +56,7 @@ syn region beanTxn matchgroup=beanKeyword start="\v(txn)?\s+[*!]" skip="^\s"
\ contains=beanString,beanPost,beanComment,beanTag,beanLink,beanMeta
syn region beanPost start="^\v\C\s+[A-Z]@=" end="$"
\ contains=beanAccount,beanAmount,beanComment,beanCost,beanPrice
-syn region beanMeta matchgroup=beanTag start="^\v\C\s+[-a-z]+:(\s|$)@=" end="$"
+syn region beanMeta matchgroup=beanTag start="^\v\C\s+[a-z][-_a-zA-Z0-9]*:(\s|$)@=" end="$"
syn region beanCost start="{" end="}" contains=beanAmount contained
syn match beanPrice "\V@@\?" nextgroup=beanAmount contained