提交 4dd9f57a 编写于 作者: M Martin Aeschlimann

[log] update grammar

上级 3e9d1694
......@@ -4,7 +4,7 @@
"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",
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/8196aa2cc8dd9b1eda431203857e5317866facec",
"scopeName": "text.log",
"fileTypes": [
"log"
......@@ -52,9 +52,13 @@
"name": "comment log.date"
},
{
"match": "\\d{2}:\\d{2}(:\\d{2}([.,]\\d{3,6})?)?(Z| ?[+-]\\d{2}:\\d{2})?\\b",
"match": "\\d{2}:\\d{2}(:\\d{2}([.,]\\d{3,})?)?(Z| ?[+-]\\d{2}:\\d{2})?\\b",
"name": "comment log.date"
},
{
"match": "\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\b",
"name": "constant.language"
},
{
"match": "[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}",
"name": "constant.language log.constant"
......@@ -73,7 +77,7 @@
},
{
"match": "\\b([a-zA-Z.]*Exception)\\b",
"name": "string.regexp, emphasis log.type"
"name": "string.regexp, emphasis log.exceptiontype"
},
{
"begin": "^[\\t ]*at",
......@@ -84,6 +88,10 @@
"match": "\\b(http|https|ftp|file)://\\S+\\b/?",
"name": "constant.language log.constant"
},
{
"match": "(([A-Za-z]\\:(\\\\|/))|(\\.(\\\\|/))|(\\.\\.(\\\\|/)){1,}|(\\\\\\\\|//)[\\w -]+(\\\\|/))([\\w -]+(\\\\|/))*",
"name": "constant.language log.constant"
},
{
"match": "\\b([\\w]+\\.)+(\\w)+\\b",
"name": "constant.language log.constant"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册