added hash-comments, customfaces introduced

This commit is contained in:
A-lex-Ra
2024-01-08 12:36:04 +06:00
parent f53e45486c
commit 82851fec83
6 changed files with 105 additions and 3 deletions
+8
View File
@@ -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();