Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/log/syntaxes/log.tmLanguage.json
3292 views
1
{
2
"information_for_contributors": [
3
"This file has been converted from https://github.com/emilast/vscode-logfile-highlighter/blob/master/syntaxes/log.tmLanguage",
4
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
"Once accepted there, we are happy to receive an update request."
6
],
7
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/396c8552ff99d0e07142fdd940d75dae212dd28c",
8
"name": "Log file",
9
"scopeName": "text.log",
10
"patterns": [
11
{
12
"match": "\\b([Tt]race|TRACE)\\b:?",
13
"name": "comment log.verbose"
14
},
15
{
16
"match": "(?i)\\[(verbose|verb|vrb|vb|v)\\]",
17
"name": "comment log.verbose"
18
},
19
{
20
"match": "(?<=^[\\s\\d\\p]*)\\bV\\b",
21
"name": "comment log.verbose"
22
},
23
{
24
"match": "\\b(DEBUG|Debug)\\b|(?i)\\b(debug)\\:",
25
"name": "markup.changed log.debug"
26
},
27
{
28
"match": "(?i)\\[(debug|dbug|dbg|de|d)\\]",
29
"name": "markup.changed log.debug"
30
},
31
{
32
"match": "(?<=^[\\s\\d\\p]*)\\bD\\b",
33
"name": "markup.changed log.debug"
34
},
35
{
36
"match": "\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\b|(?i)\\b(info|information)\\:",
37
"name": "markup.inserted log.info"
38
},
39
{
40
"match": "(?i)\\[(information|info|inf|in|i)\\]",
41
"name": "markup.inserted log.info"
42
},
43
{
44
"match": "(?<=^[\\s\\d\\p]*)\\bI\\b",
45
"name": "markup.inserted log.info"
46
},
47
{
48
"match": "\\b(WARNING|WARN|Warn|WW)\\b|(?i)\\b(warning)\\:",
49
"name": "markup.deleted log.warning"
50
},
51
{
52
"match": "(?i)\\[(warning|warn|wrn|wn|w)\\]",
53
"name": "markup.deleted log.warning"
54
},
55
{
56
"match": "(?<=^[\\s\\d\\p]*)\\bW\\b",
57
"name": "markup.deleted log.warning"
58
},
59
{
60
"match": "\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\b|(?i)\\b(error)\\:",
61
"name": "string.regexp, strong log.error"
62
},
63
{
64
"match": "(?i)\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\]",
65
"name": "string.regexp, strong log.error"
66
},
67
{
68
"match": "(?<=^[\\s\\d\\p]*)\\bE\\b",
69
"name": "string.regexp, strong log.error"
70
},
71
{
72
"match": "\\b\\d{4}-\\d{2}-\\d{2}(?=T|\\b)",
73
"name": "comment log.date"
74
},
75
{
76
"match": "(?<=(^|\\s))\\d{2}[^\\w\\s]\\d{2}[^\\w\\s]\\d{4}\\b",
77
"name": "comment log.date"
78
},
79
{
80
"match": "T?\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}:\\d{2})?\\b",
81
"name": "comment log.date"
82
},
83
{
84
"match": "T\\d{2}\\d{2}(\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}\\d{2})?\\b",
85
"name": "comment log.date"
86
},
87
{
88
"match": "\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\b",
89
"name": "constant.language"
90
},
91
{
92
"match": "\\b[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}\\b",
93
"name": "constant.language log.constant"
94
},
95
{
96
"match": "\\b([0-9a-fA-F]{2,}[:-])+[0-9a-fA-F]{2,}+\\b",
97
"name": "constant.language log.constant"
98
},
99
{
100
"match": "\\b([0-9]+|true|false|null)\\b",
101
"name": "constant.language log.constant"
102
},
103
{
104
"match": "\\b(0x[a-fA-F0-9]+)\\b",
105
"name": "constant.language log.constant"
106
},
107
{
108
"match": "\"[^\"]*\"",
109
"name": "string log.string"
110
},
111
{
112
"match": "(?<![\\w])'[^']*'",
113
"name": "string log.string"
114
},
115
{
116
"match": "\\b([a-zA-Z.]*Exception)\\b",
117
"name": "string.regexp, emphasis log.exceptiontype"
118
},
119
{
120
"begin": "^[\\t ]*at[\\t ]",
121
"end": "$",
122
"name": "string.key, emphasis log.exception"
123
},
124
{
125
"match": "\\b[a-z]+://\\S+\\b/?",
126
"name": "constant.language log.constant"
127
},
128
{
129
"match": "(?<![\\w/\\\\])([\\w-]+\\.)+([\\w-])+(?![\\w/\\\\])",
130
"name": "constant.language log.constant"
131
}
132
]
133
}
134