Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions test/inputs/json/priority/keywords.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
"decimal": { "decimal": 123 },
"declare": { "declare": 123 },
"decltype": { "decltype": 123 },
"decode_string": { "decode_string": 123 },
"dummy": 123
},
"obj2": {
"decode_string": { "decode_string": 123 },
"def": { "def": 123 },
"default": { "default": 123 },
"defer": { "defer": 123 },
Expand Down Expand Up @@ -131,11 +131,11 @@
"inout": { "inout": 123 },
"instanceof": { "instanceof": 123 },
"int": { "int": 123 },
"interface": { "interface": 123 },
"internal": { "internal": 123 },
"dummy": 123
},
"obj3": {
"interface": { "interface": 123 },
"internal": { "internal": 123 },
"iterable": { "iterable": 123 },
"is": { "is": 123 },
"jdec": { "jdec": 123 },
Expand Down Expand Up @@ -198,12 +198,12 @@
"printf": { "printf": 123 },
"printMembers": { "printMembers": 123 },
"private": { "private": 123 },
"protected": { "protected": 123 },
"Protocol": { "Protocol": 123 },
"protocol": { "protocol": 123 },
"dummy": 123
},
"obj4": {
"protected": { "protected": 123 },
"Protocol": { "Protocol": 123 },
"protocol": { "protocol": 123 },
"public": { "public": 123 },
"quicktype": { "quicktype": 123 },
"raise": { "raise": 123 },
Expand Down Expand Up @@ -265,12 +265,12 @@
"typename": { "typename": 123 },
"typeof": { "typeof": 123 },
"uint": { "uint": 123 },
"ulong": { "ulong": 123 },
"unchecked": { "unchecked": 123 },
"undefined": { "undefined": 123 },
"dummy": 123
},
"obj5": {
"ulong": { "ulong": 123 },
"unchecked": { "unchecked": 123 },
"undefined": { "undefined": 123 },
"union": { "union": 123 },
"unowned": { "unowned": 123 },
"unsafe": { "unsafe": 123 },
Expand Down
3 changes: 3 additions & 0 deletions test/inputs/schema/keyword-enum.schema
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"checked",
"class",
"Class",
"clone",
"co_await",
"co_return",
"co_yield",
Expand Down Expand Up @@ -83,6 +84,7 @@
"dynamic",
"dynamic_cast",
"elif",
"equalityContract",
"else",
"encode_quick_type",
"enum",
Expand Down Expand Up @@ -192,6 +194,7 @@
"prefix",
"print",
"printf",
"printMembers",
"private",
"protected",
"Protocol",
Expand Down
21 changes: 21 additions & 0 deletions test/inputs/schema/keyword-unions.schema
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@
],
"title": "union_Class"
},
"clone": {
"oneOf": [
{ "type": "number" },
{ "type": "object", "additionalProperties": false, "title": "clone" }
],
"title": "union_clone"
},
"co_await": {
"oneOf": [
{ "type": "number" },
Expand Down Expand Up @@ -554,6 +561,13 @@
],
"title": "union_elif"
},
"equalityContract": {
"oneOf": [
{ "type": "number" },
{ "type": "object", "additionalProperties": false, "title": "equalityContract" }
],
"title": "union_equalityContract"
},
"else": {
"oneOf": [
{ "type": "number" },
Expand Down Expand Up @@ -1317,6 +1331,13 @@
],
"title": "union_printf"
},
"printMembers": {
"oneOf": [
{ "type": "number" },
{ "type": "object", "additionalProperties": false, "title": "printMembers" }
],
"title": "union_printMembers"
},
"private": {
"oneOf": [
{ "type": "number" },
Expand Down
5 changes: 4 additions & 1 deletion test/keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ char32_t
checked
class
Class
clone
co_await
co_return
co_yield
Expand Down Expand Up @@ -77,6 +78,7 @@ double
dynamic
dynamic_cast
elif
equalityContract
else
encode_quick_type
enum
Expand Down Expand Up @@ -186,6 +188,7 @@ precedence
prefix
print
printf
printMembers
private
protected
Protocol
Expand Down Expand Up @@ -273,4 +276,4 @@ with
xor
xor_eq
YES
yield
yield