aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Grigg2016-04-25 17:12:45 -0700
committerNathan Grigg2016-04-25 17:12:45 -0700
commit8d13b147c6feb68af10112c3d2c6dccd1a4aead4 (patch)
treefa1e273217094cee8e11e30ba2a1749600cec451
parent1ca5de509aa509b372cfb49cecce7aa49926ae05 (diff)
downloadvim-beancount-8d13b147c6feb68af10112c3d2c6dccd1a4aead4.tar.gz
Allow dates to be slash-separated
(#17)
-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.