From 9af0225f78e704b4e77e35a0b329a42fb2308c46 Mon Sep 17 00:00:00 2001 From: David Crosby Date: Wed, 22 Dec 2021 10:44:10 -0700 Subject: [PATCH] Adjust vim regex for tjpnumber to highlight minutes --- lib/taskjuggler/VimSyntax.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/taskjuggler/VimSyntax.rb b/lib/taskjuggler/VimSyntax.rb index 98118a7d..795d4901 100644 --- a/lib/taskjuggler/VimSyntax.rb +++ b/lib/taskjuggler/VimSyntax.rb @@ -187,7 +187,7 @@ def matches syn match tjpcomment /#.*$/ syn match tjpcomment "//.*$" syn match tjpinclude /include.*$/ -syn match tjpnumber /\s[-+]\?\d\+\(\.\d\+\)\?\([hdwmy]\|min\)\?/ +syn match tjpnumber /\s[-+]\?\d\+\(\.\d\+\)\?\(min\|[hdwmy]\)\?/ syn match tjpdate /\s\d\{4}-\d\{1,2}-\d\{1,2}\(-\d\{1,2}:\d\{1,2}\(:\d\{1,2}\)\?\(-[-+]\?\d\{4}\)\?\)\?/ syn match tjptime /\s\d\{1,2}:\d\d\(:\d\d\)\?/