fix: Fix invalids color highlight

Close #40
This commit is contained in:
Mattia Astorino 2017-05-16 22:22:43 +02:00
parent c72c314d7d
commit 100397c187
6 changed files with 68 additions and 89 deletions

View file

@ -41,22 +41,10 @@
"name": "Invalid", "name": "Invalid",
"scope": [ "scope": [
"invalid", "invalid",
"invalid.illegal", "invalid.illegal"
"invalid.broken"
], ],
"settings": { "settings": {
"background": "{{variant.scheme.base.red}}", "foreground": "{{variant.scheme.base.red}}"
"foreground": "{{variant.scheme.base.white}}"
}
},
{
"name": "Invalid unimplemented",
"scope": [
"invalid.unimplemented"
],
"settings": {
"background": "{{variant.scheme.base.green}}",
"foreground": "{{variant.scheme.base.white}}"
} }
}, },
{ {
@ -65,8 +53,7 @@
"invalid.deprecated" "invalid.deprecated"
], ],
"settings": { "settings": {
"background": "{{variant.scheme.base.purple}}", "foreground": "{{variant.scheme.base.purple}}"
"foreground": "{{variant.scheme.base.white}}"
} }
}, },
{ {
@ -162,7 +149,7 @@
"constant.character", "constant.character",
"constant.escape", "constant.escape",
"variable.parameter", "variable.parameter",
"keyword.other.unit" "keyword.other.unit",
"keyword.other" "keyword.other"
], ],
"settings": { "settings": {

View file

@ -0,0 +1,4 @@
<?php
/**
function hello($world) {}
*/

View file

@ -41,22 +41,10 @@
"name": "Invalid", "name": "Invalid",
"scope": [ "scope": [
"invalid", "invalid",
"invalid.illegal", "invalid.illegal"
"invalid.broken"
], ],
"settings": { "settings": {
"background": "#FF5370", "foreground": "#FF5370"
"foreground": "#ffffff"
}
},
{
"name": "Invalid unimplemented",
"scope": [
"invalid.unimplemented"
],
"settings": {
"background": "#C3E88D",
"foreground": "#ffffff"
} }
}, },
{ {
@ -65,8 +53,7 @@
"invalid.deprecated" "invalid.deprecated"
], ],
"settings": { "settings": {
"background": "#C792EA", "foreground": "#C792EA"
"foreground": "#ffffff"
} }
}, },
{ {
@ -160,8 +147,10 @@
"constant.language", "constant.language",
"support.constant", "support.constant",
"constant.character", "constant.character",
"constant.escape",
"variable.parameter", "variable.parameter",
"keyword.other.unit" "keyword.other.unit",
"keyword.other"
], ],
"settings": { "settings": {
"foreground": "#F78C6C" "foreground": "#F78C6C"
@ -187,7 +176,6 @@
"name": "Class, Support", "name": "Class, Support",
"scope": [ "scope": [
"entity.name", "entity.name",
"entity.name.type",
"support.type", "support.type",
"support.class", "support.class",
"support.orther.namespace.use.php", "support.orther.namespace.use.php",
@ -200,6 +188,15 @@
"foreground": "#FFCB6B" "foreground": "#FFCB6B"
} }
}, },
{
"name": "Entity Types",
"scope": [
"support.type"
],
"settings": {
"foreground": "#B2CCD6"
}
},
{ {
"name": "CSS Class and Support", "name": "CSS Class and Support",
"scope": [ "scope": [

View file

@ -41,22 +41,10 @@
"name": "Invalid", "name": "Invalid",
"scope": [ "scope": [
"invalid", "invalid",
"invalid.illegal", "invalid.illegal"
"invalid.broken"
], ],
"settings": { "settings": {
"background": "#FF5370", "foreground": "#FF5370"
"foreground": "#ffffff"
}
},
{
"name": "Invalid unimplemented",
"scope": [
"invalid.unimplemented"
],
"settings": {
"background": "#C3E88D",
"foreground": "#ffffff"
} }
}, },
{ {
@ -65,8 +53,7 @@
"invalid.deprecated" "invalid.deprecated"
], ],
"settings": { "settings": {
"background": "#C792EA", "foreground": "#C792EA"
"foreground": "#ffffff"
} }
}, },
{ {
@ -160,8 +147,10 @@
"constant.language", "constant.language",
"support.constant", "support.constant",
"constant.character", "constant.character",
"constant.escape",
"variable.parameter", "variable.parameter",
"keyword.other.unit" "keyword.other.unit",
"keyword.other"
], ],
"settings": { "settings": {
"foreground": "#F78C6C" "foreground": "#F78C6C"
@ -187,7 +176,6 @@
"name": "Class, Support", "name": "Class, Support",
"scope": [ "scope": [
"entity.name", "entity.name",
"entity.name.type",
"support.type", "support.type",
"support.class", "support.class",
"support.orther.namespace.use.php", "support.orther.namespace.use.php",
@ -200,6 +188,15 @@
"foreground": "#FFCB6B" "foreground": "#FFCB6B"
} }
}, },
{
"name": "Entity Types",
"scope": [
"support.type"
],
"settings": {
"foreground": "#B2CCD6"
}
},
{ {
"name": "CSS Class and Support", "name": "CSS Class and Support",
"scope": [ "scope": [

View file

@ -41,22 +41,10 @@
"name": "Invalid", "name": "Invalid",
"scope": [ "scope": [
"invalid", "invalid",
"invalid.illegal", "invalid.illegal"
"invalid.broken"
], ],
"settings": { "settings": {
"background": "#E53935", "foreground": "#E53935"
"foreground": "#FFFFFF"
}
},
{
"name": "Invalid unimplemented",
"scope": [
"invalid.unimplemented"
],
"settings": {
"background": "#91B859",
"foreground": "#FFFFFF"
} }
}, },
{ {
@ -65,8 +53,7 @@
"invalid.deprecated" "invalid.deprecated"
], ],
"settings": { "settings": {
"background": "#7C4DFF", "foreground": "#7C4DFF"
"foreground": "#FFFFFF"
} }
}, },
{ {
@ -160,8 +147,10 @@
"constant.language", "constant.language",
"support.constant", "support.constant",
"constant.character", "constant.character",
"constant.escape",
"variable.parameter", "variable.parameter",
"keyword.other.unit" "keyword.other.unit",
"keyword.other"
], ],
"settings": { "settings": {
"foreground": "#F76D47" "foreground": "#F76D47"
@ -187,7 +176,6 @@
"name": "Class, Support", "name": "Class, Support",
"scope": [ "scope": [
"entity.name", "entity.name",
"entity.name.type",
"support.type", "support.type",
"support.class", "support.class",
"support.orther.namespace.use.php", "support.orther.namespace.use.php",
@ -200,6 +188,15 @@
"foreground": "#FFB62C" "foreground": "#FFB62C"
} }
}, },
{
"name": "Entity Types",
"scope": [
"support.type"
],
"settings": {
"foreground": "#8796B0"
}
},
{ {
"name": "CSS Class and Support", "name": "CSS Class and Support",
"scope": [ "scope": [

View file

@ -41,22 +41,10 @@
"name": "Invalid", "name": "Invalid",
"scope": [ "scope": [
"invalid", "invalid",
"invalid.illegal", "invalid.illegal"
"invalid.broken"
], ],
"settings": { "settings": {
"background": "#FF5370", "foreground": "#FF5370"
"foreground": "#ffffff"
}
},
{
"name": "Invalid unimplemented",
"scope": [
"invalid.unimplemented"
],
"settings": {
"background": "#C3E88D",
"foreground": "#ffffff"
} }
}, },
{ {
@ -65,8 +53,7 @@
"invalid.deprecated" "invalid.deprecated"
], ],
"settings": { "settings": {
"background": "#C792EA", "foreground": "#C792EA"
"foreground": "#ffffff"
} }
}, },
{ {
@ -160,8 +147,10 @@
"constant.language", "constant.language",
"support.constant", "support.constant",
"constant.character", "constant.character",
"constant.escape",
"variable.parameter", "variable.parameter",
"keyword.other.unit" "keyword.other.unit",
"keyword.other"
], ],
"settings": { "settings": {
"foreground": "#F78C6C" "foreground": "#F78C6C"
@ -187,7 +176,6 @@
"name": "Class, Support", "name": "Class, Support",
"scope": [ "scope": [
"entity.name", "entity.name",
"entity.name.type",
"support.type", "support.type",
"support.class", "support.class",
"support.orther.namespace.use.php", "support.orther.namespace.use.php",
@ -200,6 +188,15 @@
"foreground": "#FFCB6B" "foreground": "#FFCB6B"
} }
}, },
{
"name": "Entity Types",
"scope": [
"support.type"
],
"settings": {
"foreground": "#B2CCD6"
}
},
{ {
"name": "CSS Class and Support", "name": "CSS Class and Support",
"scope": [ "scope": [