fix selectorPattern
parent
cec6a7df5b
commit
013132d657
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue