Open-Jellycore
Open-Jellycore copied to clipboard
json value not allowed is variable assignment
Describe the bug
var json = { "title": "My First Post", "body": "0.9", "userId": 1 }
generates a syntax error. This is different from AppStore Jellycuts
To Reproduce
Steps to reproduce the behavior:
- create a file oj_dURL_post_3.jelly and paste in above line of code
- compile with command
jelly oj_dURL_post_3.jelly --export --out u_oj_dURL_post_3.shortcut
- Observe error
SYNTAX ERROR, line: 1, "ERROR (string_chars) (string_chars) (string_chars) (string_chars) (string_chars) (string_chars) (string_chars) (string_chars) (string_chars)" Check your syntax in the surrounding area. Found 1 errors
Expected behavior
In AppStore Jellycuts this generates an Set variable action
Information
- Device: [MacBook Pro, 14-inch, 2021]
- OS: [Sonoma 14.5]
- Jellycuts Version [???, jelly command does not provide method to generate version (/opt/homebrew/bin/jelly)]
- Jailbroken? [No]
Additional context
Fix perhaps in tree-sitter-jelly