提交 013132d6 编写于 作者: M Martin Aeschlimann

fix selectorPattern

上级 cec6a7df
......@@ -24,5 +24,34 @@
"mocha-junit-reporter": "^1.17.0",
"mocha-multi-reporters": "^1.1.7",
"vscode": "1.1.5"
},
"contributes": {
"tokenTypes": [
{
"id": "testToken",
"description": "A test token"
}
],
"tokenModifiers": [
{
"id": "testModifier",
"description": "A test modifier"
}
],
"tokenStyleDefaults": [
{
"selector": "testToken.testModifier",
"light": {
"fontStyle": "bold"
},
"dark": {
"fontStyle": "bold"
},
"highContrast": {
"fontStyle": "bold"
}
}
]
}
}
......@@ -35,7 +35,7 @@ interface ITokenStyleDefaultExtensionPoint {
};
}
const selectorPattern = '^[-_\\w]+|\\*(\\.[-_\\w+]+)*$';
const selectorPattern = '^([-_\\w]+|\\*)(\\.[-_\\w+]+)*$';
const colorPattern = '^#([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$';
const tokenClassificationRegistry: ITokenClassificationRegistry = getTokenClassificationRegistry();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册