From 8d13b147c6feb68af10112c3d2c6dccd1a4aead4 Mon Sep 17 00:00:00 2001 From: Nathan Grigg Date: Mon, 25 Apr 2016 17:12:45 -0700 Subject: Allow dates to be slash-separated (#17) --- syntax/beancount.vim | 4 ++-- 1 file 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. -- cgit v1.2.3-2-gb3c3