diff options
author | Zhuoyun Wei | 2016-03-06 16:17:31 +0800 |
---|---|---|
committer | Nathan Grigg | 2016-04-24 14:48:02 -0700 |
commit | 5bf9f48aeead1c79dd1110d28c6b7b6d375f71bf (patch) | |
tree | ddb039b6e3ccb75cbdea1576945e8dc1480c6635 | |
parent | cdeb7e632e62122cfdaca1d2ca993ad8be88729b (diff) | |
download | vim-beancount-5bf9f48aeead1c79dd1110d28c6b7b6d375f71bf.tar.gz |
Allow underscores and capital letters in meta keys
-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 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 |