Skip to content

Commit

Permalink
feat: Add language support for JSON (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
icorbrey authored Oct 24, 2024
1 parent 767d19b commit ff6aa91
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
1 change: 1 addition & 0 deletions colors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ui-3: #595959
red-500: #ff3b11

orange-500: #ff9502
orange-700: #e08300

yellow-500: #ffcc00

Expand Down
12 changes: 12 additions & 0 deletions demos/.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"string": "value",
"int": 123456,
"boolean": true,
"other-boolean": false,
"null-value": null,
"array": [
"one",
"two",
3
]
}
30 changes: 20 additions & 10 deletions themes/Clarity Noir-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@
"foreground": "#686868"
}
},
{
"name": "Dictionaries > Punctuation",
"scope": [
"punctuation.definition.dictionary",
"punctuation.separator.dictionary.key-value",
"punctuation.separator.dictionary.pair",
"punctuation.separator.key-value.mapping"
],
"settings": {
"foreground": "#8c8c8c"
}
},
{
"name": "Keywords > Constants",
"scope": "constant.language",
Expand All @@ -112,7 +124,9 @@
{
"name": "Lists > Punctuation",
"scope": [
"punctuation.definition.array",
"punctuation.definition.sequence",
"punctuation.separator.array",
"punctuation.separator.sequence",
],
"settings": {
Expand All @@ -128,7 +142,10 @@
},
{
"name": "Keys",
"scope": "entity.name.tag",
"scope": [
"support.type.property-name",
"entity.name.tag"
],
"settings": {
"foreground": "#02c7be",
}
Expand All @@ -140,18 +157,11 @@
"foreground": "#45d958"
}
},
{
"name": "Operators > Assignment",
"scope": "punctuation.separator.key-value.mapping",
"settings": {
"foreground": "#8c8c8c"
}
},
{
"name": "Strings",
"scope": "string.unquoted",
"scope": "string",
"settings": {
"foreground": "#ff9502"
"foreground": "#e08300"
}
}
]
Expand Down

0 comments on commit ff6aa91

Please sign in to comment.