one-plain/src/html.js

89 lines
2.1 KiB
JavaScript
Raw Normal View History

2018-12-16 16:45:28 +08:00
const vars = require('./var')
2018-12-01 21:17:55 +08:00
module.exports = [
{
name: 'HTML Attributes',
scope: [
'text.html.basic entity.other.attribute-name.html',
'text.html.basic entity.other.attribute-name',
'text.xhtml.basic entity.other.attribute-name.xhtml',
'text.xhtml.basic entity.other.attribute-name'
],
settings: {
fontStyle: 'italic',
2018-12-17 00:19:41 +08:00
foreground: vars.yellow1
2018-12-01 21:17:55 +08:00
}
},
{
2018-12-17 00:19:41 +08:00
name: 'CSS Class & ID',
scope: [
'entity.other.attribute-name.class',
'entity.other.attribute-name.id.css'
],
2018-12-01 21:17:55 +08:00
settings: {
2018-12-17 00:19:41 +08:00
foreground: vars.yellow1
2018-12-01 21:17:55 +08:00
}
},
{
2018-12-17 00:19:41 +08:00
name: 'scss variable',
scope: [
'meta.property-value.scss variable.scss',
'meta.at-rule.mixin.scss variable.scss',
'meta.definition.variable.scss variable.scss'
],
settings: {
foreground: vars.red1 + 'cb'
}
},
{
name: 'scss color value',
scope: ['constant.other.color.rgb-value.hex.css'],
settings: {
fontStyle: 'underline',
foreground: vars.magenta1
}
},
{
name: 'CSS url',
scope: [
'meta.property-value.css variable.parameter.url.css',
'meta.property-value.scss variable.parameter.url.scss',
'meta.property-value.scss keyword.operator.css',
'meta.property-value.scss string.quoted.single.scss'
],
2018-12-01 21:17:55 +08:00
settings: {
2018-12-17 00:19:41 +08:00
foreground: '#53c659'
2018-12-01 21:17:55 +08:00
}
2018-12-16 16:45:28 +08:00
},
{
name: 'directive',
scope: [
'text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html'
],
settings: {
foreground: vars.yellow1
}
},
{
name: "directive's value",
scope: [
'text.html.derivative meta.attribute.unrecognized string.quoted.double.html'
],
settings: {
foreground: vars.magenta1
}
2018-12-16 17:00:51 +08:00
},
{
name: 'hexadecimal & character',
scope: [
'constant.character.entity.named',
'constant.character.entity.named punctuation.definition.entity.html',
'constant.character.entity.numeric.hexadecimal.html',
'constant.character.entity.numeric.hexadecimal.html punctuation.definition.entity.html'
],
settings: {
foreground: vars.blue1
}
2018-12-01 21:17:55 +08:00
}
]