pull/6/head
宇天 2018-12-11 14:24:03 +08:00
parent 08e9f27329
commit 29d4ba553e
7 changed files with 32 additions and 8 deletions

View File

@ -1,5 +1,11 @@
# 更新日志 # 更新日志
## [1.2.3] 2018-12-11
- 优化js/ts的语法高亮
- 优化md的高亮
## [1.2.2] 2018-12-07 ## [1.2.2] 2018-12-07
- 修复php的`$this`高亮 - 修复php的`$this`高亮
- 区分内置函数与自定义函数的高亮颜色 - 区分内置函数与自定义函数的高亮颜色

View File

@ -17,7 +17,8 @@ const php = require('./src/php')
const html = require('./src/html') const html = require('./src/html')
const plaintext = require('./src/plaintext') const plaintext = require('./src/plaintext')
const json = require('./src/json') const json = require('./src/json')
const tokenColors = [].concat(base, html, es, php, plaintext, json) const dart = require('./src/dart')
const tokenColors = [].concat(base, html, es, php, plaintext, dart, json)
for (let it of tokenColors) { for (let it of tokenColors) {
if (Array.isArray(it.scope)) { if (Array.isArray(it.scope)) {

View File

@ -3,7 +3,7 @@
"displayName": "米白色主题", "displayName": "米白色主题",
"description": "🔥 米白色主题", "description": "🔥 米白色主题",
"icon": "logo.png", "icon": "logo.png",
"version": "1.2.2", "version": "1.2.3",
"publisher": "yutent", "publisher": "yutent",
"author": "Yutent [@yutent]", "author": "Yutent [@yutent]",
"engines": { "engines": {

12
src/dart.js Normal file
View File

@ -0,0 +1,12 @@
const vars = require('./var')
module.exports = [
// {
// name: 'dart type',
// scope: ['storage.type.primitive.dart'],
// settings: {
// foreground: '#e5c07b',
// fontStyle: 'bold italic'
// }
// }
]

View File

@ -8,7 +8,10 @@ module.exports = [
'support.type.object.module.js', 'support.type.object.module.js',
'support.type.object.dom.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',
'meta.function-call.static.without-arguments.js variable.other.class.js',
'meta.property.class.js variable.other.class.js',
'variable.other.object.ts'
], ],
settings: { settings: {
fontStyle: 'bold italic', fontStyle: 'bold italic',
@ -61,7 +64,7 @@ module.exports = [
], ],
settings: { settings: {
fontStyle: 'italic bold', fontStyle: 'italic bold',
foreground: vars.blue2 foreground: vars.common
} }
}, },
@ -78,7 +81,7 @@ module.exports = [
], ],
settings: { settings: {
foreground: '#e5c07b', foreground: '#e5c07b',
fontStyle: 'bold' fontStyle: 'bold italic'
} }
}, },

View File

@ -12,6 +12,7 @@ module.exports = [
name: 'inline code', name: 'inline code',
scope: ['markup.inline'], scope: ['markup.inline'],
settings: { settings: {
fontStyle: '',
foreground: '#ff5370' foreground: '#ff5370'
} }
}, },

View File

@ -474,7 +474,7 @@
}, },
{ {
"name": "Class extends, build-in, dom", "name": "Class extends, build-in, dom",
"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", "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, meta.function-call.static.without-arguments.js variable.other.class.js, meta.property.class.js variable.other.class.js, variable.other.object.ts",
"settings": { "settings": {
"fontStyle": "bold italic", "fontStyle": "bold italic",
"foreground": "#ffb62c" "foreground": "#ffb62c"
@ -508,7 +508,7 @@
"scope": "meta.group.braces.round variable.other.constant, support.type.object.module keyword.operator.accessor, support.constant.property.math.ts", "scope": "meta.group.braces.round variable.other.constant, support.type.object.module keyword.operator.accessor, support.constant.property.math.ts",
"settings": { "settings": {
"fontStyle": "italic bold", "fontStyle": "italic bold",
"foreground": "#0096ff" "foreground": "#90a4ae"
} }
}, },
{ {
@ -516,7 +516,7 @@
"scope": "support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx, entity.name.type.module, entity.name.type", "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": { "settings": {
"foreground": "#e5c07b", "foreground": "#e5c07b",
"fontStyle": "bold" "fontStyle": "bold italic"
} }
}, },
{ {
@ -659,6 +659,7 @@
"name": "inline code", "name": "inline code",
"scope": "markup.inline", "scope": "markup.inline",
"settings": { "settings": {
"fontStyle": "",
"foreground": "#ff5370" "foreground": "#ff5370"
} }
}, },