one-plain/src/es.js

80 lines
1.6 KiB
JavaScript
Raw Normal View History

2018-12-06 16:27:50 +08:00
const vars = require('./var')
2018-12-01 21:17:55 +08:00
module.exports = [
{
name: 'ES7 Bind Operator',
scope: ['source.js constant.other.object.key.js string.unquoted.label.js'],
settings: {
fontStyle: 'italic',
foreground: '#E53935'
}
},
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',
// 'support.type.object.module',
'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'
}
}
]