fix selectorPattern

pull/87117/head
Martin Aeschlimann 2019-12-11 17:08:56 +01:00
parent cec6a7df5b
commit 013132d657
2 changed files with 30 additions and 1 deletions

View File

@ -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"
}
}
]
}
}

View File

@ -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();