aboutsummaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
authorKonstantin Mikhailov2016-09-16 09:57:55 +0000
committerNathan Grigg2016-09-30 19:36:33 -0700
commitca19083bf5ac0f34f96509e7e62349550faa5535 (patch)
tree55443661cf18c5566f7a671365b4089105f2bfe9 /syntax
parente831cf0390c296159378d1d10ecd770dedb86ebd (diff)
downloadvim-beancount-ca19083bf5ac0f34f96509e7e62349550faa5535.tar.gz
Fix highlight of txn directive
txn directive is mutually exclusive with flags (!*)
Diffstat (limited to 'syntax')
-rw-r--r--syntax/beancount.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/beancount.vim b/syntax/beancount.vim
index 5a45742..814c3f3 100644
--- a/syntax/beancount.vim
+++ b/syntax/beancount.vim
@@ -51,7 +51,7 @@ syn region beanPushTag matchgroup=beanKeyword start="\v^(push|pop)tag" end="$"
syn region beanPad matchgroup=beanKeyword start="pad" end="$" contained
\ keepend contains=beanAccount,beanComment
-syn region beanTxn matchgroup=beanKeyword start="\v(txn)?\s+[*!]" skip="^\s"
+syn region beanTxn matchgroup=beanKeyword start="\v\s+(txn|[*!])" skip="^\s"
\ end="^" keepend contained fold
\ contains=beanString,beanPost,beanComment,beanTag,beanLink,beanMeta
syn region beanPost start="^\v\C\s+[A-Z]@=" end="$"