Skip to content

Commit ad720d6

Browse files
committed
Update log grammar
Fixes microsoft#102598
1 parent d11d7bf commit ad720d6

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

extensions/log/cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"git": {
77
"name": "vscode-logfile-highlighter",
88
"repositoryUrl": "https://github.com/emilast/vscode-logfile-highlighter",
9-
"commitHash": "fbe9797ea7889ee55def6da8dee86ba625ca9759"
9+
"commitHash": "5dcab1c304110b605041824cde3810c6ef305477"
1010
}
1111
},
1212
"license": "MIT",
13-
"version": "2.6.0"
13+
"version": "2.8.0"
1414
}
1515
],
1616
"version": 1

extensions/log/syntaxes/log.tmLanguage.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/fbe9797ea7889ee55def6da8dee86ba625ca9759",
7+
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/5dcab1c304110b605041824cde3810c6ef305477",
88
"name": "Log file",
99
"scopeName": "text.log",
1010
"patterns": [
@@ -17,7 +17,7 @@
1717
"name": "comment log.verbose"
1818
},
1919
{
20-
"match": "\\bV/",
20+
"match": "(?<=^[\\s\\d\\p]*)\\bV\\b",
2121
"name": "comment log.verbose"
2222
},
2323
{
@@ -29,7 +29,7 @@
2929
"name": "markup.changed log.debug"
3030
},
3131
{
32-
"match": "\\bD/",
32+
"match": "(?<=^[\\s\\d\\p]*)\\bD\\b",
3333
"name": "markup.changed log.debug"
3434
},
3535
{
@@ -41,7 +41,7 @@
4141
"name": "markup.inserted log.info"
4242
},
4343
{
44-
"match": "\\bI/",
44+
"match": "(?<=^[\\s\\d\\p]*)\\bI\\b",
4545
"name": "markup.inserted log.info"
4646
},
4747
{
@@ -53,7 +53,7 @@
5353
"name": "markup.deleted log.warning"
5454
},
5555
{
56-
"match": "\\bW/",
56+
"match": "(?<=^[\\s\\d\\p]*)\\bW\\b",
5757
"name": "markup.deleted log.warning"
5858
},
5959
{
@@ -65,7 +65,7 @@
6565
"name": "string.regexp, strong log.error"
6666
},
6767
{
68-
"match": "\\bE/",
68+
"match": "(?<=^[\\s\\d\\p]*)\\bE\\b",
6969
"name": "string.regexp, strong log.error"
7070
},
7171
{
@@ -88,6 +88,10 @@
8888
"match": "[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}",
8989
"name": "constant.language log.constant"
9090
},
91+
{
92+
"match": "([0-9a-fA-F]+[:-])+[0-9a-fA-F]+",
93+
"name": "constant.language log.constant"
94+
},
9195
{
9296
"match": "\\b([0-9]+|true|false|null)\\b",
9397
"name": "constant.language log.constant"

0 commit comments

Comments
 (0)