Update log grammar

Fixes #102598
This commit is contained in:
Alex Ross 2020-07-16 10:15:58 +02:00
parent d11d7bf1ef
commit ad720d6a63
2 changed files with 12 additions and 8 deletions

View file

@ -6,11 +6,11 @@
"git": { "git": {
"name": "vscode-logfile-highlighter", "name": "vscode-logfile-highlighter",
"repositoryUrl": "https://github.com/emilast/vscode-logfile-highlighter", "repositoryUrl": "https://github.com/emilast/vscode-logfile-highlighter",
"commitHash": "fbe9797ea7889ee55def6da8dee86ba625ca9759" "commitHash": "5dcab1c304110b605041824cde3810c6ef305477"
} }
}, },
"license": "MIT", "license": "MIT",
"version": "2.6.0" "version": "2.8.0"
} }
], ],
"version": 1 "version": 1

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/fbe9797ea7889ee55def6da8dee86ba625ca9759", "version": "https://github.com/emilast/vscode-logfile-highlighter/commit/5dcab1c304110b605041824cde3810c6ef305477",
"name": "Log file", "name": "Log file",
"scopeName": "text.log", "scopeName": "text.log",
"patterns": [ "patterns": [
@ -17,7 +17,7 @@
"name": "comment log.verbose" "name": "comment log.verbose"
}, },
{ {
"match": "\\bV/", "match": "(?<=^[\\s\\d\\p]*)\\bV\\b",
"name": "comment log.verbose" "name": "comment log.verbose"
}, },
{ {
@ -29,7 +29,7 @@
"name": "markup.changed log.debug" "name": "markup.changed log.debug"
}, },
{ {
"match": "\\bD/", "match": "(?<=^[\\s\\d\\p]*)\\bD\\b",
"name": "markup.changed log.debug" "name": "markup.changed log.debug"
}, },
{ {
@ -41,7 +41,7 @@
"name": "markup.inserted log.info" "name": "markup.inserted log.info"
}, },
{ {
"match": "\\bI/", "match": "(?<=^[\\s\\d\\p]*)\\bI\\b",
"name": "markup.inserted log.info" "name": "markup.inserted log.info"
}, },
{ {
@ -53,7 +53,7 @@
"name": "markup.deleted log.warning" "name": "markup.deleted log.warning"
}, },
{ {
"match": "\\bW/", "match": "(?<=^[\\s\\d\\p]*)\\bW\\b",
"name": "markup.deleted log.warning" "name": "markup.deleted log.warning"
}, },
{ {
@ -65,7 +65,7 @@
"name": "string.regexp, strong log.error" "name": "string.regexp, strong log.error"
}, },
{ {
"match": "\\bE/", "match": "(?<=^[\\s\\d\\p]*)\\bE\\b",
"name": "string.regexp, strong log.error" "name": "string.regexp, strong log.error"
}, },
{ {
@ -88,6 +88,10 @@
"match": "[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}", "match": "[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}",
"name": "constant.language log.constant" "name": "constant.language log.constant"
}, },
{
"match": "([0-9a-fA-F]+[:-])+[0-9a-fA-F]+",
"name": "constant.language log.constant"
},
{ {
"match": "\\b([0-9]+|true|false|null)\\b", "match": "\\b([0-9]+|true|false|null)\\b",
"name": "constant.language log.constant" "name": "constant.language log.constant"