1.6.6
parent
6289d48d99
commit
c6bb320be3
|
@ -1,6 +1,7 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.AppleDouble
|
.AppleDouble
|
||||||
.LSOverride
|
.LSOverride
|
||||||
|
data/
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
# Thumbnails
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
.vscode/**
|
.vscode/
|
||||||
.vscode-test/**
|
.vscode-test/
|
||||||
.gitignore
|
.gitignore
|
||||||
.prettierrc.yaml
|
.prettierrc.yaml
|
||||||
src
|
|
||||||
src/**
|
src/
|
||||||
|
data/
|
||||||
build.js
|
build.js
|
||||||
app.yaml
|
app.yaml
|
||||||
vsc-extension-quickstart.md
|
vsc-extension-quickstart.md
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
## [1.6.6] 2022-03-24
|
||||||
|
- 优化vue自定义组件标签颜色, 指令颜色
|
||||||
|
- html的`link, a, img, script`标签的地址, 改为灰色
|
||||||
|
|
||||||
## [1.6.5] 2022-03-16
|
## [1.6.5] 2022-03-16
|
||||||
- 修复jsx, tsx着色问题
|
- 修复jsx, tsx着色问题
|
||||||
- 支持js`?.`
|
- 支持js`?.`
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
/Volumes/extends/www/project/one-plain/src/es.js:105
|
|
||||||
'string.template.js meta.template.expression.js meta.array.literal.js meta.brace.square.js',
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
SyntaxError: Unexpected string
|
|
||||||
at wrapSafe (internal/modules/cjs/loader.js:915:16)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:963:27)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
at Module.load (internal/modules/cjs/loader.js:863:32)
|
|
||||||
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
|
|
||||||
at Module.require (internal/modules/cjs/loader.js:887:19)
|
|
||||||
at require (internal/modules/cjs/helpers.js:74:18)
|
|
||||||
at Object.<anonymous> (/Volumes/extends/www/project/one-plain/build.js:14:12)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:999:30)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
/Volumes/extends/www/project/one-plain/src/es.js:20
|
|
||||||
'meta.import.ts string.quoted.double.ts'
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
SyntaxError: Unexpected string
|
|
||||||
at wrapSafe (internal/modules/cjs/loader.js:915:16)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:963:27)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
at Module.load (internal/modules/cjs/loader.js:863:32)
|
|
||||||
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
|
|
||||||
at Module.require (internal/modules/cjs/loader.js:887:19)
|
|
||||||
at require (internal/modules/cjs/helpers.js:74:18)
|
|
||||||
at Object.<anonymous> (/Volumes/extends/www/project/one-plain/build.js:14:12)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:999:30)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
/Volumes/extends/www/project/one-plain/src/es.js:20
|
|
||||||
'meta.import.ts string.quoted.double.ts'
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
SyntaxError: Unexpected string
|
|
||||||
at wrapSafe (internal/modules/cjs/loader.js:915:16)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:963:27)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
at Module.load (internal/modules/cjs/loader.js:863:32)
|
|
||||||
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
|
|
||||||
at Module.require (internal/modules/cjs/loader.js:887:19)
|
|
||||||
at require (internal/modules/cjs/helpers.js:74:18)
|
|
||||||
at Object.<anonymous> (/Volumes/extends/www/project/one-plain/build.js:14:12)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:999:30)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
readline.js:228
|
|
||||||
input.on('data', ondata);
|
|
||||||
^
|
|
||||||
|
|
||||||
TypeError: Cannot read property 'on' of undefined
|
|
||||||
at new Interface (readline.js:228:11)
|
|
||||||
at Object.createInterface (readline.js:92:10)
|
|
||||||
at Object.<anonymous> (/Volumes/extends/www/project/one-plain/build.js:37:10)
|
|
||||||
at Module._compile (internal/modules/cjs/loader.js:999:30)
|
|
||||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
|
|
||||||
at Module.load (internal/modules/cjs/loader.js:863:32)
|
|
||||||
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
|
|
||||||
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
|
|
||||||
at internal/main/run_main_module.js:17:47
|
|
|
@ -1,84 +0,0 @@
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
||||||
Build complete...
|
|
|
@ -3,7 +3,7 @@
|
||||||
"displayName": "one plain",
|
"displayName": "one plain",
|
||||||
"description": "🔥 米白色主题",
|
"description": "🔥 米白色主题",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
"version": "1.6.5",
|
"version": "1.6.6",
|
||||||
"publisher": "yutent",
|
"publisher": "yutent",
|
||||||
"author": "Yutent [@yutent]",
|
"author": "Yutent [@yutent]",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -118,6 +118,8 @@ module.exports = [
|
||||||
scope: [
|
scope: [
|
||||||
'meta.object.member meta.array.literal meta.brace.square',
|
'meta.object.member meta.array.literal meta.brace.square',
|
||||||
'meta.object.member meta.arrow meta.brace.round',
|
'meta.object.member meta.arrow meta.brace.round',
|
||||||
|
'text.html.vue-html meta.brace.round',
|
||||||
|
'text.html.vue-html meta.directive.vue',
|
||||||
'string.template meta.template.expression meta.array.literal meta.brace.square',
|
'string.template meta.template.expression meta.array.literal meta.brace.square',
|
||||||
'string.template meta.template.expression meta.brace.round',
|
'string.template meta.template.expression meta.brace.round',
|
||||||
'meta.tag.attributes punctuation.section.embedded.begin',
|
'meta.tag.attributes punctuation.section.embedded.begin',
|
||||||
|
@ -213,7 +215,10 @@ module.exports = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'jsx Tag',
|
name: 'jsx Tag',
|
||||||
scope: ['entity.name.tag support.class.component'],
|
scope: [
|
||||||
|
'entity.name.tag support.class.component',
|
||||||
|
'text.html.vue-html support.class.component.html'
|
||||||
|
],
|
||||||
settings: {
|
settings: {
|
||||||
fontStyle: 'normal',
|
fontStyle: 'normal',
|
||||||
foreground: '#ff5370'
|
foreground: '#ff5370'
|
||||||
|
|
37
src/html.js
37
src/html.js
|
@ -2,24 +2,34 @@ const vars = require('./var')
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{
|
{
|
||||||
name: 'HTML Attributes',
|
name: 'HTML Attributes, directive',
|
||||||
scope: [
|
scope: [
|
||||||
'text.html.basic entity.other.attribute-name.html',
|
'text.html.basic entity.other.attribute-name.html',
|
||||||
'text.html.basic entity.other.attribute-name',
|
'text.html.basic entity.other.attribute-name',
|
||||||
'text.xhtml.basic entity.other.attribute-name.xhtml',
|
'text.xhtml.basic entity.other.attribute-name.xhtml',
|
||||||
'text.xhtml.basic entity.other.attribute-name'
|
'text.xhtml.basic entity.other.attribute-name',
|
||||||
|
'text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html',
|
||||||
|
'text.html.vue-html meta.directive.vue entity.other.attribute-name.html'
|
||||||
],
|
],
|
||||||
settings: {
|
settings: {
|
||||||
fontStyle: 'italic',
|
|
||||||
foreground: vars.yellow1
|
foreground: vars.yellow1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'CSS Class & ID',
|
name: 'link, a, img, script => path',
|
||||||
scope: [
|
scope: [
|
||||||
'entity.other.attribute-name.class',
|
'meta.tag.metadata.script.start.html meta.attribute.src string.quoted.double',
|
||||||
'entity.other.attribute-name.id.css'
|
'meta.tag.inline.a.start.html meta.attribute.href string.quoted.double',
|
||||||
|
'meta.tag.metadata.link.void.html meta.attribute.href string.quoted.double',
|
||||||
|
'meta.tag.object.img.void.html meta.attribute.src string.quoted.double'
|
||||||
],
|
],
|
||||||
|
settings: {
|
||||||
|
foreground: vars.common
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'CSS Class & ID',
|
||||||
|
scope: ['entity.other.attribute-name.class', 'entity.other.attribute-name.id.css'],
|
||||||
settings: {
|
settings: {
|
||||||
foreground: vars.yellow1
|
foreground: vars.yellow1
|
||||||
}
|
}
|
||||||
|
@ -55,19 +65,12 @@ module.exports = [
|
||||||
foreground: '#53c659'
|
foreground: '#53c659'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'directive',
|
name: "directive's value, spec value",
|
||||||
scope: [
|
scope: [
|
||||||
'text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html'
|
'text.html.derivative meta.attribute.unrecognized string.quoted.double.html',
|
||||||
],
|
'meta.tag.metadata.script.start.html meta.attribute.type.html string.quoted.double'
|
||||||
settings: {
|
|
||||||
foreground: vars.yellow1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "directive's value",
|
|
||||||
scope: [
|
|
||||||
'text.html.derivative meta.attribute.unrecognized string.quoted.double.html'
|
|
||||||
],
|
],
|
||||||
settings: {
|
settings: {
|
||||||
foreground: vars.magenta1
|
foreground: vars.magenta1
|
||||||
|
|
|
@ -432,13 +432,19 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "HTML Attributes",
|
"name": "HTML Attributes, directive",
|
||||||
"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",
|
"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, text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html, text.html.vue-html meta.directive.vue entity.other.attribute-name.html",
|
||||||
"settings": {
|
"settings": {
|
||||||
"fontStyle": "italic",
|
|
||||||
"foreground": "#ffb62c"
|
"foreground": "#ffb62c"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "link, a, img, script => path",
|
||||||
|
"scope": "meta.tag.metadata.script.start.html meta.attribute.src string.quoted.double, meta.tag.inline.a.start.html meta.attribute.href string.quoted.double, meta.tag.metadata.link.void.html meta.attribute.href string.quoted.double, meta.tag.object.img.void.html meta.attribute.src string.quoted.double",
|
||||||
|
"settings": {
|
||||||
|
"foreground": "#90a4ae"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "CSS Class & ID",
|
"name": "CSS Class & ID",
|
||||||
"scope": "entity.other.attribute-name.class, entity.other.attribute-name.id.css",
|
"scope": "entity.other.attribute-name.class, entity.other.attribute-name.id.css",
|
||||||
|
@ -469,15 +475,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "directive",
|
"name": "directive's value, spec value",
|
||||||
"scope": "text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html",
|
"scope": "text.html.derivative meta.attribute.unrecognized string.quoted.double.html, meta.tag.metadata.script.start.html meta.attribute.type.html string.quoted.double",
|
||||||
"settings": {
|
|
||||||
"foreground": "#ffb62c"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "directive's value",
|
|
||||||
"scope": "text.html.derivative meta.attribute.unrecognized string.quoted.double.html",
|
|
||||||
"settings": {
|
"settings": {
|
||||||
"foreground": "#be7ee7"
|
"foreground": "#be7ee7"
|
||||||
}
|
}
|
||||||
|
@ -575,7 +574,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Punctuation",
|
"name": "Punctuation",
|
||||||
"scope": "meta.object.member meta.array.literal meta.brace.square, meta.object.member meta.arrow meta.brace.round, string.template meta.template.expression meta.array.literal meta.brace.square, string.template meta.template.expression meta.brace.round, meta.tag.attributes punctuation.section.embedded.begin, meta.tag.attributes punctuation.section.embedded.end, meta.tag.without-attributes punctuation.section.embedded.begin, meta.tag.without-attributes punctuation.section.embedded.end, meta.type.annotation meta.brace.square",
|
"scope": "meta.object.member meta.array.literal meta.brace.square, meta.object.member meta.arrow meta.brace.round, text.html.vue-html meta.brace.round, text.html.vue-html meta.directive.vue, string.template meta.template.expression meta.array.literal meta.brace.square, string.template meta.template.expression meta.brace.round, meta.tag.attributes punctuation.section.embedded.begin, meta.tag.attributes punctuation.section.embedded.end, meta.tag.without-attributes punctuation.section.embedded.begin, meta.tag.without-attributes punctuation.section.embedded.end, meta.type.annotation meta.brace.square",
|
||||||
"settings": {
|
"settings": {
|
||||||
"foreground": "#90a4ae"
|
"foreground": "#90a4ae"
|
||||||
}
|
}
|
||||||
|
@ -628,7 +627,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "jsx Tag",
|
"name": "jsx Tag",
|
||||||
"scope": "entity.name.tag support.class.component",
|
"scope": "entity.name.tag support.class.component, text.html.vue-html support.class.component.html",
|
||||||
"settings": {
|
"settings": {
|
||||||
"fontStyle": "normal",
|
"fontStyle": "normal",
|
||||||
"foreground": "#ff5370"
|
"foreground": "#ff5370"
|
||||||
|
|
Loading…
Reference in New Issue