parent
54a95509d4
commit
08e9f27329
|
@ -1,5 +1,9 @@
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
## [1.2.2] 2018-12-07
|
||||||
|
- 修复php的`$this`高亮
|
||||||
|
- 区分内置函数与自定义函数的高亮颜色
|
||||||
|
- 优化html中的js高亮
|
||||||
|
|
||||||
## [1.2.1] 2018-12-06
|
## [1.2.1] 2018-12-06
|
||||||
- 修复js对象的key的高亮
|
- 修复js对象的key的高亮
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"displayName": "米白色主题",
|
"displayName": "米白色主题",
|
||||||
"description": "🔥 米白色主题",
|
"description": "🔥 米白色主题",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"publisher": "yutent",
|
"publisher": "yutent",
|
||||||
"author": "Yutent [@yutent]",
|
"author": "Yutent [@yutent]",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
17
src/es.js
17
src/es.js
|
@ -2,10 +2,11 @@ const vars = require('./var')
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{
|
{
|
||||||
name: 'Class extends, console',
|
name: 'Class extends, build-in, dom',
|
||||||
scope: [
|
scope: [
|
||||||
'support.type.object.console.js',
|
'support.type.object.console.js',
|
||||||
'support.type.object.module.js',
|
'support.type.object.module.js',
|
||||||
|
'support.type.object.dom.js',
|
||||||
'support.constant.math',
|
'support.constant.math',
|
||||||
'meta.class.extends.js > variable.other.readwrite.js'
|
'meta.class.extends.js > variable.other.readwrite.js'
|
||||||
],
|
],
|
||||||
|
@ -24,6 +25,20 @@ module.exports = [
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
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
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'js/ts italic',
|
name: 'js/ts italic',
|
||||||
scope: [
|
scope: [
|
||||||
|
|
26
src/php.js
26
src/php.js
|
@ -22,15 +22,33 @@ module.exports = [
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 变量 以及 $this
|
// 变量
|
||||||
|
{
|
||||||
|
name: 'php dollar sign',
|
||||||
|
scope: ['punctuation.definition.variable.php'],
|
||||||
|
settings: {
|
||||||
|
foreground: vars.common2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// $this
|
||||||
{
|
{
|
||||||
name: 'php dollar sign',
|
name: 'php dollar sign',
|
||||||
scope: [
|
scope: [
|
||||||
'punctuation.definition.variable.php',
|
'variable.language.this.php',
|
||||||
'variable.language.this.php'
|
'variable.language.this.php punctuation.definition.variable.php'
|
||||||
],
|
],
|
||||||
settings: {
|
settings: {
|
||||||
foreground: vars.common2
|
foreground: vars.red1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: 'php build in function',
|
||||||
|
scope: ['meta.function-call.php support.function'],
|
||||||
|
settings: {
|
||||||
|
fontStyle: 'italic',
|
||||||
|
foreground: vars.magenta1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -473,8 +473,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Class extends, console",
|
"name": "Class extends, build-in, dom",
|
||||||
"scope": "support.type.object.console.js, support.type.object.module.js, support.constant.math, meta.class.extends.js > variable.other.readwrite.js",
|
"scope": "support.type.object.console.js, support.type.object.module.js, support.type.object.dom.js, support.constant.math, meta.class.extends.js > variable.other.readwrite.js",
|
||||||
"settings": {
|
"settings": {
|
||||||
"fontStyle": "bold italic",
|
"fontStyle": "bold italic",
|
||||||
"foreground": "#ffb62c"
|
"foreground": "#ffb62c"
|
||||||
|
@ -488,6 +488,14 @@
|
||||||
"foreground": "#ffb62c"
|
"foreground": "#ffb62c"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"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": "#be7ee7"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "js/ts italic",
|
"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",
|
"scope": "entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx",
|
||||||
|
@ -535,11 +543,26 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "php dollar sign",
|
"name": "php dollar sign",
|
||||||
"scope": "punctuation.definition.variable.php, variable.language.this.php",
|
"scope": "punctuation.definition.variable.php",
|
||||||
"settings": {
|
"settings": {
|
||||||
"foreground": "#546e7a"
|
"foreground": "#546e7a"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "php dollar sign",
|
||||||
|
"scope": "variable.language.this.php, variable.language.this.php punctuation.definition.variable.php",
|
||||||
|
"settings": {
|
||||||
|
"foreground": "#ff4628"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "php build in function",
|
||||||
|
"scope": "meta.function-call.php support.function",
|
||||||
|
"settings": {
|
||||||
|
"fontStyle": "italic",
|
||||||
|
"foreground": "#be7ee7"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "php heredoc/nowdoc",
|
"name": "php heredoc/nowdoc",
|
||||||
"scope": "keyword.operator.heredoc.php,keyword.operator.nowdoc.php",
|
"scope": "keyword.operator.heredoc.php,keyword.operator.nowdoc.php",
|
||||||
|
|
Loading…
Reference in New Issue