From 9dc67d0ff9a71f4989fcb9a85647c9481d3928f2 Mon Sep 17 00:00:00 2001 From: MTDL9 <40929090+MTDL9@users.noreply.github.com> Date: Thu, 18 Apr 2019 06:57:53 +0200 Subject: [PATCH] Add alternate order of logTimeZone group for some SysLog dates. #3 --- syntax/log.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax/log.vim b/syntax/log.vim index 6d623b5..a8a90d5 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -49,8 +49,9 @@ syn match logDate '\(\(Mon\|Tue\|Wed\|Thu\|Fri\|Sat\|Sun\) \)\?\(Jan\|Feb\|Mar\| " 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 -" Follows logTime, matches UTC or PDT 2019 +" Follows logTime, matches UTC or PDT 2019 or 2019 EDT syn match logTimeZone '\(UTC\|PDT\|EDT\|GMT\|EST\|KST\)\( \d\{4}\)\?' contained +syn match logTimeZone '\d\{4} \(UTC\|PDT\|EDT\|GMT\|EST\|KST\)' contained " Entities