mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Fix #40642
This commit is contained in:
93
extensions/log/syntaxes/log.tmLanguage.json
Normal file
93
extensions/log/syntaxes/log.tmLanguage.json
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/emilast/vscode-logfile-highlighter/blob/master/syntaxes/log.tmLanguage",
|
||||
"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."
|
||||
],
|
||||
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/3f3ea0a69165bc95f62bb487fda73e925ae229a6",
|
||||
"scopeName": "text.log",
|
||||
"fileTypes": [
|
||||
"log"
|
||||
],
|
||||
"name": "Log file",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(DEBUG)\\b|(?i)\\b(debug)\\:",
|
||||
"name": "markup.changed log.debug"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\[(debug|dbug|dbg|de|d)\\]",
|
||||
"name": "markup.changed log.debug"
|
||||
},
|
||||
{
|
||||
"match": "\\b(HINT|INFO|INFORMATION)\\b|(?i)\\b(info|information)\\:",
|
||||
"name": "markup.inserted log.info"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\[(information|info|inf|in|i)\\]",
|
||||
"name": "markup.inserted log.info"
|
||||
},
|
||||
{
|
||||
"match": "\\b(WARNING|WARN)\\b|(?i)\\b(warning)\\:",
|
||||
"name": "markup.deleted log.warning"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\[(warning|warn|wrn|wn|w)\\]",
|
||||
"name": "markup.deleted log.warning"
|
||||
},
|
||||
{
|
||||
"match": "\\b(ERROR|FAILURE|FAIL)\\b|(?i)\\b(error)\\:",
|
||||
"name": "string.regexp, strong log.error"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\]",
|
||||
"name": "string.regexp, strong log.error"
|
||||
},
|
||||
{
|
||||
"match": "\\b\\d{4}-\\d{2}-\\d{2}(T|\\b)",
|
||||
"name": "comment log.date"
|
||||
},
|
||||
{
|
||||
"match": "\\b\\d{2}[^\\w\\s]\\d{2}[^\\w\\s]\\d{4}\\b",
|
||||
"name": "comment log.date"
|
||||
},
|
||||
{
|
||||
"match": "\\d{2}:\\d{2}(:\\d{2}([.,]\\d{3,6})?)?(Z| ?[+-]\\d{2}:\\d{2})?\\b",
|
||||
"name": "comment log.date"
|
||||
},
|
||||
{
|
||||
"match": "[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}",
|
||||
"name": "constant.language log.constant"
|
||||
},
|
||||
{
|
||||
"match": "\\b([0-9]+|true|false|null)\\b",
|
||||
"name": "constant.language log.constant"
|
||||
},
|
||||
{
|
||||
"match": "\"[^\"]*\"",
|
||||
"name": "string log.string"
|
||||
},
|
||||
{
|
||||
"match": "'[^']*'",
|
||||
"name": "string log.string"
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z.]*Exception)\\b",
|
||||
"name": "string.regexp, emphasis log.type"
|
||||
},
|
||||
{
|
||||
"begin": "^[\\t ]*at",
|
||||
"end": "$",
|
||||
"name": "string.key, emphasis log.exception"
|
||||
},
|
||||
{
|
||||
"match": "\\b(http|https|ftp|file)://\\S+\\b/?",
|
||||
"name": "constant.language log.constant"
|
||||
},
|
||||
{
|
||||
"match": "\\b([\\w]+\\.)+(\\w)+\\b",
|
||||
"name": "constant.language log.constant"
|
||||
}
|
||||
],
|
||||
"uuid": "E81BB6AB-CAC7-4C27-9A79-4137A4693EBD"
|
||||
}
|
||||
Reference in New Issue
Block a user