[SCM] Vim packaging branch, deb/runtime, updated. upstream/7.1.285-55-g1846de6
James Vega
jamessan at debian.org
Sun Apr 20 15:11:37 UTC 2008
The following commit has been merged in the deb/runtime branch:
commit 1846de6171677f00af992cd2e64be4c0c5e04756
Author: James Vega <jamessan at debian.org>
Date: Sun Apr 20 11:10:49 2008 -0400
Support highlighting of RFC3339 timestamps.
Closes #475568
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/runtime/syntax/messages.vim b/runtime/syntax/messages.vim
index 2dbaa5a..f1c05c6 100644
--- a/runtime/syntax/messages.vim
+++ b/runtime/syntax/messages.vim
@@ -10,7 +10,7 @@ endif
let s:cpo_save = &cpo
set cpo&vim
-syn match messagesBegin display '^' nextgroup=messagesDate
+syn match messagesBegin display '^' nextgroup=messagesDate,messagesDateRFC3339
syn match messagesDate contained display '\a\a\a [ 0-9]\d *'
\ nextgroup=messagesHour
@@ -18,6 +18,15 @@ syn match messagesDate contained display '\a\a\a [ 0-9]\d *'
syn match messagesHour contained display '\d\d:\d\d:\d\d\s*'
\ nextgroup=messagesHost
+syn match messagesDateRFC3339 contained display '\d\{4}-\d\d-\d\d'
+ \ nextgroup=messagesRFC3339T
+
+syn match messagesRFC3339T contained display '\cT'
+ \ nextgroup=messagesHourRFC3339
+
+syn match messagesHourRFC3339 contained display '\c\d\d:\d\d:\d\d\(\.\d\+\)\=\([+-]\d\d:\d\d\|Z\)'
+ \ nextgroup=messagesHost
+
syn match messagesHost contained display '\S*\s*'
\ nextgroup=messagesLabel
@@ -43,6 +52,9 @@ syn match messagesError contained '\c.*\<\(FATAL\|ERROR\|ERRORS\|FAILED\
hi def link messagesDate Constant
hi def link messagesHour Type
+hi def link messagesDateRFC3339 Constant
+hi def link messagesHourRFC3339 Type
+hi def link messagesRFC3339T Normal
hi def link messagesHost Identifier
hi def link messagesLabel Operator
hi def link messagesPID Constant
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list