From 72dfa715706451d27a847c8cc2f9a7f878cd56fc Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Sun, 20 Aug 2023 15:37:11 +0100 Subject: [PATCH] Extend logTime to nanosecond precision --- syntax/log.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/log.vim b/syntax/log.vim index a12f0e8..cccbd48 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -47,8 +47,8 @@ syn match logDate '^20\d\{6}' syn keyword logDate Mon Tue Wed Thu Fri Sat Sun Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec nextgroup=logDateDay syn match logDateDay '\s\{1,2}\d\{1,2}' contained -" Matches 12:09:38 or 00:03:38.129Z or 01:32:12.102938 +0700 -syn match logTime '\d\{2}:\d\{2}:\d\{2}\(\.\d\{2,6}\)\?\(\s\?[-+]\d\{2,4}\|Z\)\?\>' nextgroup=logTimeZone,logSysColumns skipwhite +" Matches 12:09:38 or 00:03:38.129Z or 01:32:12.102938 +0700 or 01:32:12.123456789 +syn match logTime '\d\{2}:\d\{2}:\d\{2}\(\.\d\{2,9}\)\?\(\s\?[-+]\d\{2,4}\|Z\)\?\>' nextgroup=logTimeZone,logSysColumns skipwhite " Follows logTime, matches UTC or PDT 2019 or 2019 EDT syn match logTimeZone '[A-Z]\{2,5}\>\( \d\{4}\)\?' contained