2018-12-06 16:27:50 +08:00
|
|
|
const vars = require('./var')
|
|
|
|
|
2018-12-01 21:17:55 +08:00
|
|
|
module.exports = [
|
2018-12-06 16:27:50 +08:00
|
|
|
{
|
|
|
|
name: 'Class extends, console',
|
|
|
|
scope: [
|
|
|
|
'support.type.object.console.js',
|
|
|
|
'support.type.object.module.js',
|
|
|
|
'support.constant.math',
|
|
|
|
'meta.class.extends.js > variable.other.readwrite.js'
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'bold italic',
|
|
|
|
foreground: '#ffb62c'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'new Class',
|
|
|
|
scope: ['new.expr entity.name.type'],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'bold',
|
|
|
|
foreground: '#ffb62c'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-12-01 21:17:55 +08:00
|
|
|
{
|
|
|
|
name: 'js/ts italic',
|
|
|
|
scope: [
|
|
|
|
'entity.other.attribute-name.js',
|
|
|
|
'entity.other.attribute-name.ts',
|
|
|
|
'entity.other.attribute-name.jsx',
|
|
|
|
'entity.other.attribute-name.tsx'
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'italic'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2018-12-06 16:27:50 +08:00
|
|
|
name: 'Build-in props',
|
|
|
|
scope: [
|
|
|
|
'meta.group.braces.round variable.other.constant',
|
|
|
|
'support.type.object.module keyword.operator.accessor',
|
|
|
|
'support.constant.property.math.ts'
|
|
|
|
],
|
2018-12-01 21:17:55 +08:00
|
|
|
settings: {
|
2018-12-06 16:27:50 +08:00
|
|
|
fontStyle: 'italic bold',
|
|
|
|
foreground: vars.blue2
|
2018-12-01 21:17:55 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// ts 类型
|
|
|
|
{
|
|
|
|
name: 'ts primitive/builtin types',
|
|
|
|
scope: [
|
|
|
|
'support.type.primitive.ts',
|
|
|
|
'support.type.builtin.ts',
|
|
|
|
'support.type.primitive.tsx',
|
|
|
|
'support.type.builtin.tsx',
|
|
|
|
'entity.name.type.module',
|
|
|
|
'entity.name.type'
|
|
|
|
],
|
|
|
|
settings: {
|
2018-12-06 16:27:50 +08:00
|
|
|
foreground: '#e5c07b',
|
2018-12-01 21:17:55 +08:00
|
|
|
fontStyle: 'bold'
|
|
|
|
}
|
2018-12-06 17:00:28 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'object keys',
|
|
|
|
scope: [
|
|
|
|
'constant.other.object.key.js string.unquoted.label.js',
|
|
|
|
'constant.other.object.key.js string.quoted.label.js'
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'italic bold',
|
|
|
|
foreground: vars.common
|
|
|
|
}
|
2018-12-01 21:17:55 +08:00
|
|
|
}
|
|
|
|
]
|