aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Grigg2014-11-21 17:01:24 -0800
committerNathan Grigg2014-11-21 17:01:24 -0800
commitb8c21d3616e0b7cf5fb58586ac1940b8754d75c6 (patch)
tree5b2dc90636ba292da8aacecd33829b8b79615afe
parentf795769af03223e5e929c99c8b68d4ee075dad5a (diff)
downloadvim-beancount-b8c21d3616e0b7cf5fb58586ac1940b8754d75c6.tar.gz
Fix up syntax highlighting
Diffstat (limited to '')
-rw-r--r--syntax/beancount.vim14
1 files changed, 8 insertions, 6 deletions
diff --git a/syntax/beancount.vim b/syntax/beancount.vim
index 2fe4be9..6498290 100644
--- a/syntax/beancount.vim
+++ b/syntax/beancount.vim
@@ -26,22 +26,24 @@ syn match beanDate "^\v\d{4}-\d{2}-\d{2}" skipwhite
" beanOptionTitle and the second as a regular string.
syn region beanOption matchgroup=beanKeyword start="^option" end="$"
\ contains=beanOptionTitle,beanComment
+syn region beanOption matchgroup=beanKeyword start="^plugin" end="$"
+ \ contains=beanString,beanComment
syn region beanEvent matchgroup=beanKeyword start="event" end="$" contained
\ contains=beanOptionTitle,beanComment
syn region beanOptionTitle start='"' skip='\\"' end='"' contained
\ nextgroup=beanString skipwhite
-syn region beanOpen matchgroup=beanKeyword start="open" end="$"
+syn region beanOpen matchgroup=beanKeyword start="open" end="$" contained
\ contains=beanAccount,beanCurrency,beanComment
-syn region beanClose matchgroup=beanKeyword start="close" end="$"
+syn region beanClose matchgroup=beanKeyword start="close" end="$" contained
\ contains=beanAccount,beanComment
syn region beanNote matchgroup=beanKeyword start="\vnote|document" end="$"
- \ contains=beanAccount,beanString,beanComment
-syn region beanBalance matchgroup=beanKeyword start="balance" end="$"
+ \ contains=beanAccount,beanString,beanComment contained
+syn region beanBalance matchgroup=beanKeyword start="balance" end="$" contained
\ contains=beanAccount,beanAmount,beanComment
-syn region beanPrice matchgroup=beanKeyword start="price" end="$"
+syn region beanPrice matchgroup=beanKeyword start="price" end="$" contained
\ contains=beanCurrency,beanAmount
syn keyword beanKeyword pushtag poptag
-syn region beanPad matchgroup=beanKeyword start="^pad" end="$"
+syn region beanPad matchgroup=beanKeyword start="^pad" end="$" contained
\ contains=beanAccount,beanComment
syn region beanTxn matchgroup=beanKeyword start="\v(txn)?\s+[*!]" skip="^\s"