aboutsummaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
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 d3cccfd..5a45742 100644
--- a/syntax/beancount.vim
+++ b/syntax/beancount.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: beancount
" Maintainer: Nathan Grigg
-" Latest Revision: 2014-10-07
+" Latest Revision: 2016-04-25
" if exists("b:current_syntax")
" finish
@@ -22,7 +22,7 @@ syn match beanLink "\v\^\S+" contained
" Most directives start with a date.
-syn match beanDate "^\v\d{4}-\d{2}-\d{2}" skipwhite
+syn match beanDate "^\v\d{4}[-/]\d{2}[-/]\d{2}" skipwhite
\ nextgroup=beanOpen,beanTxn,beanClose,beanNote,beanBalance,beanEvent,beanPad,beanPrice
" Options and events have two string arguments. The first, we are matching as
" beanOptionTitle and the second as a regular string.