支持html模板中mvvm指令高亮

pull/6/head 1.3.3
宇天 2018-12-16 16:45:28 +08:00
parent db34633c36
commit 1aa0fc4cea
4 changed files with 38 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# 更新日志 # 更新日志
## [1.3.3] 2018-12-16
- 支持html模板中mvvm指令高亮
## [1.3.2] 2018-12-12 ## [1.3.2] 2018-12-12
- 移除ts的异常语法高亮 - 移除ts的异常语法高亮

View File

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

View File

@ -1,3 +1,5 @@
const vars = require('./var')
module.exports = [ module.exports = [
{ {
name: 'HTML Attributes', name: 'HTML Attributes',
@ -25,5 +27,23 @@ module.exports = [
settings: { settings: {
foreground: '#6182B8' foreground: '#6182B8'
} }
},
{
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
}
} }
] ]

View File

@ -482,6 +482,20 @@
"foreground": "#6182B8" "foreground": "#6182B8"
} }
}, },
{
"name": "directive",
"scope": "text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html",
"settings": {
"foreground": "#f39c12"
}
},
{
"name": "directive's value",
"scope": "text.html.derivative meta.attribute.unrecognized string.quoted.double.html",
"settings": {
"foreground": "#be7ee7"
}
},
{ {
"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, meta.function-call.static.without-arguments.js variable.other.class.js, meta.function-call.static.with-arguments.js variable.other.class.js, meta.property.class.js variable.other.class.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.function-call.static.with-arguments.js variable.other.class.js, meta.property.class.js variable.other.class.js",