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
|
|
|
{
|
2018-12-07 10:34:23 +08:00
|
|
|
name: 'Class extends, build-in, dom',
|
2018-12-06 16:27:50 +08:00
|
|
|
scope: [
|
|
|
|
'support.type.object.console.js',
|
|
|
|
'support.type.object.module.js',
|
2018-12-07 10:34:23 +08:00
|
|
|
'support.type.object.dom.js',
|
2018-12-06 16:27:50 +08:00
|
|
|
'support.constant.math',
|
2018-12-11 14:24:03 +08:00
|
|
|
'meta.class.extends.js variable.other.readwrite.js',
|
|
|
|
'meta.function-call.static.without-arguments.js variable.other.class.js',
|
|
|
|
'meta.property.class.js variable.other.class.js',
|
|
|
|
'variable.other.object.ts'
|
2018-12-06 16:27:50 +08:00
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'bold italic',
|
|
|
|
foreground: '#ffb62c'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'new Class',
|
|
|
|
scope: ['new.expr entity.name.type'],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'bold',
|
|
|
|
foreground: '#ffb62c'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-12-07 10:34:23 +08:00
|
|
|
{
|
|
|
|
name: 'build-in function',
|
|
|
|
scope: [
|
|
|
|
'source.js support.function.node.js',
|
|
|
|
'meta.group.braces.curly.js support.function',
|
|
|
|
'meta.function-call.ts support.function.ts',
|
|
|
|
'support.function.builtin.js'
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
fontStyle: 'italic',
|
|
|
|
foreground: vars.magenta1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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',
|
2018-12-11 14:24:03 +08:00
|
|
|
foreground: vars.common
|
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-11 14:24:03 +08:00
|
|
|
fontStyle: 'bold italic'
|
2018-12-01 21:17:55 +08:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
]
|