Skip to content

Commit

Permalink
Merge pull request atom#32 from darylrobbins/json
Browse files Browse the repository at this point in the history
Json Fixes
  • Loading branch information
simurai committed May 23, 2015
2 parents fc6b0e7 + 7e73b9a commit 10fb906
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
16 changes: 14 additions & 2 deletions spec/json.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@
},
{
"title": "oranges",
"count": [17500, null],
"description": {"text": "...", "sensitive": false}
"count": [17500, null, "String"],
"description": {"text": "She said, \"Hello\"", "sensitive": false}
},
{
"deeply_nested": {
"key": {
"key": {
"key": {
"array": [1, "two", null],
"string": "hello"
}
}
}
}
}
]
15 changes: 15 additions & 0 deletions spec/yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root:
unquoted_string: lorem ipsem
quotwed_string: "lorem ipsum"
integer: 123
float: 3.14
boolean: true
null: null
list:
- one
- two
- three
map_list:
- one: 1
- two: "two"
- three: 3.0
11 changes: 10 additions & 1 deletion styles/languages/json.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
.source.json {
.meta.structure.dictionary.json {
& > .string.quoted.json, .punctuation.string {
& > .string.quoted.json {
& > .punctuation.string {
color: @red;
}
color: @red;
}
}

.meta.structure.dictionary.json, .meta.structure.array.json {
& > .value.json > .string.quoted.json,
& > .value.json > .string.quoted.json > .punctuation {
color: @green;
}

& > .constant.language.json {
color: @cyan;
}
}
}

0 comments on commit 10fb906

Please sign in to comment.