mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Highlight JSON keys in the other six builtin syntax themes…
…always using the color that was already used to highlight YAML keys.
This commit is contained in:
parent
e0009ce188
commit
4c0e7dda9f
@ -9,3 +9,4 @@
|
||||
@import "styles/syntax/base.less";
|
||||
@import "styles/syntax/css.less";
|
||||
@import "styles/syntax/html.less";
|
||||
@import "styles/syntax/json.less";
|
||||
|
11
packages/atom-dark-syntax/styles/syntax/json.less
Normal file
11
packages/atom-dark-syntax/styles/syntax/json.less
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
.syntax--source.syntax--json {
|
||||
|
||||
// Color JSON keys differently from other strings.
|
||||
.syntax--meta.syntax--structure.syntax--key {
|
||||
.syntax--string.syntax--quoted.syntax--double {
|
||||
color: #96CBFE;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -8,3 +8,4 @@
|
||||
|
||||
@import "styles/syntax/base.less";
|
||||
@import "styles/syntax/css.less";
|
||||
@import "styles/syntax/json.less";
|
||||
|
11
packages/atom-light-syntax/styles/syntax/json.less
Normal file
11
packages/atom-light-syntax/styles/syntax/json.less
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
.syntax--source.syntax--json {
|
||||
|
||||
// Color JSON keys differently from other strings.
|
||||
.syntax--meta.syntax--structure.syntax--key {
|
||||
.syntax--string.syntax--quoted.syntax--double {
|
||||
color: #008080;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -8,6 +8,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Color JSON keys differently from other strings.
|
||||
.syntax--meta.syntax--structure.syntax--key {
|
||||
.syntax--string.syntax--quoted.syntax--double {
|
||||
color: @red;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--meta.syntax--structure.syntax--dictionary.syntax--json, .syntax--meta.syntax--structure.syntax--array.syntax--json {
|
||||
& > .syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--json,
|
||||
& > .syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--json > .syntax--punctuation {
|
||||
|
@ -8,6 +8,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Color JSON keys differently from other strings.
|
||||
.syntax--meta.syntax--structure.syntax--key {
|
||||
.syntax--string.syntax--quoted.syntax--double {
|
||||
color: @red;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--meta.syntax--structure.syntax--dictionary.syntax--json, .syntax--meta.syntax--structure.syntax--array.syntax--json {
|
||||
& > .syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--json,
|
||||
& > .syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--json > .syntax--punctuation {
|
||||
|
@ -12,6 +12,7 @@
|
||||
@import "styles/syntax-legacy/css.less";
|
||||
// @import "styles/syntax-legacy/go.less";
|
||||
@import "styles/syntax-legacy/java.less";
|
||||
@import "styles/syntax-legacy/json.less";
|
||||
// @import "styles/syntax-legacy/javascript.less";
|
||||
@import "styles/syntax-legacy/markdown.less";
|
||||
@import "styles/syntax-legacy/markup.less";
|
||||
|
@ -0,0 +1,11 @@
|
||||
|
||||
.syntax--source.syntax--json {
|
||||
|
||||
// Color JSON keys differently from other strings.
|
||||
.syntax--meta.syntax--structure.syntax--key {
|
||||
.syntax--string.syntax--quoted.syntax--double {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -12,6 +12,7 @@
|
||||
@import "styles/syntax-legacy/css.less";
|
||||
// @import "styles/syntax-legacy/go.less";
|
||||
@import "styles/syntax-legacy/java.less";
|
||||
@import "styles/syntax-legacy/json.less";
|
||||
// @import "styles/syntax-legacy/javascript.less";
|
||||
@import "styles/syntax-legacy/markdown.less";
|
||||
@import "styles/syntax-legacy/markup.less";
|
||||
|
@ -0,0 +1,11 @@
|
||||
|
||||
.syntax--source.syntax--json {
|
||||
|
||||
// Color JSON keys differently from other strings.
|
||||
.syntax--meta.syntax--structure.syntax--key {
|
||||
.syntax--string.syntax--quoted.syntax--double {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user