mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
added hash-comments, customfaces introduced
This commit is contained in:
parent
f53e45486c
commit
82851fec83
6 changed files with 105 additions and 3 deletions
|
|
@ -465,6 +465,10 @@ JObject* Parser::parseObject() {
|
|||
unique_ptr<JObject> obj(new JObject());
|
||||
unordered_map<string, Value*>& map = obj->map;
|
||||
while (peek() != '}') {
|
||||
if (peek() == '#') {
|
||||
skipLine();
|
||||
continue;
|
||||
}
|
||||
string key = parseName();
|
||||
char next = peek();
|
||||
if (next != ':') {
|
||||
|
|
@ -490,6 +494,10 @@ JArray* Parser::parseArray() {
|
|||
unique_ptr<JArray> arr(new JArray());
|
||||
vector<Value*>& values = arr->values;
|
||||
while (peek() != ']') {
|
||||
if (peek() == '#') {
|
||||
skipLine();
|
||||
continue;
|
||||
}
|
||||
values.push_back(parseValue());
|
||||
|
||||
char next = peek();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue