From ca19083bf5ac0f34f96509e7e62349550faa5535 Mon Sep 17 00:00:00 2001 From: Konstantin Mikhailov Date: Fri, 16 Sep 2016 09:57:55 +0000 Subject: Fix highlight of txn directive txn directive is mutually exclusive with flags (!*) --- syntax/beancount.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax') 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="$" -- cgit v1.2.3-2-gb3c3