Skip to content

Commit da332bf

Browse files
committed
Replace TimeZone keywords like UTC and EDT with generic uppercase match
This allows supporting all the TimeZone abbreviations, which are all included between 2 and 5 characters according to this Wikipedia article: https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations
1 parent 1332f9d commit da332bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/log.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ syn match logDate '\(\(Mon\|Tue\|Wed\|Thu\|Fri\|Sat\|Sun\) \)\?\(Jan\|Feb\|Mar\|
5050
syn match logTime '\d\{2}:\d\{2}:\d\{2}\(\.\d\{2,6}\)\?\(\s\?[-+]\d\{2,4}\|Z\)\?\>' nextgroup=logTimeZone,logSysColumns skipwhite
5151

5252
" Follows logTime, matches UTC or PDT 2019 or 2019 EDT
53-
syn match logTimeZone '\(UTC\|PDT\|EDT\|CDT\|GMT\|EST\|KST\)\( \d\{4}\)\?' contained
54-
syn match logTimeZone '\d\{4} \(UTC\|PDT\|EDT\|CDT\|GMT\|EST\|KST\)' contained
53+
syn match logTimeZone '[A-Z]\{2,5}/>\( \d\{4}\)\?' contained
54+
syn match logTimeZone '\d\{4} [A-Z]\{2,5}/>' contained
5555

5656

5757
" Entities

0 commit comments

Comments
 (0)