Only match one date format (easier)

This commit is contained in:
Anthony Rose 2022-06-06 17:34:41 +01:00
parent 8b5f9c82d0
commit c642cd2798

View file

@ -13,10 +13,7 @@ syntax match prWork /^\s*WORK:/
syntax match prDone /^\s*DONE:/ syntax match prDone /^\s*DONE:/
" ISO date. " ISO date.
syntax match prDate /\<\d\{4}-\d\{2}\>/
syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}\>/ syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}\>/
syntax match prDate /\<\d\{4}-W\d\{3}\>/
syntax match prDate /\<\d\{4}-W\d\{3}-\d\>/
" ISO time. " ISO time.
syntax match prDate /\<T\d\{2}:\d\{2}\>/ syntax match prDate /\<T\d\{2}:\d\{2}\>/