annotate runtime/syntax/messages.vim @ 5124:6f24376028af v7.3.1305

updated for version 7.3.1305 Problem: Warnings from 64 bit compiler. Solution: Add type casts.
author Bram Moolenaar <bram@vim.org>
date Thu, 04 Jul 2013 21:19:33 +0200
parents 0b796e045c42
children 41768bcebc9b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
1 " Vim syntax file
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Language: /var/log/messages file
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
3 " Maintainer: Yakov Lerner <iler.ml@gmail.com>
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
4 " Latest Revision: 2008-06-29
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
5 " Changes: 2008-06-29 support for RFC3339 tuimestamps James Vega
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
6
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
8 finish
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
9 endif
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
10
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
11 let s:cpo_save = &cpo
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
12 set cpo&vim
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
13
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
14 syn match messagesBegin display '^' nextgroup=messagesDate,messagesDateRFC3339
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
15
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
16 syn match messagesDate contained display '\a\a\a [ 0-9]\d *'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
17 \ nextgroup=messagesHour
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
18
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
19 syn match messagesHour contained display '\d\d:\d\d:\d\d\s*'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
20 \ nextgroup=messagesHost
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
21
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
22 syn match messagesDateRFC3339 contained display '\d\{4}-\d\d-\d\d'
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
23 \ nextgroup=messagesRFC3339T
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
24
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
25 syn match messagesRFC3339T contained display '\cT'
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
26 \ nextgroup=messagesHourRFC3339
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
27
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
28 syn match messagesHourRFC3339 contained display '\c\d\d:\d\d:\d\d\(\.\d\+\)\=\([+-]\d\d:\d\d\|Z\)'
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
29 \ nextgroup=messagesHost
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
30
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
31 syn match messagesHost contained display '\S*\s*'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
32 \ nextgroup=messagesLabel
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
33
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
34 syn match messagesLabel contained display '\s*[^:]*:\s*'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
35 \ nextgroup=messagesText contains=messagesKernel,messagesPID
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
36
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
37 syn match messagesPID contained display '\[\zs\d\+\ze\]'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
38
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
39 syn match messagesKernel contained display 'kernel:'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
40
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
41
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
42 syn match messagesIP '\d\+\.\d\+\.\d\+\.\d\+'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
43
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
44 syn match messagesURL '\w\+://\S\+'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
45
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
46 syn match messagesText contained display '.*'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
47 \ contains=messagesNumber,messagesIP,messagesURL,messagesError
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
48
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
49 syn match messagesNumber contained '0x[0-9a-fA-F]*\|\[<[0-9a-f]\+>\]\|\<\d[0-9a-fA-F]*'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
50
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
51 syn match messagesError contained '\c.*\<\(FATAL\|ERROR\|ERRORS\|FAILED\|FAILURE\).*'
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
52
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
53
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
54 hi def link messagesDate Constant
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
55 hi def link messagesHour Type
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
56 hi def link messagesDateRFC3339 Constant
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
57 hi def link messagesHourRFC3339 Type
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
58 hi def link messagesRFC3339T Normal
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
59 hi def link messagesHost Identifier
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
60 hi def link messagesLabel Operator
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
61 hi def link messagesPID Constant
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
62 hi def link messagesKernel Special
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
63 hi def link messagesError ErrorMsg
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
64 hi def link messagesIP Constant
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
65 hi def link messagesURL Underlined
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
66 hi def link messagesText Normal
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
67 hi def link messagesNumber Number
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
68
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
69 let b:current_syntax = "messages"
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
70
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
71 let &cpo = s:cpo_save
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
72 unlet s:cpo_save