Skip to content
Open
Changes from 1 commit
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
82 changes: 58 additions & 24 deletions data/syntax_def_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -15428,10 +15428,7 @@
],
"returnType": {
"kind": "union",
"types": [
"quaternion",
"nil"
]
"types": ["quaternion", "nil"]
}
},
{
Expand All @@ -15445,10 +15442,7 @@
],
"returnType": {
"kind": "union",
"types": [
"vector",
"nil"
]
"types": ["vector", "nil"]
}
},
{
Expand Down Expand Up @@ -15808,6 +15802,58 @@
}
],
"returnType": "string"
},
{
"comment": "decode json string to lua value perserving types",
Copy link

Copilot AI Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "perserving" should be "preserving".

Suggested change
"comment": "decode json string to lua value perserving types",
"comment": "decode json string to lua value preserving types",

Copilot uses AI. Check for mistakes.
"name": "sldecode",
"parameters": [
{
"name": "json",
"type": "string"
}
],
"returnType": {
"kind": "union",
"types": [
"string",
"number",
"vector",
"uuid",
"quaternion",
"boolean",
{
"elementType": "",
"kind": "array"
},
"nil"
]
}
},
{
"comment": "encode lua value as json preserving types",
"name": "slencode",
"parameters": [
{
"name": "value",
"type": {
"kind": "union",
"types": [
"string",
"number",
"vector",
"uuid",
"quaternion",
"boolean",
{
"elementType": "",
"kind": "array"
},
"nil"
]
}
}
],
Comment on lines 15835 to 15859
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the second parameter

boolean tight, whether to encode sl types more compactly

"returnType": "string"
}
],
"name": "lljson",
Expand Down Expand Up @@ -15901,10 +15947,7 @@
"name": "value",
"type": {
"kind": "union",
"types": [
"string",
"buffer"
]
"types": ["string", "buffer"]
}
}
],
Expand Down Expand Up @@ -16110,20 +16153,14 @@
{
"definition": {
"kind": "union",
"types": [
"boolean",
"number"
]
"types": ["boolean", "number"]
},
"name": "numeric"
},
{
"definition": {
"kind": "union",
"types": [
"string",
"uuid"
]
"types": ["string", "uuid"]
},
"name": "uuid_like"
},
Expand Down Expand Up @@ -16168,10 +16205,7 @@
{
"definition": {
"kind": "union",
"types": [
"DetectedEventName",
"NonDetectedEventName"
]
"types": ["DetectedEventName", "NonDetectedEventName"]
},
"name": "EventName"
},
Expand Down