aboutsummaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
authorJakob Schnitzer2016-11-11 18:13:08 +0100
committerJakob Schnitzer2016-11-11 18:13:08 +0100
commitc12e3b2bf4b9f90f85fcbdfd7e1a9229e6f70bb4 (patch)
tree1b0b82491c351f355da1999f5ee78cca621427fc /syntax
parent0b9b6d78b4dc8de56a34c7908c3f47dbb86ceea7 (diff)
downloadvim-beancount-c12e3b2bf4b9f90f85fcbdfd7e1a9229e6f70bb4.tar.gz
add back support for `*` transaction flag
Diffstat (limited to 'syntax')
-rw-r--r--syntax/beancount.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/beancount.vim b/syntax/beancount.vim
index fd61d81..e75ebc1 100644
--- a/syntax/beancount.vim
+++ b/syntax/beancount.vim
@@ -19,7 +19,7 @@ syn match beanCurrency "\v\w+" contained
syn match beanAccount "\v[[:alnum:]]+:[-[:alnum:]:]+" contained
syn match beanTag "\v#[-[:alnum:]]+" contained
syn match beanLink "\v\^\S+" contained
-syn match beanFlag "\v[!&#?%PSTCURM]" contained
+syn match beanFlag "\v[*!&#?%PSTCURM]" contained
" Most directives start with a date.
syn match beanDate "^\v\d{4}[-/]\d{2}[-/]\d{2}" skipwhite
@@ -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\s+(txn|[!&#?%PSTCURM])" skip="^\s"
+syn region beanTxn matchgroup=beanKeyword start="\v\s+(txn|[*!&#?%PSTCURM])" skip="^\s"
\ end="^" keepend contained fold
\ contains=beanString,beanPost,beanComment,beanTag,beanLink,beanMeta
syn region beanPost start="^\v\C\s+(([!&#?%PSTCURM]\s+)?[A-Z])@=" end="$"