Fixed timestamp regex

This commit is contained in:
Trey Blancher 2023-12-24 02:15:01 -05:00
parent 88510ea15d
commit d4ead0d6a8
1 changed files with 5 additions and 1 deletions

View File

@ -102,9 +102,11 @@ syntax keyword Customers
\ Comerica
\ Community
\ CoPERA
\ Corebridge
\ Credit
\ Desert
\ Digital
\ Dish
\ E
\ ETRADE
\ E*TRADE
@ -140,6 +142,7 @@ syntax keyword Customers
\ National
\ Nationwide
\ Navy
\ Network
\ New
\ Northwestern
\ Norton
@ -172,6 +175,7 @@ syntax keyword Customers
\ US
\ Union
\ United
\ Walmart
\ Wells
\ West
\ Woodforest
@ -191,7 +195,7 @@ syntax match timetrackerTask /.*/ contained
"syntax region errTimestamp matchgroup=timestamp start=/^\(\d\{4}-\(0\d\|1[0-2]\)-\d\{2} \d\{2}:\d\{2}:\d\{2}\)\@!/ end=/: / contains=timetrackerTimestamp
syntax region timestampGroup start=/^/ end=/: / contains=timetrackerTimestamp
syntax region errTimestamp matchgroup=timestamp start="^\%(\d\{4}-\%(0[135789]-\%([0-2]\d\|3[01]\)\|\%(1[02]-\%([0-2]\d\|3[01]\)\)\|0[46]-\%([0-2]\d\|30\)\|11-\%([0-2]\d\|30\)\|02-[0-2]\d\) \%([01]\d\|2[0-3]\)\%(:[0-5]\d\)\{2}\)\@!" end=": "
syntax region errTimestamp matchgroup=timestamp start="^\%(\d\{4}-\%(\%(0[13578]\|1[02]\)-\%([0-2]\d\|3[01]\)\|\%(0[469]\|11\)-\%([0-2]\d\|30\)\|02-[0-2]\d\) \%([01]\d\|2[0-3]\)\%(:[0-5]\d\)\{2}\)\@!" end=": "
syntax region category start=/\[/ end=/\]/ contains=timetrackerCategories
syntax region ticket start=/\(#\|CM-\|PD-\|NETENG-\|OPS-\)\d\{-1}/ end=/\d /
"syntax region item matchgroup=task start=/\]\s[\k ]\+/ end=/$/ contains=ticket